@import url("/public/css/typography.css");
/* ui-system.css: közvetlen <link> a PHP layoutokban (tokens után) — @import gyakran elvész */

:root {
  --bg: var(--pipsy-surface-base, #050712);
  --bg-soft: var(--pipsy-surface-elevated, #0a0e1a);
  --panel: var(--pipsy-surface-panel, rgba(12, 15, 28, 0.82));
  --panel-border: var(--pipsy-border-subtle, rgba(255, 255, 255, 0.06));
  --text: var(--pipsy-text-1, #f1f5f9);
  --muted: var(--pipsy-text-muted, #94a3b8);
  --blue: var(--module-accent, #6366f1);
  --purple: var(--module-accent-3, #8b5cf6);
  --cyan: var(--module-accent-2, #22d3ee);
  --glow: var(--pipsy-shadow-glow, 0 20px 50px rgba(99, 102, 241, 0.12));
  /* Header-wave mid stop color (plan-aware via CSS variable) */
  --pipsy-wave-mid: rgba(109, 124, 255, 0.18);
  --radius-sm: var(--pipsy-radius-sm, 12px);
  --radius-md: var(--pipsy-radius-md, 16px);
  --radius-lg: var(--pipsy-radius-lg, 24px);
  --radius-xl: var(--pipsy-radius-xl, 32px);
  --radius-xs: var(--pipsy-radius-xs, 8px);
  --radius-full: var(--pipsy-radius-full, 9999px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--pipsy-font-sans, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  background:
    repeating-linear-gradient(122deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 11px),
    repeating-linear-gradient(-58deg, rgba(255, 255, 255, 0.01) 0 1px, transparent 1px 9px),
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--module-glow-1, rgba(99, 102, 241, 0.15)), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, var(--module-glow-2, rgba(139, 92, 246, 0.08)), transparent),
    linear-gradient(180deg, var(--module-bg-start, #050712) 0%, var(--module-bg-mid, #0a0e1a) 50%, var(--module-bg-end, #070b14) 100%);
  color: var(--text);
  font-size: var(--pipsy-type-body, 1rem);
  line-height: var(--pipsy-leading-body, 1.6);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--pipsy-grid-line, rgba(255,255,255,0.02)) 1px, transparent 1px),
    linear-gradient(90deg, var(--pipsy-grid-line, rgba(255,255,255,0.02)) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.2), transparent 70%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
select,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(var(--pipsy-container-max, 1280px), calc(100% - 2 * var(--pipsy-space-gutter)));
  margin: 0 auto;
  padding-left: max(0px, env(safe-area-inset-left, 0px));
  padding-right: max(0px, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  background: linear-gradient(180deg, rgba(6, 10, 24, 0.94) 0%, rgba(4, 8, 20, 0.9) 100%);
  border-bottom: none;
  box-shadow:
    var(--pipsy-shadow-edge-bottom, 0 1px 0 rgba(255, 255, 255, 0.04)),
    0 14px 40px rgba(2, 6, 18, 0.34);
  isolation: isolate;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(99, 102, 241, 0.14), transparent 52%),
    radial-gradient(110% 120% at 100% 0%, rgba(129, 140, 248, 0.12), transparent 56%);
  opacity: 0.7;
  z-index: -1;
}

.nav-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--pipsy-space-6);
  padding: var(--pipsy-space-5) 0 var(--pipsy-space-4);
}
/* Hullámos vonal a fejléc alatt, egérre reagál */
.header-wave {
  position: relative;
  width: 100%;
  height: 20px;
  margin-top: -1px;
  overflow: hidden;
  pointer-events: none;
}
.header-wave-svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: none;
}
.header-wave-path {
  transition: opacity 0.25s ease;
}
.site-header:hover .header-wave-path {
  opacity: 1;
}

/* Hullám: szélek = átlátszó modul-szín, közép = --pipsy-wave-mid (plan / shell) */
.header-wave stop[offset="0%"],
.header-wave stop[offset="0"],
#headerWave stop[offset="0%"],
#headerWave stop[offset="0"],
.header-wave-svg stop[offset="0%"],
.header-wave-svg stop[offset="0"] {
  stop-color: rgba(var(--module-accent-rgb, 99, 102, 241), 0) !important;
}
.header-wave stop[offset="100%"],
.header-wave stop[offset="100"],
#headerWave stop[offset="100%"],
#headerWave stop[offset="100"],
.header-wave-svg stop[offset="100%"],
.header-wave-svg stop[offset="100"] {
  stop-color: rgba(var(--module-accent-rgb, 99, 102, 241), 0) !important;
}
.header-wave stop[offset="50%"],
.header-wave stop[offset="50"],
#headerWave stop[offset="50%"],
#headerWave stop[offset="50"],
.header-wave-svg stop[offset="50%"],
.header-wave-svg stop[offset="50"] {
  stop-color: var(--pipsy-wave-mid, rgba(109, 124, 255, 0.18)) !important;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--pipsy-space-3);
  text-decoration: none;
  color: var(--text);
}

.logo-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(var(--module-accent-rgb, 99, 102, 241), 0.25);
  display: block;
  object-fit: cover;
  flex-shrink: 0;
}

.logo-icon {
  background: rgba(15, 18, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.logo-text {
  font-size: var(--pipsy-type-brand-wordmark, 1.1rem);
  font-weight: 800;
  letter-spacing: var(--pipsy-tracking-caps, 0.08em);
  text-transform: uppercase;
  background: linear-gradient(145deg, #7dd3fc 0%, #38bdf8 28%, #818cf8 62%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 26px rgba(56, 189, 248, 0.28),
    0 18px 42px rgba(99, 102, 241, 0.24),
    0 2px 8px rgba(2, 6, 23, 0.55);
  transform: translateZ(0);
  filter: saturate(1.08);
}

.logo:hover .logo-text {
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45),
    0 14px 30px rgba(56, 189, 248, 0.34),
    0 24px 52px rgba(99, 102, 241, 0.3),
    0 3px 12px rgba(2, 6, 23, 0.62);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--pipsy-space-2);
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: rgba(241, 245, 249, 0.78);
  font-weight: 600;
  font-size: var(--pipsy-type-ui, 0.9rem);
  padding: 0.56rem 0.8rem;
  border-radius: 12px;
  border: 1px solid transparent;
  transition:
    color 0.2s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.24s ease,
    transform 0.2s ease;
}

.main-nav a:hover {
  color: var(--text);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.62), rgba(10, 15, 30, 0.5));
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 20px rgba(2, 6, 23, 0.28);
  transform: translateY(-1px);
}

/* Main nav dropdown (Szolgáltatások) – SaaS style */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--pipsy-space-2);
  padding: 0.56rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: rgba(241, 245, 249, 0.78);
  font-weight: 600;
  font-size: var(--pipsy-type-ui, 0.9rem);
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.24s ease,
    transform 0.2s ease;
}
.nav-dropdown-trigger:hover {
  color: var(--text);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.62), rgba(10, 15, 30, 0.5));
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 20px rgba(2, 6, 23, 0.28);
  transform: translateY(-1px);
}
.nav-dropdown-trigger:focus {
  outline: none;
}
.nav-dropdown-trigger:focus-visible {
  outline: none;
  outline-offset: 0;
}
.nav-dropdown-trigger::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.8;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-dropdown.open .nav-dropdown-trigger::after,
.nav-dropdown-trigger[aria-expanded="true"]::after {
  transform: rotate(180deg);
}
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + var(--pipsy-space-2));
  left: 50%;
  transform: translate(-50%, 8px) scale(0.96);
  transform-origin: top center;
  min-width: 200px;
  padding: 10px;
  background: var(
    --pipsy-dropdown-shell-bg,
    linear-gradient(165deg, rgba(18, 22, 38, 0.98), rgba(10, 14, 28, 0.99))
  );
  border: var(--pipsy-dropdown-shell-border, 1px solid rgba(99, 102, 241, 0.18));
  border-radius: var(--pipsy-radius-popover, var(--pipsy-radius-md, 16px));
  box-shadow: var(
    --pipsy-shadow-popover,
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 20px 48px rgba(3, 7, 18, 0.48),
    0 0 40px rgba(99, 102, 241, 0.07)
  );
  backdrop-filter: var(--pipsy-backdrop-dropdown, blur(18px) saturate(1.15));
  -webkit-backdrop-filter: var(--pipsy-backdrop-dropdown, blur(18px) saturate(1.15));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: var(--pipsy-z-header-dropdown, 90);
  transition:
    opacity 0.22s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.22s ease;
}
.nav-dropdown.open .nav-dropdown-panel,
.nav-dropdown-panel[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}
.nav-dropdown-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--pipsy-radius-sm, 12px);
  color: #f5f7ff;
  text-decoration: none;
  font-size: var(--pipsy-type-ui, 0.9rem);
  font-weight: 500;
  border: 1px solid transparent;
  transition:
    background 0.18s ease,
    transform 0.2s ease,
    color 0.18s ease,
    border-color 0.2s ease;
}
.nav-dropdown-panel a:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(99, 102, 241, 0.14));
  border-color: rgba(125, 211, 252, 0.22);
  color: #f5f7ff;
  transform: translateX(4px);
}

.nav-cta {
  padding: var(--pipsy-space-3) var(--pipsy-space-5);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  justify-content: flex-end;
}

.language-switcher {
  padding: var(--pipsy-space-3) var(--pipsy-space-3);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-weight: 600;
  font-size: var(--pipsy-type-ui, 0.9rem);
  outline: none;
  backdrop-filter: blur(10px);
  cursor: pointer;
  min-width: 80px;
}

.language-switcher option {
  background: var(--bg-soft);
  color: white;
}

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: var(--pipsy-space-hero-block-y) 0 var(--pipsy-space-14);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--pipsy-space-hero-grid-gap);
  align-items: center;
}

.hero-copy {
  position: relative;
}

.hero .pipsy-hero--landing .pipsy-hero__subtitle--landing {
  margin-top: calc(-1 * var(--pipsy-space-2));
  margin-bottom: var(--pipsy-space-4);
  max-width: 640px;
  font-size: var(--pipsy-type-lead-lg, 1.12rem);
  line-height: var(--pipsy-leading-normal, 1.55);
  color: rgba(226, 232, 240, 0.88);
}

.hero .pipsy-hero--landing .pipsy-hero__badge--dot::before {
  background: var(--blue);
  box-shadow: var(--pipsy-shadow-dot-glow, 0 0 14px rgba(99, 102, 241, 0.55));
}

.gradient-text {
  background: linear-gradient(135deg, #f1f5f9 0%, #a5b4fc 40%, #c4b5fd 75%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .pipsy-hero__text {
  max-width: 680px;
  color: var(--muted);
  font-size: var(--pipsy-type-title, 1.05rem);
  line-height: 1.7;
  margin-bottom: var(--pipsy-space-7);
}

.hero-actions,
.hero .pipsy-hero__actions {
  display: flex;
  gap: var(--pipsy-space-3);
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: var(--pipsy-space-3);
}

body:not(.admin-shell):not(.admin-auth-shell) .hero-actions .btn.btn-primary,
body:not(.admin-shell):not(.admin-auth-shell) .pipsy-hero__actions .btn.btn-primary {
  min-height: 3rem;
  padding: 0 1.75rem;
  font-size: 1rem;
  box-shadow: var(--pipsy-btn-primary-glow-hero);
}

body:not(.admin-shell):not(.admin-auth-shell) .hero-actions .btn.btn-primary:hover,
body:not(.admin-shell):not(.admin-auth-shell) .pipsy-hero__actions .btn.btn-primary:hover {
  box-shadow: var(--pipsy-btn-primary-glow-hover);
}

/* CTA note: higher specificity than .hero p; text always visible, line animates */
.hero p.hero-cta-note,
.hero .hero-cta-note,
.hero .pipsy-hero__cta-note.hero-cta-note {
  position: relative;
  font-size: var(--pipsy-type-body-sm, 0.875rem);
  font-weight: 500;
  letter-spacing: var(--pipsy-tracking-slight, 0.02em);
  margin-bottom: var(--pipsy-space-9);
  color: var(--muted);
}

.hero .hero-cta-note span {
  position: relative;
  display: inline-block;
}

.hero .hero-cta-note span::before {
  content: "✓ ";
  color: rgba(34, 197, 94, 0.95);
  -webkit-text-fill-color: rgba(34, 197, 94, 0.95);
  margin-right: 6px;
  animation: hero-cta-note-check 0.6s ease-out;
}

.hero .hero-cta-note span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.6), rgba(99, 102, 241, 0.5));
  border-radius: 2px;
  animation: hero-cta-note-line 3.2s ease-in-out infinite;
}

@keyframes hero-cta-note-line {
  0% { width: 0; opacity: 0.8; }
  45% { width: 100%; opacity: 1; }
  55% { width: 100%; opacity: 1; }
  100% { width: 0; opacity: 0.8; }
}

@keyframes hero-cta-note-check {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

.section-home-trust {
  padding-top: var(--pipsy-space-2);
  padding-bottom: var(--pipsy-space-2);
}

.home-trust-heading {
  font-size: var(--pipsy-type-h2-compact, clamp(1.35rem, 2.5vw, 1.75rem));
  font-weight: 800;
  letter-spacing: var(--pipsy-tracking-subtle, -0.03em);
  margin: 0 0 var(--pipsy-space-5);
  color: rgba(241, 245, 249, 0.96);
}

.trust-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--pipsy-space-5);
  margin-bottom: var(--pipsy-space-5);
}

.trust-pillar {
  padding: var(--pipsy-space-inset-lg);
  border-radius: var(--pipsy-radius-card, var(--radius-lg));
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.trust-pillar-title {
  margin: 0 0 var(--pipsy-space-2);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(241, 245, 249, 0.95);
  letter-spacing: -0.02em;
}

.trust-pillar-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.trust-band--home {
  margin-bottom: 0;
}

.trust-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--pipsy-space-5);
  align-items: center;
  margin-bottom: var(--pipsy-space-8);
  padding: var(--pipsy-space-5) var(--pipsy-space-6) var(--pipsy-space-5) var(--pipsy-space-7);
  border-radius: var(--pipsy-radius-card, var(--radius-lg));
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--pipsy-shadow-elev-sm, 0 2px 10px rgba(3, 7, 18, 0.22));
}

.trust-band::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--pipsy-space-3);
  bottom: var(--pipsy-space-3);
  width: 3px;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(180deg, var(--blue), var(--purple));
  opacity: 0.85;
}

.trust-copy {
  min-width: 0;
}

.trust-copy p {
  margin: var(--pipsy-space-2) 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.trust-kicker {
  justify-content: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--pipsy-space-2);
  color: rgba(241,245,249,0.9);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: normal;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
}

.trust-kicker::before {
  content: none;
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--pipsy-space-2);
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 var(--pipsy-space-3);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(241,245,249,0.88);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

/* .btn / .btn-primary / .btn-secondary → public/css/ui-system.css (button system) */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--pipsy-space-4);
  max-width: 820px;
}

.stat {
  padding: var(--pipsy-space-5) var(--pipsy-space-5);
  border-radius: var(--pipsy-radius-card, var(--radius-lg));
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
}

.stat-premium {
  position: relative;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: rgba(12, 15, 28, 0.9);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--pipsy-shadow-elev-md, 0 8px 28px rgba(3, 7, 18, 0.32));
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.stat-premium::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.35), transparent);
  opacity: 0.8;
}

.stat-premium::before {
  content: "";
  position: absolute;
  inset: auto -20px -20px auto;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  opacity: 0.4;
  filter: blur(20px);
}

.stat-premium:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.1);
  box-shadow: var(--pipsy-shadow-elev-md-hover, 0 14px 36px rgba(3, 7, 18, 0.38));
}

.stat-users::before,
.stat-speed::before {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.5), transparent 70%);
}

.stat-trades::before,
.stat-discipline::before {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.45), transparent 70%);
}

.stat-days::before,
.stat-consistency::before {
  background: radial-gradient(circle, rgba(34, 197, 94, 0.4), transparent 70%);
}

.stat-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #e2e8f0;
  backdrop-filter: blur(8px);
}

.stat-emoji {
  font-size: 1.75rem;
  line-height: 1;
}

.stat-speed .stat-icon {
  color: #93c5fd;
}

.stat-discipline .stat-icon {
  color: #c4b5fd;
}

.stat-consistency .stat-icon {
  color: #6ee7b7;
}
.stat strong {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 12px 0 4px;
  color: var(--muted);
}

.stat-count {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.stat-icon-svg {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--pipsy-radius-sm, 12px);
  background: rgba(255,255,255,0.06);
  color: #94a3b8;
  flex-shrink: 0;
}

.stat-icon-svg svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

.stat-users .stat-icon-svg {
  color: #818cf8;
  background: rgba(99, 102, 241, 0.12);
}

.stat-trades .stat-icon-svg {
  color: #a78bfa;
  background: rgba(139, 92, 246, 0.12);
}

.stat-days .stat-icon-svg {
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
}

.visual-card {
  position: relative;
  padding: 24px;
  border-radius: var(--pipsy-radius-hero-surface, var(--radius-xl));
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--pipsy-shadow-elev-xl, 0 26px 64px rgba(3, 7, 18, 0.48));
  overflow: hidden;
}

.visual-card::before {
  content: "";
  position: absolute;
  inset: auto -60px -60px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.2), transparent 70%);
  filter: blur(24px);
}

.screen {
  border-radius: var(--pipsy-radius-panel, var(--radius-lg));
  padding: 24px;
  background: rgba(8, 11, 24, 0.95);
  border: 1px solid rgba(255,255,255,0.06);
}

.screen-carousel {
  min-height: 620px;
}

.screen-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 12px;
}

.screen-pagination {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.carousel-dot.is-active {
  background: #ffffff;
  box-shadow: var(--pipsy-shadow-carousel-active, 0 0 0 4px rgba(255, 255, 255, 0.08));
}

.carousel-dot:hover {
  transform: scale(1.08);
}

.screen-slides {
  position: relative;
  min-height: 500px;
  transition: height 0.35s ease;
}

.screen-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
  gap: 18px;
}

.screen-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mini-badge {
  color: rgba(241,245,249,0.95);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--pipsy-radius-badge-pill, var(--pipsy-radius-full, 9999px));
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.2);
}

.screen-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.screen p {
  color: var(--muted);
  margin-bottom: 20px;
  max-width: 56ch;
  font-size: 0.94rem;
}

.screen-slide {
  display: flex;
  flex-direction: column;
}

.screen-slide .bar-row {
  margin-top: auto;
}

.metric-row,
.bar-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.metric,
.bar-box {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.metric small,
.bar-box small {
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

.metric strong {
  font-size: 1.3rem;
  line-height: 1.25;
}

.bar {
  height: 10px;
  width: 100%;
  border-radius: var(--pipsy-radius-badge-pill, var(--pipsy-radius-full, 9999px));
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.bar::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--bar-fill, 78%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--purple));
}

.section {
  padding: var(--pipsy-space-section-y-tight) 0 var(--pipsy-space-section-y);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: var(--pipsy-space-6);
  align-items: end;
  margin-bottom: var(--pipsy-space-9);
}

.section-head h2,
.about-main h2,
.contact-box h2 {
  font-size: var(--pipsy-type-h2, clamp(1.85rem, 3.5vw, 2.5rem));
  font-weight: 800;
  letter-spacing: var(--pipsy-tracking-subtle, -0.03em);
  margin-bottom: var(--pipsy-space-2);
  position: relative;
}

.section-head > div:first-child h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: var(--pipsy-space-4);
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  opacity: 0.9;
}

.section-head p {
  color: var(--muted);
  max-width: 720px;
  font-size: var(--pipsy-type-section-lead, 0.98rem);
}

.home-faq {
  max-width: 820px;
  margin: 0 auto;
}

.home-faq-list {
  margin-top: var(--pipsy-space-7);
  display: flex;
  flex-direction: column;
  gap: var(--pipsy-space-3);
}

.home-faq-list details {
  border-radius: var(--pipsy-radius-card, var(--radius-lg));
  border: 1px solid var(--panel-border);
  background: var(--panel);
  padding: 0 var(--pipsy-space-5);
  box-shadow: var(--pipsy-shadow-elev-sm, 0 2px 10px rgba(3, 7, 18, 0.22));
}

.home-faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 0.98rem;
  padding: var(--pipsy-space-4) 0;
  color: var(--text);
}

.home-faq-list summary::-webkit-details-marker {
  display: none;
}

.home-faq-list details[open] summary {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  margin-bottom: 0;
  padding-bottom: var(--pipsy-space-4);
}

.home-faq-answer {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
  padding: 0 0 var(--pipsy-space-4);
  margin: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--pipsy-space-stack-md);
}

.card {
  position: relative;
  padding: var(--pipsy-card-padding-hero);
  border-radius: var(--pipsy-card-radius, var(--pipsy-radius-card, var(--radius-lg)));
  background: var(--pipsy-card-bg-glass, var(--panel));
  border: var(--pipsy-card-border, 1px solid var(--panel-border));
  box-shadow: var(--pipsy-card-shadow, var(--pipsy-shadow-elev-md, 0 8px 28px rgba(3, 7, 18, 0.32)));
  backdrop-filter: var(--pipsy-card-blur, blur(16px) saturate(1.45));
  -webkit-backdrop-filter: var(--pipsy-card-blur, blur(16px) saturate(1.45));
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--pipsy-card-border-hover, rgba(255, 255, 255, 0.1));
  box-shadow: var(--pipsy-card-shadow-hover, var(--pipsy-shadow-elev-md-hover, 0 14px 36px rgba(3, 7, 18, 0.38)));
  transform: translateY(-2px);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.04), transparent 50%);
  pointer-events: none;
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  margin-bottom: var(--pipsy-space-4);
  color: #e2e8f0;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(255,255,255,0.06);
}

.icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: var(--pipsy-card-headline-size, var(--pipsy-type-h3, 1.1rem));
  font-weight: var(--pipsy-card-headline-weight, 800);
  margin-bottom: var(--pipsy-space-3);
  letter-spacing: var(--pipsy-card-headline-tracking, var(--pipsy-tracking-ui, -0.02em));
  color: var(--pipsy-card-headline-color, var(--pipsy-text-2, #e2e8f0));
  line-height: var(--pipsy-leading-heading, 1.2);
}

.card p,
.about-main p,
.about-side li,
.contact-box p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.about-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--pipsy-space-6);
  align-items: stretch;
}

.about-main,
.about-side {
  padding: var(--pipsy-card-padding);
  border-radius: var(--pipsy-card-radius, var(--pipsy-radius-card, var(--radius-lg)));
  background: var(--pipsy-card-bg-shell, var(--panel));
  border: var(--pipsy-card-border, 1px solid var(--panel-border));
  box-shadow: var(--pipsy-card-shadow-shell, var(--pipsy-shadow-elev-md, 0 8px 28px rgba(3, 7, 18, 0.32)));
  backdrop-filter: var(--pipsy-card-blur, blur(16px) saturate(1.45));
  -webkit-backdrop-filter: var(--pipsy-card-blur, blur(16px) saturate(1.45));
}

.about-side h3 {
  font-size: var(--pipsy-card-headline-size, 1.15rem);
  font-weight: var(--pipsy-card-headline-weight, 800);
  margin-bottom: var(--pipsy-space-4);
  letter-spacing: var(--pipsy-card-headline-tracking, var(--pipsy-tracking-ui, -0.02em));
  color: var(--pipsy-card-headline-color, var(--pipsy-text-2, #e2e8f0));
  line-height: var(--pipsy-leading-heading, 1.2);
}

.about-side ul {
  list-style: none;
  display: grid;
  gap: var(--pipsy-space-3);
}

.about-side li {
  padding: var(--pipsy-space-4) var(--pipsy-space-4);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
}

.contact-box {
  text-align: center;
  padding: var(--pipsy-space-10) var(--pipsy-space-8);
  border-radius: var(--pipsy-radius-hero-surface, var(--radius-xl));
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--pipsy-shadow-elev-md, 0 8px 28px rgba(3, 7, 18, 0.32));
}

.contact-box p {
  max-width: 680px;
  margin: 0 auto var(--pipsy-space-7);
}

.contact-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--pipsy-space-4) var(--pipsy-space-7);
  border-radius: var(--radius-md);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(135deg, var(--blue), #7c3aed);
  box-shadow: var(--pipsy-shadow-accent-cta, 0 6px 22px rgba(99, 102, 241, 0.28));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-email:hover {
  transform: translateY(-1px);
  box-shadow: var(--pipsy-shadow-accent-cta-hover, 0 10px 30px rgba(99, 102, 241, 0.34));
}

.site-footer {
  padding: var(--pipsy-space-7) 0 var(--pipsy-space-10);
  color: var(--muted);
  text-align: center;
  font-size: 0.88rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.site-footer .footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--pipsy-space-4);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pipsy-space-4) var(--pipsy-space-5);
  justify-content: center;
}

.footer-legal a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--pipsy-transition, 0.2s ease);
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: #fff;
  outline: none;
  box-shadow: var(--pipsy-focus-ring, 0 0 0 2px rgba(99, 102, 241, 0.35));
  border-radius: var(--pipsy-radius-nested, var(--pipsy-radius-xs, 8px));
}

.stats-aggregate-hint {
  margin-top: 1rem;
  max-width: 36rem;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--muted);
  opacity: 0.92;
}

/* Legal pages (adatkezelés, ÁSZF, impresszum, GYIK) — match site glass / prose */
.legal-page-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-page-body .legal-main {
  flex: 1;
  padding: var(--pipsy-space-8) 0 var(--pipsy-space-11);
}

.legal-back-row {
  margin-bottom: var(--pipsy-space-5);
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #a5b4fc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-back-link:hover,
.legal-back-link:focus-visible {
  color: #c7d2fe;
  outline: none;
}

.legal-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pipsy-space-2) var(--pipsy-space-3);
  margin-bottom: var(--pipsy-space-7);
}

.legal-subnav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-radius: var(--pipsy-radius-badge-pill, var(--pipsy-radius-full, 9999px));
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.legal-subnav-link:hover,
.legal-subnav-link:focus-visible {
  color: #f1f5f9;
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.08);
  outline: none;
}

.legal-subnav-link.is-active {
  color: #fff;
  border-color: rgba(99, 102, 241, 0.55);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(124, 58, 237, 0.12));
  box-shadow: var(--pipsy-shadow-legal-pill, 0 6px 22px rgba(99, 102, 241, 0.18));
}

.legal-doc-card {
  position: relative;
  overflow: hidden;
  max-width: 46rem;
  margin: 0 auto;
  padding: var(--pipsy-space-8) var(--pipsy-space-7) var(--pipsy-space-10);
  background: linear-gradient(160deg, rgba(17, 20, 34, 0.92), rgba(12, 14, 26, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--pipsy-radius-panel, var(--pipsy-radius-lg, 24px));
  box-shadow: var(--pipsy-shadow-elev-lg, 0 22px 56px rgba(3, 7, 18, 0.44));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.legal-doc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.legal-doc-card > * {
  position: relative;
  z-index: 1;
}

.legal-doc-title {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: #f8fafc;
}

.legal-lead {
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}

.legal-prose {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #cbd5e1;
}

.legal-prose h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.85rem 0 0.6rem;
  color: #f1f5f9;
  letter-spacing: -0.02em;
}

.legal-prose h2:first-child {
  margin-top: 0;
}

.legal-prose p,
.legal-prose li {
  margin: 0.65rem 0;
}

.legal-prose ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
}

.legal-prose a {
  color: #a5b4fc;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-prose a:hover {
  color: #c7d2fe;
}

.legal-prose .legal-core-dl {
  margin: 0.75rem 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--pipsy-radius-sm, 12px);
  border: 1px solid rgba(129, 140, 248, 0.22);
  background: rgba(15, 23, 42, 0.45);
}

.legal-prose .legal-core-dl dt {
  margin-top: 0.65rem;
  font-weight: 700;
  color: #e2e8f0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legal-prose .legal-core-dl dt:first-child {
  margin-top: 0;
}

.legal-prose .legal-core-dl dd {
  margin: 0.2rem 0 0;
  padding: 0;
}

.legal-prose .legal-core-note {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid rgba(129, 140, 248, 0.55);
  background: rgba(15, 23, 42, 0.35);
  font-size: 0.92rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.legal-prose .legal-faq-intro {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--pipsy-radius-nested, var(--pipsy-radius-xs, 8px));
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.2);
  font-size: 0.92rem;
  line-height: 1.6;
  color: #cbd5e1;
}

/* FAQ accordion (GYIK) — native <details> for accessibility, no JS */
.legal-prose .legal-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.35rem 0 0.5rem;
}

.legal-prose details.legal-faq-item {
  border-radius: var(--pipsy-radius-toolbar, var(--pipsy-radius-md, 16px));
  border: 1px solid rgba(129, 140, 248, 0.22);
  background: rgba(15, 23, 42, 0.4);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.legal-prose details.legal-faq-item[open] {
  border-color: rgba(129, 140, 248, 0.42);
  box-shadow: var(--pipsy-shadow-elev-md, 0 8px 28px rgba(3, 7, 18, 0.32));
}

.legal-prose details.legal-faq-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.95rem 1.05rem;
  font-weight: 600;
  color: #f1f5f9;
  font-size: 0.95rem;
  line-height: 1.45;
  user-select: none;
}

.legal-prose details.legal-faq-item > summary::-webkit-details-marker {
  display: none;
}

.legal-prose details.legal-faq-item > summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.4rem;
  border-right: 2px solid #a5b4fc;
  border-bottom: 2px solid #a5b4fc;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}

.legal-prose details.legal-faq-item[open] > summary::after {
  transform: rotate(45deg);
  margin-top: 0.48rem;
}

.legal-prose details.legal-faq-item > summary:hover {
  color: #fff;
}

.legal-prose details.legal-faq-item > summary:focus-visible {
  outline: 2px solid #a5b4fc;
  outline-offset: 2px;
  border-radius: var(--pipsy-radius-nested, var(--pipsy-radius-xs, 8px));
}

.legal-prose .legal-faq-body {
  padding: 0 1.05rem 1.05rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.65;
}

.legal-prose .legal-faq-body p {
  margin: 0.55rem 0;
}

.legal-prose .legal-faq-body p:first-child {
  margin-top: 0.8rem;
}

.legal-prose .legal-faq-body ul {
  margin: 0.5rem 0 0.65rem;
  padding-left: 1.2rem;
}

.legal-prose .legal-faq-body li {
  margin: 0.35rem 0;
}

@media (min-width: 640px) {
  .legal-doc-card {
    padding: 2.25rem 2.5rem 2.75rem;
  }
}

/* Sticky CTA bar – premium SaaS */
.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 12px 0;
  background: rgba(5, 7, 18, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--pipsy-shadow-float-up, 0 -10px 36px rgba(3, 7, 18, 0.35));
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s ease, visibility 0.3s ease;
}

.sticky-cta-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.sticky-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pipsy-space-5);
  flex-wrap: wrap;
}

.sticky-cta-text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.sticky-cta-btn {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .sticky-cta-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .sticky-cta-btn {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .nav-wrap,
  .hero-grid,
  .about-box,
  .cards,
  .stats,
  .metric-row,
  .bar-row {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    justify-items: center;
  }

  .main-nav,
  .nav-actions {
    justify-content: center;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding-top: clamp(var(--pipsy-space-8), 10vw, 3.375rem);
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .trust-pillars {
    grid-template-columns: 1fr;
  }

  .trust-band {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .trust-chips {
    justify-content: center;
  }

  .hero .hero-actions .btn,
  .hero .pipsy-hero__actions .btn,
  .contact-box .btn,
  .pipsy-form-actions .btn,
  .sticky-cta-bar .btn,
  .contact-email,
  .language-switcher {
    width: 100%;
  }

  .site-header .nav-actions .btn.btn-primary {
    width: auto;
    min-width: min(100%, 9.5rem);
  }

  .main-nav {
    gap: var(--pipsy-space-3);
  }
}


/* AUTH PAGES */

.auth-page{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:100vh;
}

.auth-container{
  width:100%;
  max-width:480px;
  padding:var(--pipsy-space-5);
}

.auth-card{
  background:var(--panel);
  border:1px solid var(--panel-border);
  border-radius:var(--pipsy-radius-panel, var(--pipsy-radius-lg, 24px));
  padding:var(--pipsy-space-9);
  box-shadow:var(--pipsy-shadow-elev-md, var(--glow));
}

.auth-title{
  font-size:2rem;
  margin-bottom:24px;
  text-align:center;
}

.auth-form input{
  width:100%;
  padding:14px;
  margin-bottom:14px;
  border-radius:var(--pipsy-radius-control, var(--pipsy-radius-sm, 12px));
  border:1px solid rgba(255,255,255,0.15);
  background:rgba(255,255,255,0.05);
  color:white;
}

.auth-submit{
  width:100%;
  margin-top:6px;
}

.auth-divider{
  text-align:center;
  margin:22px 0;
  opacity:0.6;
}

.auth-register{
  width:100%;
  display:block;
  text-align:center;
}

.auth-back{
  text-align:center;
  margin-top:18px;
  font-size:0.9rem;
  opacity:0.7;
}

.header-login{
  margin-right:10px;
}


.auth-main{
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:calc(100vh - 120px);
  padding-top:40px;
}

.auth-container{
  width:100%;
  max-width:480px;
}

.auth-card{
  margin-top:20px;
}


/* CENTER LOGIN PAGE */
.auth-center{
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:calc(100vh - 120px);
}

.auth-card{
  width:100%;
  max-width:480px;
  margin:auto;
}

/* LOGIN / AUTH PAGE */

.auth-page{
  padding-top:80px;
  min-height:calc(100vh - 80px);
  display:flex;
  align-items:center;
}

.auth-wrapper{
  display:flex;
  justify-content:center;
}

.auth-card{
  width:100%;
  max-width:480px;
  padding:40px;
  border-radius:var(--pipsy-radius-panel, var(--pipsy-radius-lg, 24px));
  background:var(--panel);
  border:1px solid var(--panel-border);
  box-shadow:var(--pipsy-shadow-elev-md, var(--glow));
}

.auth-title{
  font-size:1.8rem;
  margin-bottom:24px;
  text-align:center;
}

.auth-form input{
  width:100%;
  padding:14px;
  margin-bottom:14px;
  border-radius:var(--pipsy-radius-control, var(--pipsy-radius-sm, 12px));
  border:1px solid rgba(255,255,255,0.15);
  background:rgba(255,255,255,0.05);
  color:white;
}

.auth-submit{
  width:100%;
  margin-top:6px;
}

.auth-divider{
  text-align:center;
  margin:22px 0;
  opacity:0.6;
}

.auth-register{
  width:100%;
  text-align:center;
}


/* LOGIN PAGE FIX */
.auth-page{
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:calc(100vh - 120px);
}

.auth-card{
  width:100%;
  max-width:480px;
  margin:auto;
}


/* NAV LINK STYLE (same as menu items) */
.nav-link{
  text-decoration:none;
  color:var(--text);
  font-weight:500;
  padding:8px 12px;
  transition:0.2s;
}

.nav-link:hover{
  color:var(--accent);
}


/* Fejléc bejelentkezés: .btn.btn-primary.pipsy-login-btn — ui-system */
.nav-actions {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.main-nav a {
  text-decoration: none;
}

.nav-actions a.btn.btn-primary.pipsy-login-btn,
.nav-actions a.btn.btn-primary.pipsy-login-btn:link,
.nav-actions a.btn.btn-primary.pipsy-login-btn:visited {
  border-bottom: none !important;
}

.nav-actions a.btn.btn-primary.pipsy-login-btn span {
  color: inherit !important;
  text-decoration: none !important;
}

@media (max-width: 760px) {
  .nav-actions {
    width: 100%;
    justify-content: center;
  }
}

/* === DEFINITIVE HEADER BUTTON FIX === */
.site-header .nav-wrap{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:24px !important;
}

.site-header .main-nav{
  display:flex !important;
  align-items:center !important;
  gap:26px !important;
  flex:1 1 auto !important;
  justify-content:center !important;
}

.site-header .main-nav > a{
  text-decoration:none !important;
  color:rgba(241,245,249,0.8) !important;
  font-weight:500 !important;
  font-size:0.9rem !important;
  padding:8px 14px !important;
  border:none !important;
  background:none !important;
  box-shadow:none !important;
  border-radius:var(--pipsy-radius-sm, 12px) !important;
}

.site-header .main-nav > a:hover{
  color:var(--text) !important;
  background:rgba(255,255,255,0.04) !important;
  text-decoration:none !important;
}

.site-header .main-nav > a.nav-support-btn{
  position:relative !important;
  color:#bbf7d0 !important;
  font-weight:600 !important;
  letter-spacing:0.03em !important;
  background:
    linear-gradient(155deg,
      rgba(12, 54, 32, 0.78) 0%,
      rgba(4, 38, 28, 0.86) 44%,
      rgba(1, 18, 12, 0.92) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.22)) !important;
  backdrop-filter:blur(16px) saturate(1.25) !important;
  -webkit-backdrop-filter:blur(16px) saturate(1.25) !important;
  border:1px solid rgba(52, 120, 72, 0.45) !important;
  box-shadow:
    0 4px 28px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.025) inset,
    inset 0 1px 0 rgba(167, 243, 208, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45) !important;
}
.site-header .main-nav > a.nav-support-btn:hover{
  color:#d1fae5 !important;
  background:
    linear-gradient(155deg,
      rgba(22, 101, 52, 0.42) 0%,
      rgba(6, 55, 42, 0.78) 42%,
      rgba(1, 22, 15, 0.9) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.16)) !important;
  border-color:rgba(74, 222, 128, 0.28) !important;
  box-shadow:
    0 8px 34px rgba(0, 0, 0, 0.5),
    0 0 22px rgba(34, 197, 94, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    inset 0 1px 0 rgba(187, 247, 208, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.38) !important;
  text-decoration:none !important;
}

.site-header .nav-actions{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:14px !important;
  flex:0 0 auto !important;
}

.site-header a.btn.btn-primary.pipsy-login-btn,
.site-header a.btn.btn-primary.pipsy-login-btn:link,
.site-header a.btn.btn-primary.pipsy-login-btn:visited {
  text-decoration: none !important;
  white-space: nowrap !important;
  border-bottom: none !important;
}

.site-header a.btn.btn-primary.pipsy-login-btn span {
  color: inherit !important;
  text-decoration: none !important;
}

.site-header .language-switcher{
  height:46px !important;
}

@media (max-width: 900px){
  .site-header .nav-wrap{
    flex-direction:column !important;
    align-items:center !important;
  }

  .site-header .main-nav{
    flex-wrap:wrap !important;
    gap:14px !important;
  }

  .site-header .nav-actions{
    width:100% !important;
    justify-content:center !important;
  }
}


/* FIXED FLAG LANGUAGE PICKER */
.native-language-switcher{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
}

.language-picker{
  position:relative;
  display:inline-flex;
}

.language-toggle{
  display:inline-flex;
  align-items:center;
  gap:10px;
  height:46px;
  padding:0 16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.05);
  color:var(--text);
  font-weight:700;
  outline:none;
  backdrop-filter:blur(10px);
  cursor:pointer;
  min-width:100px;
  box-shadow:0 8px 20px rgba(0,0,0,0.14);
}

.language-toggle:hover{
  background:rgba(255,255,255,0.08);
}

.language-flag{
  font-size:1.05rem;
  line-height:1;
}

.language-code{
  font-size:0.95rem;
  letter-spacing:0.04em;
  line-height:1;
}

.language-caret{
  font-size:0.8rem;
  opacity:0.85;
}

.language-menu{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  min-width:188px;
  padding:10px;
  border-radius:var(--pipsy-radius-popover, var(--pipsy-radius-md, 16px));
  border:var(--pipsy-dropdown-shell-border, 1px solid rgba(99, 102, 241, 0.18));
  background:var(
    --pipsy-dropdown-shell-bg,
    linear-gradient(165deg, rgba(18, 22, 38, 0.98), rgba(10, 14, 28, 0.99))
  );
  box-shadow:var(
    --pipsy-shadow-popover,
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 20px 48px rgba(3, 7, 18, 0.48),
    0 0 40px rgba(99, 102, 241, 0.07)
  );
  backdrop-filter:var(--pipsy-backdrop-dropdown, blur(18px) saturate(1.15));
  -webkit-backdrop-filter:var(--pipsy-backdrop-dropdown, blur(18px) saturate(1.15));
  display:none;
  z-index:var(--pipsy-z-header-dropdown, 90);
}

.language-menu.open{
  display:block;
}

.language-option{
  width:100%;
  display:flex;
  align-items:center;
  gap:12px;
  border:none;
  background:transparent;
  color:var(--text);
  padding:11px 12px;
  border-radius:12px;
  cursor:pointer;
  text-align:left;
  font-weight:600;
  transition:background 0.18s ease, transform 0.18s ease;
}

.language-option:hover,
.language-option.active{
  background:rgba(99,102,241,0.14);
  transform:translateX(2px);
}

.language-option:focus-visible{
  outline:2px solid rgba(125,211,252,0.85);
  outline-offset:2px;
}

.language-option span:last-child{
  white-space:nowrap;
}





/* SMALL PROFESSIONAL FLAG SIZE */
.language-flag-icon{
  width:12px !important;
  height:8px !important;
  border-radius:2px;
  object-fit:cover;
  display:inline-block;
  box-shadow:0 0 0 1px rgba(255,255,255,0.08);
  vertical-align:middle;
}

.language-toggle{
  gap:6px !important;
  min-width:auto !important;
  padding:0 12px !important;
}

.language-option{
  gap:8px !important;
}

.language-option .language-flag-icon{
  width:14px !important;
  height:9px !important;
}

.pipsy-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
@property --pipsy-dm-border-fill{syntax:'<angle>';inherits:false;initial-value:0deg;}
@keyframes pipsyDmBorderFillSweep{from{--pipsy-dm-border-fill:0deg}to{--pipsy-dm-border-fill:360deg}}
.user-menu{position:relative;}
.site-header .user-menu-toggle,.user-menu .user-menu-toggle{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px 0 18px;border-radius:var(--pipsy-radius-md,16px);background:linear-gradient(180deg,rgba(38,44,60,0.98),rgba(20,24,36,0.99))!important;color:#e8eefb!important;border:1px solid rgba(148,163,184,0.2)!important;box-shadow:0 4px 18px rgba(0,0,0,0.4),inset 0 1px 0 rgba(255,255,255,0.06)!important;font-weight:700;cursor:pointer;position:relative;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease;}
.user-menu-toggle--has-dm{
  box-shadow:0 4px 22px rgba(0,0,0,0.45),0 0 26px rgba(245,158,11,0.16),inset 0 1px 0 rgba(255,255,255,0.07)!important;
  border-color:rgba(251,191,36,0.38)!important;
}
/* Keret mentén töltődő sárga sáv (a réteg nem pörög — csak a „töltés” nő körben) */
.user-menu-toggle--has-dm::before{
  content:'';
  position:absolute;
  inset:-2px;
  border-radius:calc(var(--pipsy-radius-md,16px) + 2px);
  padding:2px;
  background:conic-gradient(from -90deg,#fbbf24 0deg,#fde68a calc(var(--pipsy-dm-border-fill)*0.45),#d97706 var(--pipsy-dm-border-fill),transparent var(--pipsy-dm-border-fill));
  -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  z-index:-1;
  pointer-events:none;
  animation:pipsyDmBorderFillSweep 2.35s linear infinite;
  filter:drop-shadow(0 0 7px rgba(251,191,36,0.38));
}
.user-menu-dm-badge{display:none!important;}
#userMenuPanel a.pipsy-dm-unread-glow{position:relative;z-index:0;isolation:isolate;background:rgba(12,16,28,0.94)!important;}
#userMenuPanel a.pipsy-dm-unread-glow::before{
  content:'';
  position:absolute;
  inset:-2px;
  border-radius:14px;
  padding:2px;
  z-index:-1;
  background:conic-gradient(from -90deg,#fbbf24 0deg,#fde68a calc(var(--pipsy-dm-border-fill)*0.45),#d97706 var(--pipsy-dm-border-fill),transparent var(--pipsy-dm-border-fill));
  -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  pointer-events:none;
  animation:pipsyDmBorderFillSweep 2.5s linear infinite;
  filter:drop-shadow(0 0 6px rgba(251,191,36,0.35));
}
#userMenuPanel a.pipsy-dm-unread-glow:hover{background:rgba(99,102,241,0.14)!important;}
@media (prefers-reduced-motion:reduce){
  .user-menu-toggle--has-dm::before,
  #userMenuPanel a.pipsy-dm-unread-glow::before{animation:none;--pipsy-dm-border-fill:288deg;opacity:0.94}
}
.site-header .user-menu-toggle:hover,.user-menu .user-menu-toggle:hover{transform:translateY(-1px);border-color:rgba(148,163,184,0.3)!important;box-shadow:0 8px 26px rgba(0,0,0,0.48),inset 0 1px 0 rgba(255,255,255,0.08)!important;}
.site-header .user-menu-toggle--has-dm:hover,.user-menu .user-menu-toggle--has-dm:hover{box-shadow:0 8px 28px rgba(0,0,0,0.5),0 0 30px rgba(245,158,11,0.2),inset 0 1px 0 rgba(255,255,255,0.08)!important;}
.user-menu-panel{position:absolute;top:calc(100% + 10px);right:0;min-width:220px;padding:10px;background:var(--pipsy-dropdown-shell-bg,linear-gradient(165deg, rgba(18,22,38,0.98), rgba(10,14,28,0.99)));border:var(--pipsy-dropdown-shell-border,1px solid rgba(99,102,241,0.18));border-radius:var(--pipsy-radius-popover,var(--pipsy-radius-md,16px));box-shadow:var(--pipsy-shadow-popover,0 0 0 1px rgba(255,255,255,0.04) inset,0 20px 48px rgba(3,7,18,0.48),0 0 40px rgba(99,102,241,0.07));backdrop-filter:var(--pipsy-backdrop-dropdown,blur(18px) saturate(1.15));-webkit-backdrop-filter:var(--pipsy-backdrop-dropdown,blur(18px) saturate(1.15));opacity:0;visibility:hidden;pointer-events:none;transform:translateY(8px) scale(0.98);transform-origin:top right;transition:opacity .22s ease,transform .28s cubic-bezier(.22,1,.36,1),visibility .22s ease;z-index:var(--pipsy-z-header-dropdown,90);}
.user-menu.open .user-menu-panel{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0) scale(1);}
.user-menu-panel a{display:block;padding:12px 14px;border-radius:var(--pipsy-radius-sm,12px);color:#f5f7ff;text-decoration:none;font-weight:500;transition:background .18s ease, transform .18s ease;}
.user-menu-panel a:hover{background:rgba(99,102,241,0.14);transform:translateX(2px);}
.user-menu-modules{margin:4px 0;padding:0;border:none;}
.user-menu-modules-summary{list-style:none;padding:10px 14px;border-radius:var(--pipsy-radius-sm,12px);color:#a5b4e8;font-weight:600;cursor:pointer;display:flex;align-items:center;gap:8px;transition:background .2s ease,color .2s ease,box-shadow .2s ease;border:1px solid transparent;}
.user-menu-modules-summary::-webkit-details-marker{display:none;}
.user-menu-modules-summary::before{content:'';width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid currentColor;transition:transform .2s ease;}
.user-menu-modules[open] .user-menu-modules-summary::before{transform:rotate(180deg);}
.user-menu-modules-summary:hover{background:rgba(99,102,241,0.1);color:#e8eefb;border-color:rgba(99,102,241,0.15);}
.user-menu-modules[open] .user-menu-modules-summary{background:rgba(99,102,241,0.08);border-color:rgba(99,102,241,0.2);color:#e8eefb;box-shadow:inset 0 1px 0 rgba(255,255,255,0.06);}
.user-menu-modules-inner{padding:6px 0 8px 10px;margin-top:4px;border-left:2px solid rgba(99,102,241,0.25);}
.user-menu-module-section{margin:0 0 12px 0;}
.user-menu-module-section:last-child{margin-bottom:2px;}
.user-menu-module-heading{
  display:block;
  font-size:0.65rem;
  font-weight:700;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:rgba(165,180,232,0.72);
  padding:6px 14px 5px 14px;
  margin:0;
  line-height:1.35;
}
.user-menu-module-section:first-child .user-menu-module-heading{padding-top:2px;}
.user-menu-modules-inner .user-menu-module-section a{
  padding:7px 14px 7px 16px;
  font-size:.92rem;
  color:#c8d2f0;
  border-radius:var(--pipsy-radius-nested,var(--pipsy-radius-xs,8px));
  transition:background .15s ease,color .15s ease,transform .15s ease;
  display:block;
}
.user-menu-modules-inner .user-menu-module-section a:hover{background:rgba(99,102,241,0.12);color:#f1f5f9;transform:translateX(3px);}

/* ================================================================
   SITE HEADER — Premium 3D final override (all pages)
   ================================================================ */
.site-header {
  backdrop-filter: blur(20px) saturate(1.22) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.22) !important;
  background: linear-gradient(180deg, rgba(6, 10, 26, 0.94) 0%, rgba(4, 8, 20, 0.9) 100%) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 20px 46px rgba(2, 6, 20, 0.38) !important;
}

.site-header .nav-wrap {
  gap: 22px !important;
}

.site-header .main-nav > a,
.site-header .nav-dropdown-trigger {
  padding: 9px 14px !important;
  border-radius: 12px !important;
  border: 1px solid transparent !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.01)) !important;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.22s ease,
    box-shadow 0.25s ease,
    background 0.22s ease,
    color 0.2s ease !important;
}

.site-header .main-nav > a:hover,
.site-header .nav-dropdown-trigger:hover,
.site-header .nav-dropdown-trigger[aria-expanded="true"] {
  color: #eef4ff !important;
  background: linear-gradient(
    165deg,
    rgba(99, 102, 241, 0.18) 0%,
    rgba(129, 140, 248, 0.1) 45%,
    rgba(167, 139, 250, 0.14) 100%
  ) !important;
  border-color: rgba(165, 180, 252, 0.34) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 24px rgba(2, 6, 23, 0.34),
    0 0 22px rgba(99, 102, 241, 0.16),
    0 0 32px rgba(167, 139, 250, 0.08) !important;
  transform: translateY(-1px) !important;
}

.site-header .nav-dropdown-panel,
.site-header .language-menu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.97);
  transform-origin: top center;
  display: block !important;
  transition:
    opacity 0.22s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.22s ease !important;
}

/* Tools dropdown as premium wide "mega panel" */
.site-header .nav-dropdown-panel {
  width: min(760px, calc(100vw - 42px)) !important;
  min-width: min(760px, calc(100vw - 42px)) !important;
  left: 50% !important;
  right: auto !important;
  transform: translate(-50%, 8px) scale(0.97) !important;
  padding: 16px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(165, 180, 252, 0.26) !important;
  background:
    linear-gradient(160deg, rgba(14, 21, 40, 0.98), rgba(8, 13, 28, 0.98)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 28px 64px rgba(2, 6, 23, 0.54),
    0 0 52px rgba(99, 102, 241, 0.14) !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.site-header .nav-dropdown.open .nav-dropdown-panel,
.site-header .nav-dropdown-panel[aria-hidden="false"],
.site-header .language-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.site-header .nav-dropdown.open .nav-dropdown-panel,
.site-header .nav-dropdown-panel[aria-hidden="false"] {
  transform: translate(-50%, 0) scale(1) !important;
}

.site-header .nav-dropdown.open .nav-dropdown-trigger,
.site-header .nav-dropdown-trigger[aria-expanded="true"],
.site-header .language-menu.open ~ .language-toggle,
.site-header .user-menu.open .user-menu-toggle {
  color: #eef4ff !important;
  background: linear-gradient(
    165deg,
    rgba(99, 102, 241, 0.2) 0%,
    rgba(129, 140, 248, 0.12) 50%,
    rgba(167, 139, 250, 0.14) 100%
  ) !important;
  border-color: rgba(165, 180, 252, 0.38) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 12px 26px rgba(2, 6, 23, 0.36),
    0 0 24px rgba(99, 102, 241, 0.18),
    0 0 30px rgba(167, 139, 250, 0.1) !important;
}

.site-header .nav-dropdown-panel a,
.site-header .language-option,
.site-header .user-menu-panel a {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.24s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.2s ease,
    border-color 0.2s ease !important;
}

.site-header .nav-dropdown-panel a {
  min-height: 96px;
  padding: 14px 14px 14px 68px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  background: linear-gradient(170deg, rgba(17, 25, 45, 0.78), rgba(10, 15, 30, 0.8)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 26px rgba(2, 6, 20, 0.34);
  display: flex !important;
  align-items: center;
  font-size: 0.96rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.site-header .nav-dropdown-panel a::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(165, 180, 252, 0.3);
  background:
    linear-gradient(160deg, rgba(99, 102, 241, 0.26), rgba(167, 139, 250, 0.2)),
    rgba(12, 19, 38, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 20px rgba(2, 6, 23, 0.32);
  transition:
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.site-header .nav-dropdown-panel a::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-color: #e6f3ff;
  opacity: 0.98;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), filter 0.24s ease;
}

/* Default icon (for unmatched routes): grid/modules */
.site-header .nav-dropdown-panel a::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='8' height='7' rx='1.6' fill='black'/%3E%3Crect x='13' y='4' width='8' height='7' rx='1.6' fill='black'/%3E%3Crect x='3' y='13' width='8' height='7' rx='1.6' fill='black'/%3E%3Crect x='13' y='13' width='8' height='7' rx='1.6' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='8' height='7' rx='1.6' fill='black'/%3E%3Crect x='13' y='4' width='8' height='7' rx='1.6' fill='black'/%3E%3Crect x='3' y='13' width='8' height='7' rx='1.6' fill='black'/%3E%3Crect x='13' y='13' width='8' height='7' rx='1.6' fill='black'/%3E%3C/svg%3E");
}

/* Pricing / packages */
.site-header .nav-dropdown-panel a[href*="solutions"]::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='8' height='7' rx='1.6' fill='black'/%3E%3Crect x='13' y='4' width='8' height='7' rx='1.6' fill='black'/%3E%3Crect x='3' y='13' width='8' height='7' rx='1.6' fill='black'/%3E%3Crect x='13' y='13' width='8' height='7' rx='1.6' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='8' height='7' rx='1.6' fill='black'/%3E%3Crect x='13' y='4' width='8' height='7' rx='1.6' fill='black'/%3E%3Crect x='3' y='13' width='8' height='7' rx='1.6' fill='black'/%3E%3Crect x='13' y='13' width='8' height='7' rx='1.6' fill='black'/%3E%3C/svg%3E");
}

.site-header .nav-dropdown-panel a[href*="packages"]::after,
.site-header .nav-dropdown-panel a[href*="pricing"]::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7.5A2.5 2.5 0 0 1 6.5 5h11A2.5 2.5 0 0 1 20 7.5v9A2.5 2.5 0 0 1 17.5 19h-11A2.5 2.5 0 0 1 4 16.5v-9Z' fill='black'/%3E%3Crect x='4' y='9' width='16' height='2.4' fill='white'/%3E%3Ccircle cx='16.7' cy='15.3' r='1.2' fill='white'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7.5A2.5 2.5 0 0 1 6.5 5h11A2.5 2.5 0 0 1 20 7.5v9A2.5 2.5 0 0 1 17.5 19h-11A2.5 2.5 0 0 1 4 16.5v-9Z' fill='black'/%3E%3Crect x='4' y='9' width='16' height='2.4' fill='white'/%3E%3Ccircle cx='16.7' cy='15.3' r='1.2' fill='white'/%3E%3C/svg%3E");
}

/* Dashboard */
.site-header .nav-dropdown-panel a[href*="dashboard"]::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='8' height='8' rx='1.6' fill='black'/%3E%3Crect x='13' y='3' width='8' height='5' rx='1.5' fill='black'/%3E%3Crect x='13' y='10' width='8' height='11' rx='1.6' fill='black'/%3E%3Crect x='3' y='13' width='8' height='8' rx='1.6' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='8' height='8' rx='1.6' fill='black'/%3E%3Crect x='13' y='3' width='8' height='5' rx='1.5' fill='black'/%3E%3Crect x='13' y='10' width='8' height='11' rx='1.6' fill='black'/%3E%3Crect x='3' y='13' width='8' height='8' rx='1.6' fill='black'/%3E%3C/svg%3E");
}

/* Calendar / journal */
.site-header .nav-dropdown-panel a[href*="calendar"]::after,
.site-header .nav-dropdown-panel a[href*="journal"]::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3.2' y='4.5' width='17.6' height='16.2' rx='2.4' fill='black'/%3E%3Crect x='3.2' y='8.2' width='17.6' height='2.2' fill='white'/%3E%3Crect x='7' y='2.3' width='2.2' height='4.6' rx='1' fill='black'/%3E%3Crect x='14.8' y='2.3' width='2.2' height='4.6' rx='1' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3.2' y='4.5' width='17.6' height='16.2' rx='2.4' fill='black'/%3E%3Crect x='3.2' y='8.2' width='17.6' height='2.2' fill='white'/%3E%3Crect x='7' y='2.3' width='2.2' height='4.6' rx='1' fill='black'/%3E%3Crect x='14.8' y='2.3' width='2.2' height='4.6' rx='1' fill='black'/%3E%3C/svg%3E");
}

/* Prop / funded */
.site-header .nav-dropdown-panel a[href*="prop"]::after,
.site-header .nav-dropdown-panel a[href*="funded"]::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8 19.2 5.7v5.8c0 4.4-2.8 8.2-7.2 9.9-4.4-1.7-7.2-5.5-7.2-9.9V5.7L12 2.8Z' fill='black'/%3E%3Cpath d='m8.7 12.2 2.1 2.1 4.5-4.5' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8 19.2 5.7v5.8c0 4.4-2.8 8.2-7.2 9.9-4.4-1.7-7.2-5.5-7.2-9.9V5.7L12 2.8Z' fill='black'/%3E%3Cpath d='m8.7 12.2 2.1 2.1 4.5-4.5' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Emotion */
.site-header .nav-dropdown-panel a[href*="emotion"]::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.7s-7.6-4.8-7.6-10A4.4 4.4 0 0 1 12 7.8a4.4 4.4 0 0 1 7.6 2.9c0 5.2-7.6 10-7.6 10Z' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.7s-7.6-4.8-7.6-10A4.4 4.4 0 0 1 12 7.8a4.4 4.4 0 0 1 7.6 2.9c0 5.2-7.6 10-7.6 10Z' fill='black'/%3E%3C/svg%3E");
}

/* Visual analytics / reports */
.site-header .nav-dropdown-panel a[href*="visual"]::after,
.site-header .nav-dropdown-panel a[href*="analytics"]::after,
.site-header .nav-dropdown-panel a[href*="report"]::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3.4' y='13.5' width='3.6' height='7.1' rx='1.1' fill='black'/%3E%3Crect x='10.2' y='9.6' width='3.6' height='11' rx='1.1' fill='black'/%3E%3Crect x='17' y='5.4' width='3.6' height='15.2' rx='1.1' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3.4' y='13.5' width='3.6' height='7.1' rx='1.1' fill='black'/%3E%3Crect x='10.2' y='9.6' width='3.6' height='11' rx='1.1' fill='black'/%3E%3Crect x='17' y='5.4' width='3.6' height='15.2' rx='1.1' fill='black'/%3E%3C/svg%3E");
}

/* Backtest / strategy */
.site-header .nav-dropdown-panel a[href*="backtest"]::after,
.site-header .nav-dropdown-panel a[href*="strategy"]::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5.2h16v13.6H4z' fill='black'/%3E%3Cpath d='m7 14.6 3.1-3.2 2.1 2.1 4-4.2' stroke='white' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5.2h16v13.6H4z' fill='black'/%3E%3Cpath d='m7 14.6 3.1-3.2 2.1 2.1 4-4.2' stroke='white' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Support / contact */
.site-header .nav-dropdown-panel a[href*="support"]::after,
.site-header .nav-dropdown-panel a[href*="contact"]::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7.2A2.2 2.2 0 0 1 6.2 5h11.6A2.2 2.2 0 0 1 20 7.2v9.6a2.2 2.2 0 0 1-2.2 2.2H6.2A2.2 2.2 0 0 1 4 16.8V7.2Z' fill='black'/%3E%3Cpath d='m5.6 7 6.4 5 6.4-5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7.2A2.2 2.2 0 0 1 6.2 5h11.6A2.2 2.2 0 0 1 20 7.2v9.6a2.2 2.2 0 0 1-2.2 2.2H6.2A2.2 2.2 0 0 1 4 16.8V7.2Z' fill='black'/%3E%3Cpath d='m5.6 7 6.4 5 6.4-5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Icon tile accent color by destination */
.site-header .nav-dropdown-panel a[href*="calendar"]::before,
.site-header .nav-dropdown-panel a[href*="journal"]::before {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.3), rgba(129, 140, 248, 0.22));
}
.site-header .nav-dropdown-panel a[href*="prop"]::before,
.site-header .nav-dropdown-panel a[href*="funded"]::before {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.28), rgba(79, 70, 229, 0.22));
}
.site-header .nav-dropdown-panel a[href*="emotion"]::before {
  background: linear-gradient(145deg, rgba(167, 139, 250, 0.3), rgba(139, 92, 246, 0.23));
}
.site-header .nav-dropdown-panel a[href*="visual"]::before,
.site-header .nav-dropdown-panel a[href*="analytics"]::before,
.site-header .nav-dropdown-panel a[href*="report"]::before {
  background: linear-gradient(145deg, rgba(129, 140, 248, 0.28), rgba(99, 102, 241, 0.24));
}
.site-header .nav-dropdown-panel a[href*="backtest"]::before,
.site-header .nav-dropdown-panel a[href*="strategy"]::before {
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.28), rgba(20, 184, 166, 0.22));
}
.site-header .nav-dropdown-panel a[href*="packages"]::before,
.site-header .nav-dropdown-panel a[href*="pricing"]::before {
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.28), rgba(245, 158, 11, 0.22));
}
.site-header .nav-dropdown-panel a[href*="support"]::before,
.site-header .nav-dropdown-panel a[href*="contact"]::before {
  background: linear-gradient(145deg, rgba(129, 140, 248, 0.3), rgba(99, 102, 241, 0.24));
}
.site-header .nav-dropdown-panel a[href*="calculator"]::before {
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.32), rgba(245, 158, 11, 0.24));
}
.site-header .nav-dropdown-panel a[href*="csv"]::before,
.site-header .nav-dropdown-panel a[href*="import"]::before {
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.3), rgba(16, 185, 129, 0.24));
}

/* Final tools icon style: KPI-like line icons (guaranteed distinct by item index) */
.site-header .nav-dropdown-panel a::after {
  -webkit-mask-image: none !important;
  mask-image: none !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-color: transparent;
  width: 18px;
  height: 18px;
  left: 25px;
}

/* 1st tool item */
.site-header .nav-dropdown-panel a:nth-child(1)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4' width='7' height='7' rx='1.5'/%3E%3Crect x='13.5' y='4' width='7' height='7' rx='1.5'/%3E%3Crect x='3.5' y='13' width='7' height='7' rx='1.5'/%3E%3Crect x='13.5' y='13' width='7' height='7' rx='1.5'/%3E%3C/svg%3E") !important;
}

/* 2nd tool item */
.site-header .nav-dropdown-panel a:nth-child(2)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.3'/%3E%3Cpath d='M3 9h18'/%3E%3Ccircle cx='16.6' cy='14.3' r='1.2'/%3E%3C/svg%3E") !important;
}

/* 3rd tool item */
.site-header .nav-dropdown-panel a:nth-child(3)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.2' y='4.2' width='17.6' height='16.4' rx='2.3'/%3E%3Cpath d='M3.2 9.4h17.6M8 2.5v3.3M16 2.5v3.3'/%3E%3C/svg%3E") !important;
}

/* 4th tool item */
.site-header .nav-dropdown-panel a:nth-child(4)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M8 17v-4M13 17V8M18 17v-7'/%3E%3C/svg%3E") !important;
}

/* Fallback route-based (when item count/order changes) */
.site-header .nav-dropdown-panel a[href*="prop"]::after,
.site-header .nav-dropdown-panel a[href*="funded"]::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 19 6v5.5c0 4.6-3 8.5-7 9.5-4-1-7-4.9-7-9.5V6l7-3Z'/%3E%3Cpath d='m9.3 12.2 1.9 1.9 3.6-3.6'/%3E%3C/svg%3E") !important;
}
.site-header .nav-dropdown-panel a[href*="emotion"]::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20.6s-7.5-4.7-7.5-9.9A4.4 4.4 0 0 1 12 7.8a4.4 4.4 0 0 1 7.5 2.9c0 5.2-7.5 9.9-7.5 9.9Z'/%3E%3C/svg%3E") !important;
}
.site-header .nav-dropdown-panel a[href*="backtest"]::after,
.site-header .nav-dropdown-panel a[href*="strategy"]::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h18v16H3z'/%3E%3Cpath d='m6 15 3-3 2 2 4-4 3 2'/%3E%3C/svg%3E") !important;
}
.site-header .nav-dropdown-panel a[href*="calculator"]::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2.2'/%3E%3Crect x='8' y='6' width='8' height='3' rx='0.9'/%3E%3Cpath d='M9 12h.01M12 12h.01M15 12h.01M9 15h.01M12 15h.01M15 15h.01M9 18h.01M12 18h.01M15 18h.01'/%3E%3C/svg%3E") !important;
}
.site-header .nav-dropdown-panel a[href*="csv"]::after,
.site-header .nav-dropdown-panel a[href*="import"]::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8l-5-5Z'/%3E%3Cpath d='M14 3v5h5M12 10v7M9.5 14.5 12 17l2.5-2.5'/%3E%3C/svg%3E") !important;
}

/* ------------------------------------------------
   TOOLS ICONS V2 — premium modern override
   ------------------------------------------------ */
.site-header .nav-dropdown-panel a::before {
  border-radius: 13px;
  border-color: rgba(165, 180, 252, 0.32);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03)),
    linear-gradient(145deg, rgba(165, 180, 252, 0.28), rgba(99, 102, 241, 0.26), rgba(129, 140, 248, 0.24), rgba(167, 139, 250, 0.22));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 12px 24px rgba(2, 6, 23, 0.38),
    0 0 20px rgba(99, 102, 241, 0.18);
}

.site-header .nav-dropdown-panel a::after {
  background-image: none !important;
  width: 17px;
  height: 17px;
  left: 25px;
  background:
    linear-gradient(145deg, #c7d2fe 0%, #818cf8 28%, #6366f1 55%, #a78bfa 100%) !important;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.26)) drop-shadow(0 4px 10px rgba(99, 102, 241, 0.42));
  -webkit-mask-repeat: no-repeat !important;
  -webkit-mask-position: center !important;
  -webkit-mask-size: contain !important;
  mask-repeat: no-repeat !important;
  mask-position: center !important;
  mask-size: contain !important;
}

.site-header .nav-dropdown-panel a[href*="solutions"]::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3.2' y='3.2' width='7.5' height='7.5' rx='2.1' fill='black'/%3E%3Crect x='13.3' y='3.2' width='7.5' height='7.5' rx='2.1' fill='black'/%3E%3Crect x='3.2' y='13.3' width='7.5' height='7.5' rx='2.1' fill='black'/%3E%3Crect x='13.3' y='13.3' width='7.5' height='7.5' rx='2.1' fill='black'/%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3.2' y='3.2' width='7.5' height='7.5' rx='2.1' fill='black'/%3E%3Crect x='13.3' y='3.2' width='7.5' height='7.5' rx='2.1' fill='black'/%3E%3Crect x='3.2' y='13.3' width='7.5' height='7.5' rx='2.1' fill='black'/%3E%3Crect x='13.3' y='13.3' width='7.5' height='7.5' rx='2.1' fill='black'/%3E%3C/svg%3E") !important;
}

.site-header .nav-dropdown-panel a[href*="pricing"]::after,
.site-header .nav-dropdown-panel a[href*="packages"]::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2.8' y='5' width='18.4' height='14' rx='3' fill='black'/%3E%3Crect x='2.8' y='8.8' width='18.4' height='2.4' fill='white'/%3E%3Ccircle cx='16.7' cy='14.5' r='1.35' fill='white'/%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2.8' y='5' width='18.4' height='14' rx='3' fill='black'/%3E%3Crect x='2.8' y='8.8' width='18.4' height='2.4' fill='white'/%3E%3Ccircle cx='16.7' cy='14.5' r='1.35' fill='white'/%3E%3C/svg%3E") !important;
}

.site-header .nav-dropdown-panel a[href*="calculator"]::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='2.8' width='14' height='18.4' rx='2.8' fill='black'/%3E%3Crect x='8' y='6.2' width='8' height='2.8' rx='1' fill='white'/%3E%3Ccircle cx='9' cy='12.4' r='1' fill='white'/%3E%3Ccircle cx='12' cy='12.4' r='1' fill='white'/%3E%3Ccircle cx='15' cy='12.4' r='1' fill='white'/%3E%3Ccircle cx='9' cy='15.6' r='1' fill='white'/%3E%3Ccircle cx='12' cy='15.6' r='1' fill='white'/%3E%3Ccircle cx='15' cy='15.6' r='1' fill='white'/%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='2.8' width='14' height='18.4' rx='2.8' fill='black'/%3E%3Crect x='8' y='6.2' width='8' height='2.8' rx='1' fill='white'/%3E%3Ccircle cx='9' cy='12.4' r='1' fill='white'/%3E%3Ccircle cx='12' cy='12.4' r='1' fill='white'/%3E%3Ccircle cx='15' cy='12.4' r='1' fill='white'/%3E%3Ccircle cx='9' cy='15.6' r='1' fill='white'/%3E%3Ccircle cx='12' cy='15.6' r='1' fill='white'/%3E%3Ccircle cx='15' cy='15.6' r='1' fill='white'/%3E%3C/svg%3E") !important;
}

.site-header .nav-dropdown-panel a[href*="csv"]::after,
.site-header .nav-dropdown-panel a[href*="import"]::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8l-5-5Z' fill='black'/%3E%3Cpath d='M14 3v5h5M12 10v7M9.5 14.5 12 17l2.5-2.5' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8l-5-5Z' fill='black'/%3E%3Cpath d='M14 3v5h5M12 10v7M9.5 14.5 12 17l2.5-2.5' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

.site-header .nav-dropdown-panel a:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(165, 180, 252, 0.36) !important;
  background: linear-gradient(160deg, rgba(21, 31, 55, 0.9), rgba(11, 17, 35, 0.92)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 34px rgba(2, 6, 23, 0.42),
    0 0 26px rgba(99, 102, 241, 0.14),
    0 0 32px rgba(167, 139, 250, 0.08);
}

.site-header .nav-dropdown-panel a:hover::before {
  transform: translateY(-50%) scale(1.06);
  border-color: rgba(165, 180, 252, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 24px rgba(2, 6, 23, 0.42),
    0 0 18px rgba(99, 102, 241, 0.22);
}

.site-header .nav-dropdown-panel a:hover::after {
  transform: translateY(-50%) scale(1.08);
  filter: brightness(1.12);
}


.site-header .nav-dropdown.open .nav-dropdown-panel a,
.site-header .nav-dropdown-panel[aria-hidden="false"] a,
.site-header .language-menu.open .language-option,
.site-header .user-menu.open .user-menu-panel a {
  opacity: 1;
  transform: translateY(0);
}

.site-header .nav-dropdown.open .nav-dropdown-panel a:nth-child(1),
.site-header .language-menu.open .language-option:nth-child(1),
.site-header .user-menu.open .user-menu-panel a:nth-child(1) { transition-delay: 0.02s; }
.site-header .nav-dropdown.open .nav-dropdown-panel a:nth-child(2),
.site-header .language-menu.open .language-option:nth-child(2),
.site-header .user-menu.open .user-menu-panel a:nth-child(2) { transition-delay: 0.05s; }
.site-header .nav-dropdown.open .nav-dropdown-panel a:nth-child(3),
.site-header .language-menu.open .language-option:nth-child(3),
.site-header .user-menu.open .user-menu-panel a:nth-child(3) { transition-delay: 0.08s; }
.site-header .nav-dropdown.open .nav-dropdown-panel a:nth-child(4),
.site-header .language-menu.open .language-option:nth-child(4),
.site-header .user-menu.open .user-menu-panel a:nth-child(4) { transition-delay: 0.11s; }

@media (max-width: 900px) {
  .site-header .nav-dropdown-panel {
    width: min(560px, calc(100vw - 24px)) !important;
    min-width: min(560px, calc(100vw - 24px)) !important;
    grid-template-columns: minmax(0, 1fr);
    padding: 12px !important;
    gap: 10px;
  }

  .site-header .nav-dropdown-panel a {
    min-height: 78px;
    padding-left: 62px !important;
  }
}

.site-header .language-toggle,
.site-header .user-menu-toggle {
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  background: linear-gradient(180deg, rgba(28, 36, 58, 0.94), rgba(14, 18, 32, 0.96)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(2, 6, 23, 0.36) !important;
}

@media (max-width: 980px) {
  .screen-carousel {
    min-height: 660px;
  }

  .screen-slides {
    min-height: 540px;
  }
}

@media (max-width: 640px) {
  .visual-card {
    padding: 18px;
  }

  .screen {
    padding: 20px;
  }

  .screen-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .screen-carousel {
    min-height: 640px;
  }

  .screen-slides {
    min-height: 520px;
  }

  .screen-title {
    font-size: 1.55rem;
  }

  .screen p {
    max-width: none;
  }
}







.screen-slide {
  --glow-a: 79, 124, 255;
  --glow-b: 103, 232, 249;
  --glow-c: 139, 92, 246;
  padding: 8px 2px 4px;
}

.screen-slide > * {
  position: relative;
  z-index: 1;
}

.screen-slide::before {
  content: "";
  position: absolute;
  inset: 8px 0 0;
  border-radius: var(--pipsy-radius-hero-surface, var(--pipsy-radius-xl, 32px));
  background:
    radial-gradient(circle at top left, rgba(var(--glow-a), 0.18), transparent 42%),
    radial-gradient(circle at bottom right, rgba(var(--glow-b), 0.16), transparent 38%);
  opacity: 0.95;
  pointer-events: none;
}

.theme-discipline {
  --glow-a: 79, 124, 255;
  --glow-b: 103, 232, 249;
  --glow-c: 139, 92, 246;
}

.theme-journal {
  --glow-a: 255, 146, 94;
  --glow-b: 255, 98, 195;
  --glow-c: 140, 92, 255;
}

.theme-prop {
  --glow-a: 90, 239, 196;
  --glow-b: 91, 108, 255;
  --glow-c: 103, 232, 249;
}

.screen-slide .metric,
.screen-slide .bar-box {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(19,24,45,0.94), rgba(13,18,36,0.88));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 18px 34px rgba(0,0,0,0.24),
    0 0 0 1px rgba(255,255,255,0.03);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  animation: showcaseFloat 7s ease-in-out infinite;
}

.screen-slide .metric::before,
.screen-slide .bar-box::before {
  content: "";
  position: absolute;
  inset: auto -14% -62% auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(var(--glow-a), 0.24), transparent 72%);
  pointer-events: none;
  filter: blur(8px);
}

.screen-slide .metric:hover,
.screen-slide .bar-box:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--glow-b), 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 24px 44px rgba(0,0,0,0.28),
    0 0 26px rgba(var(--glow-a), 0.18);
}

.screen-slide .metric:nth-child(2),
.screen-slide .bar-box:nth-child(2) {
  animation-delay: 0.8s;
}

.screen-slide .bar {
  background: rgba(255,255,255,0.1);
}

.screen-slide .bar::after {
  background: linear-gradient(90deg, rgba(var(--glow-a), 0.98), rgba(var(--glow-c), 0.94), rgba(var(--glow-b), 0.92));
  box-shadow: 0 0 18px rgba(var(--glow-b), 0.24);
}

.screen-title {
  font-size: clamp(1.95rem, 3vw, 2.7rem);
  line-height: 1.08;
  max-width: 24ch;
}

.screen-slide p {
  color: #a9b5d7;
  max-width: 56ch;
}

.metric small,
.bar-box small {
  color: #aeb7d7;
}

.metric strong {
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
}

@keyframes showcaseFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

/* —— Site toasts: auth, GDPR checkbox, API hibák (nem böngésző alert) —— */
.pipsy-toast-host {
  position: fixed;
  z-index: 10060;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 10px;
  padding: 12px 16px max(16px, env(safe-area-inset-bottom));
  pointer-events: none;
  box-sizing: border-box;
}

.pipsy-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(420px, calc(100vw - 32px));
  padding: 14px 16px 14px 18px;
  border-radius: var(--pipsy-radius-toolbar, var(--pipsy-radius-md, 16px));
  font-size: 0.92rem;
  line-height: 1.45;
  color: #f0f4ff;
  background: rgba(12, 16, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--pipsy-shadow-elev-md, 0 8px 28px rgba(3, 7, 18, 0.32));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition:
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.pipsy-toast--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pipsy-toast__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pipsy-toast__text {
  flex: 1;
  margin: 0;
  min-width: 0;
  white-space: pre-line;
  word-break: break-word;
}

.pipsy-toast__sub {
  margin: 0;
  font-size: 0.86em;
  line-height: 1.45;
  color: rgba(224, 231, 255, 0.72);
  word-break: break-word;
}

.pipsy-toast--clickable {
  cursor: pointer;
}

.pipsy-toast--clickable:active {
  transform: translateY(1px) scale(0.995);
}

.pipsy-toast__dismiss {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin: -4px -6px -4px 0;
  border: none;
  border-radius: var(--pipsy-radius-nested, var(--pipsy-radius-xs, 8px));
  background: rgba(255, 255, 255, 0.06);
  color: rgba(226, 232, 255, 0.75);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease;
}

.pipsy-toast__dismiss:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.pipsy-toast--success {
  border-color: rgba(34, 197, 94, 0.35);
  background: linear-gradient(145deg, rgba(15, 40, 28, 0.94), rgba(10, 18, 28, 0.92));
  box-shadow:
    0 4px 28px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(34, 197, 94, 0.12) inset,
    0 0 40px rgba(34, 197, 94, 0.08);
}

.pipsy-toast--success .pipsy-toast__text {
  color: #d1fae5;
}

.pipsy-toast--error {
  border-color: rgba(248, 113, 113, 0.4);
  background: linear-gradient(145deg, rgba(45, 18, 22, 0.94), rgba(14, 14, 26, 0.92));
  box-shadow:
    0 4px 28px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(248, 113, 113, 0.1) inset,
    0 0 36px rgba(239, 68, 68, 0.07);
}

.pipsy-toast--error .pipsy-toast__text {
  color: #fecaca;
}

.pipsy-toast--info {
  border-color: rgba(99, 102, 241, 0.28);
  background: linear-gradient(145deg, rgba(18, 20, 42, 0.94), rgba(12, 14, 28, 0.92));
  box-shadow:
    0 4px 28px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(99, 102, 241, 0.1) inset;
}

.pipsy-toast--info .pipsy-toast__text {
  color: #e0e7ff;
}

.pipsy-toast--dm {
  width: min(440px, calc(100vw - 24px));
  border-color: rgba(56, 189, 248, 0.35);
  background: linear-gradient(
    145deg,
    rgba(12, 22, 38, 0.96) 0%,
    rgba(8, 12, 28, 0.94) 100%
  );
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(56, 189, 248, 0.14) inset,
    0 0 48px rgba(56, 189, 248, 0.07);
}

.pipsy-toast--dm .pipsy-toast__text {
  color: #f0f9ff;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.pipsy-toast--dm .pipsy-toast__sub {
  color: rgba(186, 230, 253, 0.85);
}

@media (max-width: 640px) {
  .pipsy-toast-host {
    align-items: stretch;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .pipsy-toast--dm {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pipsy-toast {
    transition: opacity 0.15s ease;
    transform: none;
  }

  .pipsy-toast--visible {
    transform: none;
  }

  .pipsy-toast--clickable:active {
    transform: none;
  }
}

/* --- Landing (index): premium SaaS shell, Insight preview chrome, PRO trial band --- */
body.home-page {
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(99, 102, 241, 0.16), transparent 50%),
    radial-gradient(circle at 85% 12%, rgba(168, 85, 247, 0.08), transparent 42%),
    radial-gradient(circle at 8% 45%, rgba(56, 189, 248, 0.06), transparent 38%),
    linear-gradient(180deg, #010409 0%, #020617 45%, #030712 100%);
}

body.home-page::before {
  opacity: 0.65;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 22%, transparent 72%);
}

.home-main {
  display: flex;
  flex-direction: column;
  gap: clamp(2.25rem, 5vw, 4rem);
}

.home-main .hero {
  min-height: min(90vh, 920px);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.home-main .section {
  padding-top: clamp(2rem, 4vw, 3.25rem);
  padding-bottom: clamp(2rem, 4vw, 3.25rem);
}

.home-main .section-home-trust {
  padding-top: clamp(1rem, 2vw, 1.5rem);
}

.home-main .pipsy-hero__title--home .pipsy-hero__headline-rest,
.home-main .home-trust-heading,
.home-main .section-head h2,
.home-main .about-main h2,
.home-main .contact-box h2,
.home-main .home-trial-card__title {
  font-family: "Plus Jakarta Sans", var(--pipsy-font-sans, "Inter", system-ui, sans-serif);
}

.home-main .pipsy-hero__title--home .pipsy-hero__headline-rest {
  font-size: clamp(1.85rem, 4.2vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
  font-weight: 800;
}

/* Hero: távolság a fő CTA gombok és a PRO próba link között (főoldal) */
.home-main .hero .hero-actions,
.home-main .hero .pipsy-hero__actions {
  margin-bottom: 0;
}

.home-main .hero .hero-cta-extra {
  margin-top: clamp(1.35rem, 3.8vw, 2.4rem);
  margin-bottom: clamp(0.85rem, 2.2vw, 1.25rem);
}

.home-hero-trial-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: #fde68a;
  text-decoration: none;
  border-bottom: 1px solid rgba(253, 224, 71, 0.35);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-hero-trial-link:hover {
  color: #fef9c3;
  border-color: rgba(253, 224, 71, 0.55);
  transform: translateY(-1px);
}

.home-hero-trial-link:focus-visible {
  outline: 2px solid rgba(253, 224, 71, 0.55);
  outline-offset: 3px;
  border-radius: 4px;
}

.visual-card.home-preview-shell {
  padding: 0;
  border-radius: clamp(22px, 2.5vw, 28px);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.55), rgba(2, 6, 23, 0.42));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 28px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  content-visibility: auto;
  contain-intrinsic-size: 420px 520px;
}

.home-preview-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(8, 12, 24, 0.88));
}

.home-preview-dots {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.home-preview-dots i {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #475569;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2) inset;
}

.home-preview-dots i:nth-child(1) {
  background: #fb7185;
}

.home-preview-dots i:nth-child(2) {
  background: #fbbf24;
}

.home-preview-dots i:nth-child(3) {
  background: #34d399;
}

.home-preview-url {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8b9bb5;
}

.home-preview-body {
  padding: clamp(16px, 2.5vw, 22px);
}

.home-preview-body .screen {
  border-radius: clamp(16px, 2vw, 20px);
}

.home-insight-badge {
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  padding: 7px 12px !important;
  background: linear-gradient(135deg, rgba(253, 230, 138, 0.14), rgba(56, 189, 248, 0.1)) !important;
  border: 1px solid rgba(125, 211, 252, 0.28) !important;
  color: #e0f2fe !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.home-trial-band {
  position: relative;
  scroll-margin-top: 96px;
}

.home-trial-card {
  position: relative;
  border-radius: clamp(22px, 2.8vw, 30px);
  padding: 1px;
  background: linear-gradient(135deg, rgba(253, 224, 71, 0.45), rgba(56, 189, 248, 0.35), rgba(168, 85, 247, 0.4));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.home-trial-card__accent {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 18% 0%, rgba(253, 224, 71, 0.12), transparent 45%),
    radial-gradient(circle at 92% 80%, rgba(56, 189, 248, 0.1), transparent 42%);
  opacity: 0.9;
}

.home-trial-card__inner {
  position: relative;
  z-index: 1;
  border-radius: inherit;
  padding: clamp(1.35rem, 3.5vw, 2rem) clamp(1.25rem, 3.2vw, 2rem);
  background: linear-gradient(160deg, rgba(14, 18, 32, 0.98), rgba(6, 10, 22, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.home-trial-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #fef3c7;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.28);
  margin-bottom: clamp(12px, 2vw, 16px);
}

.home-trial-card__title {
  margin: 0 0 clamp(10px, 1.5vw, 14px);
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.12;
  color: #f8fafc;
}

.home-trial-card__lead {
  margin: 0 0 clamp(14px, 2vw, 18px);
  max-width: 72ch;
  font-size: 1rem;
  line-height: 1.65;
  color: #a8b6d6;
}

.home-trial-card__bullets {
  list-style: none;
  margin: 0 0 clamp(18px, 2.5vw, 24px);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-trial-card__bullets li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #cbd5e8;
  font-weight: 500;
}

.home-trial-card__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 4px;
  background: linear-gradient(135deg, #38bdf8, #a855f7);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.home-trial-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: clamp(12px, 2vw, 16px);
}

.home-trial-card__actions .btn {
  min-height: 48px;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
  font-weight: 700;
  border-radius: 14px;
}

.home-trial-card__foot {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #64748b;
  max-width: 75ch;
}

.home-main .trust-pillar {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.55), rgba(2, 6, 23, 0.38));
  border-color: rgba(148, 163, 184, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.home-main .section-head {
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.home-main .cards {
  gap: clamp(1.1rem, 2.5vw, 1.5rem);
}

.home-main .home-faq-list {
  gap: clamp(0.65rem, 1.5vw, 0.85rem);
}

/* Homepage: member ratings (aggregate + quotes) */
.home-main .section-home-reviews {
  position: relative;
  overflow: hidden;
}

.home-main .section-home-reviews::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(251, 191, 36, 0.12), transparent 72%);
  pointer-events: none;
}

.home-reviews-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  align-items: start;
}

@media (min-width: 960px) {
  .home-reviews-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

.home-reviews-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(253, 224, 71, 0.88);
  margin-bottom: 0.65rem;
}

.home-reviews-title {
  margin: 0 0 clamp(1rem, 2vw, 1.35rem);
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: var(--pipsy-text-cool, #f0f4ff);
}

.home-reviews-scoreblock {
  padding: clamp(1.15rem, 2.5vw, 1.45rem) clamp(1.25rem, 2.8vw, 1.65rem);
  border-radius: clamp(18px, 2vw, 22px);
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.45));
  border: 1px solid rgba(251, 191, 36, 0.2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 20px 56px rgba(0, 0, 0, 0.35);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
}

.home-reviews-scoreline {
  display: flex;
  align-items: baseline;
  gap: 0.15em;
  margin-top: 0.65rem;
}

.home-reviews-score-num {
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums lining-nums;
  background: linear-gradient(135deg, #fef9c3, #fbbf24 55%, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.home-reviews-score-denom {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(148, 163, 184, 0.75);
}

.home-reviews-meta {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(203, 213, 225, 0.88);
}

.home-reviews-meta--soft {
  color: rgba(148, 163, 184, 0.85);
  font-style: italic;
}

.home-reviews-quotes {
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) and (max-width: 959px) {
  .home-reviews-quotes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .home-reviews-quotes {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.home-review-quote {
  margin: 0;
  padding: clamp(1rem, 2vw, 1.2rem) clamp(1.1rem, 2.2vw, 1.35rem);
  border-radius: clamp(16px, 1.8vw, 20px);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(15, 23, 42, 0.35));
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.home-review-quote .pipsy-stars-rail {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.home-review-quote p {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  line-height: 1.58;
  color: rgba(226, 232, 240, 0.92);
}

/* Homepage aggregate: discrete stars with half-star support */
.pipsy-stars-row {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  flex-wrap: nowrap;
}

.pipsy-star-cell {
  position: relative;
  width: 1.72rem;
  height: 1.65rem;
  flex-shrink: 0;
  font-size: 1.68rem;
  line-height: 1;
  font-family: system-ui, "Segoe UI", sans-serif;
}

.pipsy-star-cell__base {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: rgba(148, 163, 184, 0.22);
  user-select: none;
  pointer-events: none;
}

.pipsy-star-cell__fill {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fbbf24;
  text-shadow: 0 0 22px rgba(251, 191, 36, 0.38);
  pointer-events: none;
}

.pipsy-star-cell--full .pipsy-star-cell__fill {
  clip-path: none;
}

.pipsy-star-cell--half .pipsy-star-cell__fill {
  clip-path: inset(0 50% 0 0);
}

.pipsy-star-cell--empty .pipsy-star-cell__fill {
  display: none;
}

/* Shared star rail (filled portion via CSS var --pipsy-stars-pct, e.g. 88%) */
.pipsy-stars-rail {
  --pipsy-stars-pct: 80%;
  position: relative;
  width: 168px;
  max-width: 100%;
  height: 34px;
  flex-shrink: 0;
}

.pipsy-stars-rail::before,
.pipsy-stars-rail::after {
  content: "\2605\2605\2605\2605\2605";
  position: absolute;
  left: 0;
  top: 0;
  /* Prevent any earlier "yellow bar" overlay background from covering the star glyphs */
  background: transparent;
  border-radius: 0;
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: 0.06em;
  font-family: system-ui, "Segoe UI", sans-serif;
  pointer-events: none;
}

.pipsy-stars-rail::before {
  color: rgba(148, 163, 184, 0.22);
  z-index: 0;
}

.pipsy-stars-rail::after {
  color: #fbbf24;
  text-shadow: 0 0 28px rgba(251, 191, 36, 0.35);
  clip-path: polygon(0 0, var(--pipsy-stars-pct) 0, var(--pipsy-stars-pct) 100%, 0 100%);
  z-index: 1;
}

.pipsy-stars-rail--compact {
  width: 132px;
  height: 26px;
}

.pipsy-stars-rail--compact::before,
.pipsy-stars-rail--compact::after {
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}

/* ─── Service status page (/status) ─────────────────────────── */
.status-page {
  margin-top: 0.5rem;
}

.status-overall {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--pipsy-text-cool, #e2e8f0);
  margin: 0 0 1.35rem;
}

.status-pill {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
  flex-shrink: 0;
}

.status-pill--ok {
  background: #34d399;
}

.status-pill--warn {
  background: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.22);
}

.status-pill--bad {
  background: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.22);
}

.status-pill--maint {
  background: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.22);
}

.status-service-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--pipsy-radius-panel, 16px);
  border: 1px solid rgba(148, 163, 184, 0.12);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.35);
}

.status-service-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 14px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.status-service-row:last-child {
  border-bottom: none;
}

.status-dot {
  grid-row: 1 / span 2;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot--ok {
  background: #34d399;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.2);
}

.status-service-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #f1f5f9;
  letter-spacing: -0.02em;
}

.status-service-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #86efac;
  justify-self: end;
  align-self: start;
}

.status-service-hint {
  grid-column: 2 / -1;
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #94a3b8;
}

.status-foot,
.status-meta {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0 0 0.85rem;
}

.status-foot a {
  color: #a5b4fc;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.status-foot a:hover {
  color: #c7d2fe;
}

.status-meta {
  margin-bottom: 0;
  font-size: 0.8rem;
  opacity: 0.92;
}

.status-page--dynamic .status-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f1f5f9;
  margin: 1.75rem 0 0.75rem;
}

.status-page--dynamic .status-section-title:first-of-type {
  margin-top: 0.25rem;
}

.status-incidents-empty {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0 0 1.25rem;
}

.status-incident-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-incident {
  border-radius: var(--pipsy-radius-panel, 16px);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.45);
  padding: 14px 16px;
}

.status-incident--critical {
  border-color: rgba(248, 113, 113, 0.35);
}

.status-incident--major {
  border-color: rgba(251, 146, 60, 0.35);
}

.status-incident__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 12px;
}

.status-incident__title {
  font-size: 0.95rem;
  color: #f8fafc;
}

.status-incident__badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
}

.status-incident__meta {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 6px 0 0;
}

.status-incident__body {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #cbd5e1;
  margin-top: 10px;
}

.status-uptime-lead {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0 0 12px;
  line-height: 1.5;
}

.status-uptime-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1.25rem;
}

.status-uptime-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) auto;
  gap: 10px 14px;
  align-items: center;
}

.status-uptime-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
}

.status-uptime-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.9);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.status-uptime-bar__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #34d399, #22c55e);
  min-width: 0;
  transition: width 0.35s ease;
}

.status-uptime-pct {
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #a7f3d0;
  text-align: right;
  min-width: 3.25rem;
}

.status-meta code {
  font-size: 0.78em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

@media (max-width: 640px) {
  .status-uptime-row {
    grid-template-columns: 1fr;
  }

  .status-uptime-pct {
    justify-self: start;
  }
}

@media (max-width: 960px) {
  .home-main {
    gap: clamp(1.75rem, 5vw, 2.5rem);
  }

  .home-trial-card__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-trial-card__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .home-main .hero {
    min-height: 0;
    padding-top: clamp(0.75rem, 3vw, 1.25rem);
    padding-bottom: clamp(1.5rem, 6vw, 2.5rem);
  }

  .visual-card.home-preview-shell {
    max-width: 100%;
  }

  .home-main .stats {
    gap: var(--pipsy-space-3);
  }
}

/* Közepes desktop: kéthasábos hero finomhangolás (981px fölött már nem a 980-as 1 oszlop érvényes) */
@media (min-width: 981px) and (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
    align-items: start;
    gap: clamp(var(--pipsy-space-6), 3vw, var(--pipsy-space-8));
  }

  .hero {
    min-height: 0;
    padding-top: clamp(var(--pipsy-space-7), 4vw, var(--pipsy-space-9));
    padding-bottom: var(--pipsy-space-10);
  }
}

/* ================================================================
   TOOLS DROPDOWN HARD NO-FLASH RENDER FIX
   ================================================================ */
.site-header .nav-dropdown,
.site-header .nav-dropdown-panel,
.site-header .nav-dropdown-panel a {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}

.site-header .nav-dropdown-panel {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.28) !important; /* no inset white line */
  contain: paint;
  overflow: hidden;
}

.site-header .nav-dropdown-panel,
.site-header .nav-dropdown-panel *,
.site-header .nav-dropdown-panel *::before,
.site-header .nav-dropdown-panel *::after,
.site-header .nav-dropdown-trigger,
.site-header .nav-dropdown-trigger::before,
.site-header .nav-dropdown-trigger::after {
  border: 0 !important;
  outline: 0 !important;
  border-color: transparent !important;
  outline-color: transparent !important;
}

.site-header .nav-dropdown-panel a {
  box-shadow: 0 8px 20px rgba(2, 6, 20, 0.16) !important; /* remove inset line */
}

.site-header .nav-dropdown-panel a::before {
  box-shadow: 0 6px 14px rgba(2, 6, 23, 0.16) !important; /* remove inset line */
}

.site-header .nav-dropdown-trigger:focus,
.site-header .nav-dropdown-trigger:focus-visible,
.site-header .nav-dropdown-trigger:active {
  box-shadow: none !important;
  outline: none !important;
  border-color: transparent !important;
}

/* ================================================================
   TOOLBAR BORDERLESS LOCK — no borders in any state
   ================================================================ */
.site-header,
.site-header .nav-wrap,
.site-header .main-nav > a,
.site-header .nav-dropdown-trigger,
.site-header .nav-dropdown-panel,
.site-header .nav-dropdown-panel a,
.site-header .language-toggle,
.site-header .language-menu,
.site-header .language-option,
.site-header .user-menu-toggle,
.site-header .user-menu-panel,
.site-header .user-menu-panel > a,
.site-header .user-menu-modules-summary,
.site-header .user-menu-modules-inner .user-menu-module-section a {
  border: none !important;
  border-color: transparent !important;
  outline-color: transparent !important;
}

.site-header .main-nav > a::before,
.site-header .nav-dropdown-trigger::before,
.site-header .nav-dropdown-panel a::before {
  border: none !important;
  border-color: transparent !important;
}

/* Tools dropdown: fully borderless look even when open */
.site-header .nav-dropdown.open .nav-dropdown-panel,
.site-header .nav-dropdown-panel[aria-hidden="false"] {
  border: none !important;
  outline: none !important;
  box-shadow: 0 20px 48px rgba(2, 6, 23, 0.34) !important;
}

.site-header .nav-dropdown.open .nav-dropdown-panel a,
.site-header .nav-dropdown-panel[aria-hidden="false"] a {
  border: none !important;
  outline: none !important;
  box-shadow: 0 10px 24px rgba(2, 6, 20, 0.2) !important;
}

.site-header .nav-dropdown.open .nav-dropdown-panel a::before,
.site-header .nav-dropdown-panel[aria-hidden="false"] a::before {
  border: none !important;
  outline: none !important;
  box-shadow: 0 8px 16px rgba(2, 6, 23, 0.2) !important;
}

/* No white border flash on close/open transitions */
.site-header .nav-dropdown-panel,
.site-header .nav-dropdown-panel *,
.site-header .nav-dropdown-panel *::before,
.site-header .nav-dropdown-panel *::after {
  border-color: transparent !important;
  outline-color: transparent !important;
}

.site-header .nav-dropdown-panel,
.site-header .nav-dropdown-panel a {
  border: none !important;
  outline: none !important;
}

.site-header .nav-dropdown-panel a:focus,
.site-header .nav-dropdown-panel a:focus-visible,
.site-header .nav-dropdown-panel:focus,
.site-header .nav-dropdown-panel:focus-visible {
  outline: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* Tools trigger: prevent focus border flash when closing */
.site-header .nav-dropdown-trigger,
.site-header .nav-dropdown-trigger:focus,
.site-header .nav-dropdown-trigger:focus-visible,
.site-header .nav-dropdown-trigger:active,
.site-header .nav-dropdown.open .nav-dropdown-trigger {
  outline: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

/* ================================================================
   TOOLS PANEL CLEAN GLASS — borderless + semi-transparent
   ================================================================ */
.site-header .nav-dropdown-panel {
  border: none !important;
  background: linear-gradient(160deg, rgba(7, 17, 34, 0.78), rgba(5, 12, 26, 0.72)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 54px rgba(2, 6, 23, 0.42) !important;
}

.site-header .nav-dropdown-panel a {
  border: none !important;
  background: linear-gradient(170deg, rgba(11, 23, 44, 0.56), rgba(8, 17, 34, 0.46)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 24px rgba(2, 6, 20, 0.22) !important;
}

.site-header .nav-dropdown-panel a:hover {
  border: none !important;
  background: linear-gradient(160deg, rgba(13, 27, 52, 0.68), rgba(9, 21, 40, 0.58)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 30px rgba(2, 6, 23, 0.3) !important;
}

.site-header .nav-dropdown-panel a::before {
  border: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 10px 20px rgba(2, 6, 23, 0.28),
    0 0 16px rgba(129, 140, 248, 0.14) !important;
}

/* ================================================================
   TOOLS ICON COLOR LOCK — indigo/violet
   ================================================================ */
.site-header .nav-dropdown .nav-dropdown-panel a::after,
.site-header .nav-dropdown-panel a::after {
  filter: drop-shadow(0 1px 0 rgba(224, 231, 255, 0.34)) drop-shadow(0 4px 12px rgba(129, 140, 248, 0.5)) !important;
}

.site-header .nav-dropdown .nav-dropdown-panel a[href="/packages"]::after,
.site-header .nav-dropdown-panel a[href="/packages"]::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5b4fc' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.6'/%3E%3Cpath d='M3 9h18'/%3E%3Ccircle cx='16.6' cy='14.4' r='1.15'/%3E%3C/svg%3E") !important;
}

.site-header .nav-dropdown .nav-dropdown-panel a[href="/affiliate/member"]::after,
.site-header .nav-dropdown-panel a[href="/affiliate/member"]::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23818cf8' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 12a4 4 0 1 1 0-8 4 4 0 0 1 0 8Zm8 8a4 4 0 1 1 0-8 4 4 0 0 1 0 8Z'/%3E%3Cpath d='M10.8 9.2l2.4 2.4M10.8 14.8l2.4-2.4'/%3E%3C/svg%3E") !important;
}

.site-header .nav-dropdown .nav-dropdown-panel a[href="/affiliate-dashboard"]::after,
.site-header .nav-dropdown-panel a[href="/affiliate-dashboard"]::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2399a8ff' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='8' height='8' rx='1.6'/%3E%3Crect x='13' y='3' width='8' height='5' rx='1.4'/%3E%3Crect x='13' y='10' width='8' height='11' rx='1.6'/%3E%3Crect x='3' y='13' width='8' height='8' rx='1.6'/%3E%3C/svg%3E") !important;
}

.site-header .nav-dropdown .nav-dropdown-panel a[href="/marketing-comp"]::after,
.site-header .nav-dropdown-panel a[href="/marketing-comp"]::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M8 16v-3M12 16V9M16 16v-6'/%3E%3C/svg%3E") !important;
}

.site-header .nav-dropdown .nav-dropdown-panel a[href="/calculator"]::after,
.site-header .nav-dropdown-panel a[href="/calculator"]::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23818cf8' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2.3'/%3E%3Crect x='8' y='6' width='8' height='3' rx='1'/%3E%3Cpath d='M9 12h.01M12 12h.01M15 12h.01M9 15h.01M12 15h.01M15 15h.01M9 18h.01M12 18h.01M15 18h.01'/%3E%3C/svg%3E") !important;
}

.site-header .nav-dropdown .nav-dropdown-panel a[href="/data-import"]::after,
.site-header .nav-dropdown-panel a[href="/data-import"]::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5b4fc' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8l-5-5Z'/%3E%3Cpath d='M14 3v5h5M12 10v7M9.5 14.5 12 17l2.5-2.5'/%3E%3C/svg%3E") !important;
}

/* Tools borders also in indigo/violet theme */
.site-header .nav-dropdown-panel {
  border-color: rgba(167, 139, 250, 0.34) !important;
}

.site-header .nav-dropdown-panel a {
  border-color: rgba(129, 140, 248, 0.28) !important;
}

.site-header .nav-dropdown-panel a:hover {
  border-color: rgba(167, 139, 250, 0.48) !important;
}

.site-header .nav-dropdown-panel a::before {
  border-color: rgba(165, 180, 252, 0.46) !important;
}

/* ================================================================
   TOOLS ICONS HARD OVERRIDE (route-specific, guaranteed distinct)
   ================================================================ */
.site-header .nav-dropdown .nav-dropdown-panel a::after {
  width: 18px !important;
  height: 18px !important;
  left: 25px !important;
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  background-color: transparent !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.22)) drop-shadow(0 4px 12px rgba(99, 102, 241, 0.4)) !important;
}

.site-header .nav-dropdown .nav-dropdown-panel a::before {
  content: none !important;
  display: none !important;
}

.site-header .nav-dropdown .nav-dropdown-panel a[href="/packages"]::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5b4fc' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.6'/%3E%3Cpath d='M3 9h18'/%3E%3Ccircle cx='16.6' cy='14.4' r='1.15'/%3E%3C/svg%3E") !important;
}

.site-header .nav-dropdown .nav-dropdown-panel a[href="/affiliate/member"]::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 12a4 4 0 1 1 0-8 4 4 0 0 1 0 8Zm8 8a4 4 0 1 1 0-8 4 4 0 0 1 0 8Z'/%3E%3Cpath d='M10.8 9.2l2.4 2.4M10.8 14.8l2.4-2.4'/%3E%3C/svg%3E") !important;
}

.site-header .nav-dropdown .nav-dropdown-panel a[href="/affiliate-dashboard"]::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23818cf8' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='8' height='8' rx='1.6'/%3E%3Crect x='13' y='3' width='8' height='5' rx='1.4'/%3E%3Crect x='13' y='10' width='8' height='11' rx='1.6'/%3E%3Crect x='3' y='13' width='8' height='8' rx='1.6'/%3E%3C/svg%3E") !important;
}

.site-header .nav-dropdown .nav-dropdown-panel a[href="/marketing-comp"]::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M8 16v-3M12 16V9M16 16v-6'/%3E%3C/svg%3E") !important;
}

.site-header .nav-dropdown .nav-dropdown-panel a[href="/calculator"]::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5b4fc' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2.3'/%3E%3Crect x='8' y='6' width='8' height='3' rx='1'/%3E%3Cpath d='M9 12h.01M12 12h.01M15 12h.01M9 15h.01M12 15h.01M15 15h.01M9 18h.01M12 18h.01M15 18h.01'/%3E%3C/svg%3E") !important;
}

.site-header .nav-dropdown .nav-dropdown-panel a[href="/data-import"]::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23818cf8' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8l-5-5Z'/%3E%3Cpath d='M14 3v5h5M12 10v7M9.5 14.5 12 17l2.5-2.5'/%3E%3C/svg%3E") !important;
}

/* ================================================================
   TOOLS ICON FINAL LOCK — logo indigo / violet
   ================================================================ */
.site-header .nav-dropdown-panel a::before {
  background:
    linear-gradient(160deg, rgba(224, 242, 254, 0.16), rgba(255, 255, 255, 0.02)),
    linear-gradient(145deg, rgba(165, 180, 252, 0.28), rgba(99, 102, 241, 0.26), rgba(129, 140, 248, 0.22), rgba(167, 139, 250, 0.2)) !important;
  border-color: rgba(165, 180, 252, 0.4) !important;
}

.site-header .nav-dropdown-panel a::after {
  width: 17px !important;
  height: 17px !important;
  left: 25px !important;
  background:
    linear-gradient(145deg, #c7d2fe 0%, #818cf8 30%, #6366f1 58%, #a78bfa 100%) !important;
  -webkit-mask-repeat: no-repeat !important;
  -webkit-mask-position: center !important;
  -webkit-mask-size: contain !important;
  mask-repeat: no-repeat !important;
  mask-position: center !important;
  mask-size: contain !important;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.28)) drop-shadow(0 4px 12px rgba(99, 102, 241, 0.45)) !important;
}

.site-header .nav-dropdown-panel a[href="/packages"]::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2.8' y='5' width='18.4' height='14' rx='3' fill='black'/%3E%3Crect x='2.8' y='8.8' width='18.4' height='2.4' fill='white'/%3E%3Ccircle cx='16.7' cy='14.5' r='1.35' fill='white'/%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2.8' y='5' width='18.4' height='14' rx='3' fill='black'/%3E%3Crect x='2.8' y='8.8' width='18.4' height='2.4' fill='white'/%3E%3Ccircle cx='16.7' cy='14.5' r='1.35' fill='white'/%3E%3C/svg%3E") !important;
}

.site-header .nav-dropdown-panel a[href="/calculator"]::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='2.8' width='14' height='18.4' rx='2.8' fill='black'/%3E%3Crect x='8' y='6.2' width='8' height='2.8' rx='1' fill='white'/%3E%3Ccircle cx='9' cy='12.4' r='1' fill='white'/%3E%3Ccircle cx='12' cy='12.4' r='1' fill='white'/%3E%3Ccircle cx='15' cy='12.4' r='1' fill='white'/%3E%3Ccircle cx='9' cy='15.6' r='1' fill='white'/%3E%3Ccircle cx='12' cy='15.6' r='1' fill='white'/%3E%3Ccircle cx='15' cy='15.6' r='1' fill='white'/%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='2.8' width='14' height='18.4' rx='2.8' fill='black'/%3E%3Crect x='8' y='6.2' width='8' height='2.8' rx='1' fill='white'/%3E%3Ccircle cx='9' cy='12.4' r='1' fill='white'/%3E%3Ccircle cx='12' cy='12.4' r='1' fill='white'/%3E%3Ccircle cx='15' cy='12.4' r='1' fill='white'/%3E%3Ccircle cx='9' cy='15.6' r='1' fill='white'/%3E%3Ccircle cx='12' cy='15.6' r='1' fill='white'/%3E%3Ccircle cx='15' cy='15.6' r='1' fill='white'/%3E%3C/svg%3E") !important;
}

.site-header .nav-dropdown-panel a[href="/data-import"]::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8l-5-5Z' fill='black'/%3E%3Cpath d='M14 3v5h5M12 10v7M9.5 14.5 12 17l2.5-2.5' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8l-5-5Z' fill='black'/%3E%3Cpath d='M14 3v5h5M12 10v7M9.5 14.5 12 17l2.5-2.5' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

.site-header .nav-dropdown-panel a[href="/ai-coach"]::before {
  background:
    linear-gradient(160deg, rgba(224, 242, 254, 0.16), rgba(255, 255, 255, 0.02)),
    linear-gradient(145deg, rgba(167, 139, 250, 0.32), rgba(129, 140, 248, 0.28), rgba(56, 189, 248, 0.22)) !important;
  border-color: rgba(167, 139, 250, 0.42) !important;
}

.site-header .nav-dropdown-panel a[href="/ai-coach"]::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 3 1.9 3.86 4.25.62-3.07 3 .73 4.24L12 17.77 8.19 14.7l.73-4.24-3.07-3 4.25-.62L12 3Z' fill='black'/%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 3 1.9 3.86 4.25.62-3.07 3 .73 4.24L12 17.77 8.19 14.7l.73-4.24-3.07-3 4.25-.62L12 3Z' fill='black'/%3E%3C/svg%3E") !important;
}

/* Modules dropdown icons = beginner dashboard module icons */
.site-header .nav-dropdown-panel a[href="/dashboard"]::after,
.site-header .nav-dropdown-panel a[href="/calendar"]::after,
.site-header .nav-dropdown-panel a[href="/propfirm"]::after,
.site-header .nav-dropdown-panel a[href="/emotion-control"]::after,
.site-header .nav-dropdown-panel a[href="/visual-analytics"]::after,
.site-header .nav-dropdown-panel a[href="/ai-coach"]::after,
.site-header .nav-dropdown-panel a[href="/backtest"]::after {
  -webkit-mask-image: none !important;
  mask-image: none !important;
  background-color: transparent !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  width: 18px !important;
  height: 18px !important;
}

.site-header .nav-dropdown-panel a[href="/dashboard"]::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7d2fe' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='9' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1.5'/%3E%3Crect x='14' y='11' width='7' height='10' rx='1.5'/%3E%3Crect x='3' y='15' width='7' height='6' rx='1.5'/%3E%3C/svg%3E") !important;
}
.site-header .nav-dropdown-panel a[href="/calendar"]::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7d2fe' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='17' rx='2.5'/%3E%3Cpath d='M3 9h18'/%3E%3Cpath d='M8 2v4M16 2v4'/%3E%3Crect x='7' y='12' width='4' height='5' rx='1' stroke-width='1.2' fill='%23c7d2fe' fill-opacity='.22'/%3E%3Ccircle cx='17' cy='13.5' r='1' fill='%23c7d2fe' stroke='none'/%3E%3Ccircle cx='17' cy='17.5' r='1' fill='%23c7d2fe' stroke='none'/%3E%3Ccircle cx='12' cy='17.5' r='1' fill='%23c7d2fe' stroke='none'/%3E%3C/svg%3E") !important;
}
.site-header .nav-dropdown-panel a[href="/propfirm"]::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7d2fe' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3L4 6.5v5C4 16.5 7.5 20.7 12 22c4.5-1.3 8-5.5 8-10.5v-5L12 3z'/%3E%3Cpath d='M9 12l2 2.2 4-4.4' stroke-width='1.8'/%3E%3C/svg%3E") !important;
}
.site-header .nav-dropdown-panel a[href="/emotion-control"]::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7d2fe' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21C12 21 3 15 3 9a4.5 4.5 0 0 1 9-1.5A4.5 4.5 0 0 1 21 9c0 6-9 12-9 12z' fill='%23c7d2fe' fill-opacity='.15'/%3E%3Cpath d='M12 21C12 21 3 15 3 9a4.5 4.5 0 0 1 9-1.5A4.5 4.5 0 0 1 21 9c0 6-9 12-9 12z'/%3E%3Cpath d='M5 12h2l1.5-3 2.5 5 1.5-2.5H15' stroke-width='1.5'/%3E%3C/svg%3E") !important;
}
.site-header .nav-dropdown-panel a[href="/visual-analytics"]::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7d2fe' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='14' width='3' height='7' rx='1' fill='%23c7d2fe' fill-opacity='.2' stroke-width='1.2'/%3E%3Crect x='8.5' y='10' width='3' height='11' rx='1' fill='%23c7d2fe' fill-opacity='.28' stroke-width='1.2'/%3E%3Crect x='14' y='6' width='3' height='15' rx='1' fill='%23c7d2fe' fill-opacity='.36' stroke-width='1.2'/%3E%3Crect x='19.5' y='3' width='2' height='18' rx='1' fill='%23c7d2fe' fill-opacity='.18' stroke-width='1.2'/%3E%3Cpath d='M4.5 13L10 9l5.5 3.5L21 5' stroke-width='1.8' opacity='.55'/%3E%3Ccircle cx='4.5' cy='13' r='1.5' fill='%23c7d2fe' stroke='none'/%3E%3Ccircle cx='10' cy='9' r='1.5' fill='%23c7d2fe' stroke='none'/%3E%3Ccircle cx='15.5' cy='12.5' r='1.5' fill='%23c7d2fe' stroke='none'/%3E%3Ccircle cx='21' cy='5' r='1.5' fill='%23c7d2fe' stroke='none'/%3E%3C/svg%3E") !important;
}
.site-header .nav-dropdown-panel a[href="/ai-coach"]::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7d2fe' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='2.5' fill='%23c7d2fe' fill-opacity='.25'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Ccircle cx='4.5' cy='8' r='1.5' fill='%23c7d2fe' fill-opacity='.18'/%3E%3Ccircle cx='4.5' cy='8' r='1.5'/%3E%3Ccircle cx='19.5' cy='8' r='1.5' fill='%23c7d2fe' fill-opacity='.18'/%3E%3Ccircle cx='19.5' cy='8' r='1.5'/%3E%3Ccircle cx='4.5' cy='16' r='1.5' fill='%23c7d2fe' fill-opacity='.18'/%3E%3Ccircle cx='4.5' cy='16' r='1.5'/%3E%3Ccircle cx='19.5' cy='16' r='1.5' fill='%23c7d2fe' fill-opacity='.18'/%3E%3Ccircle cx='19.5' cy='16' r='1.5'/%3E%3Ccircle cx='12' cy='3' r='1.5' fill='%23c7d2fe' fill-opacity='.22'/%3E%3Ccircle cx='12' cy='3' r='1.5'/%3E%3Ccircle cx='12' cy='21' r='1.5' fill='%23c7d2fe' fill-opacity='.22'/%3E%3Ccircle cx='12' cy='21' r='1.5'/%3E%3Cpath d='M9.8 10.8L6 9M14.2 10.8L18 9M9.8 13.2L6 15M14.2 13.2L18 15M12 9.5V4.5M12 14.5v2' stroke-width='1.2' opacity='.6'/%3E%3C/svg%3E") !important;
}
.site-header .nav-dropdown-panel a[href="/backtest"]::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7d2fe' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 19h18'/%3E%3Cpath d='M6 15V9'/%3E%3Cpath d='M6 12h0'/%3E%3Crect x='9' y='8' width='2' height='5' rx='1' fill='%23c7d2fe' fill-opacity='.28' stroke-width='1.2'/%3E%3Cpath d='M10 7V6M10 13v1'/%3E%3Crect x='13' y='10' width='2' height='6' rx='1' fill='%23c7d2fe' fill-opacity='.22' stroke-width='1.2'/%3E%3Cpath d='M14 9V8M14 16v1'/%3E%3Cpath d='M4 8l4-2 3 2 4-3 5 2' stroke-width='1.5' opacity='.75'/%3E%3C/svg%3E") !important;
}

/* ================================================================
   HOME TOOLBAR UI/UX V3 — full redesign
   ================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(20px) saturate(1.24) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.24) !important;
  background: linear-gradient(180deg, rgba(6, 10, 24, 0.94), rgba(4, 8, 20, 0.9)) !important;
  border-bottom: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 40px rgba(2, 6, 20, 0.38) !important;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(85% 130% at 0% 0%, rgba(99, 102, 241, 0.14), transparent 54%),
    radial-gradient(95% 120% at 100% 0%, rgba(129, 140, 248, 0.12), transparent 58%);
  opacity: 0.88;
}

.site-header .header-wave {
  opacity: 0.75;
}

.site-header .nav-wrap {
  position: relative;
  z-index: 1;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center !important;
  gap: 18px !important;
  padding: 12px 0 10px !important;
}

.site-header .logo {
  gap: 10px;
}

.site-header .logo-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow:
    0 10px 24px rgba(99, 102, 241, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

.site-header .main-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
}

.site-header .main-nav > a,
.site-header .nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px !important;
  border-radius: 12px !important;
  border: 1px solid transparent !important;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.42), rgba(8, 12, 26, 0.32)) !important;
  color: rgba(226, 232, 240, 0.92) !important;
  font-size: 0.9rem !important;
  font-weight: 650 !important;
  letter-spacing: -0.005em;
  text-decoration: none !important;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.26s ease,
    color 0.22s ease !important;
}

.site-header .main-nav > a:hover,
.site-header .nav-dropdown-trigger:hover,
.site-header .nav-dropdown-trigger[aria-expanded="true"] {
  color: #f8fbff !important;
  border-color: rgba(165, 180, 252, 0.32) !important;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.14), rgba(129, 140, 248, 0.12)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 24px rgba(2, 6, 23, 0.34),
    0 0 20px rgba(99, 102, 241, 0.14) !important;
  transform: translateY(-1px);
}

.site-header .nav-dropdown-trigger::after {
  margin-left: 2px;
  opacity: 0.88;
}

.site-header .nav-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
}

.site-header .language-toggle,
.site-header .user-menu-toggle,
.site-header a.btn.btn-primary.pipsy-login-btn {
  min-height: 42px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(148, 163, 184, 0.26) !important;
  background: linear-gradient(180deg, rgba(28, 36, 58, 0.94), rgba(14, 18, 32, 0.96)) !important;
  color: #eaf2ff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 22px rgba(2, 6, 23, 0.34) !important;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.22s ease,
    box-shadow 0.24s ease,
    background 0.22s ease !important;
}

.site-header .language-toggle:hover,
.site-header .user-menu-toggle:hover,
.site-header .user-menu.open .user-menu-toggle,
.site-header a.btn.btn-primary.pipsy-login-btn:hover {
  border-color: rgba(165, 180, 252, 0.42) !important;
  background: linear-gradient(
    165deg,
    rgba(99, 102, 241, 0.2) 0%,
    rgba(129, 140, 248, 0.12) 45%,
    rgba(17, 24, 39, 0.92) 100%
  ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 26px rgba(2, 6, 23, 0.4),
    0 0 24px rgba(99, 102, 241, 0.18),
    0 0 30px rgba(167, 139, 250, 0.08) !important;
  transform: translateY(-1px);
}

.site-header .nav-dropdown-panel,
.site-header .language-menu,
.site-header .user-menu-panel {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.97);
  transform-origin: top center;
  display: block !important;
  transition:
    opacity 0.22s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.22s ease !important;
}

.site-header .nav-dropdown.open .nav-dropdown-panel,
.site-header .nav-dropdown-panel[aria-hidden="false"],
.site-header .language-menu.open,
.site-header .user-menu.open .user-menu-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.site-header .nav-dropdown-panel {
  width: min(820px, calc(100vw - 42px)) !important;
  min-width: min(820px, calc(100vw - 42px)) !important;
  left: 50% !important;
  right: auto !important;
  top: calc(100% + 10px) !important;
  transform: translate(-50%, 8px) scale(0.97) !important;
  padding: 16px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(165, 180, 252, 0.26) !important;
  background: linear-gradient(160deg, rgba(14, 21, 40, 0.98), rgba(8, 13, 28, 0.98)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 28px 64px rgba(2, 6, 23, 0.54),
    0 0 52px rgba(99, 102, 241, 0.14) !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.site-header .nav-dropdown.open .nav-dropdown-panel,
.site-header .nav-dropdown-panel[aria-hidden="false"] {
  transform: translate(-50%, 0) scale(1) !important;
}

.site-header .nav-dropdown-panel a {
  min-height: 92px;
  padding: 14px 14px 14px 68px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  background: linear-gradient(170deg, rgba(17, 25, 45, 0.78), rgba(10, 15, 30, 0.8)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 26px rgba(2, 6, 20, 0.34);
  display: flex !important;
  align-items: center;
  color: #edf4ff !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.site-header .nav-dropdown-panel a:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(165, 180, 252, 0.38) !important;
  background: linear-gradient(160deg, rgba(21, 31, 55, 0.9), rgba(11, 17, 35, 0.92)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 34px rgba(2, 6, 23, 0.42),
    0 0 24px rgba(99, 102, 241, 0.12);
}

.site-header .nav-dropdown.open .nav-dropdown-panel a,
.site-header .nav-dropdown-panel[aria-hidden="false"] a,
.site-header .language-menu.open .language-option,
.site-header .user-menu.open .user-menu-panel a {
  opacity: 1;
  transform: translateY(0);
}

.site-header .nav-dropdown.open .nav-dropdown-panel a:nth-child(1),
.site-header .language-menu.open .language-option:nth-child(1),
.site-header .user-menu.open .user-menu-panel a:nth-child(1) { transition-delay: 0.02s; }
.site-header .nav-dropdown.open .nav-dropdown-panel a:nth-child(2),
.site-header .language-menu.open .language-option:nth-child(2),
.site-header .user-menu.open .user-menu-panel a:nth-child(2) { transition-delay: 0.05s; }
.site-header .nav-dropdown.open .nav-dropdown-panel a:nth-child(3),
.site-header .language-menu.open .language-option:nth-child(3),
.site-header .user-menu.open .user-menu-panel a:nth-child(3) { transition-delay: 0.08s; }
.site-header .nav-dropdown.open .nav-dropdown-panel a:nth-child(4),
.site-header .language-menu.open .language-option:nth-child(4),
.site-header .user-menu.open .user-menu-panel a:nth-child(4) { transition-delay: 0.11s; }

@media (max-width: 1080px) {
  .site-header .main-nav {
    gap: 6px !important;
  }

  .site-header .main-nav > a,
  .site-header .nav-dropdown-trigger {
    padding: 0 11px !important;
    font-size: 0.86rem !important;
  }
}

@media (max-width: 900px) {
  .site-header .nav-wrap {
    grid-template-columns: 1fr !important;
    justify-items: center;
    gap: 10px !important;
  }

  .site-header .main-nav {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .site-header .nav-actions {
    width: 100%;
    justify-content: center !important;
  }

  .site-header .nav-dropdown-panel {
    width: min(560px, calc(100vw - 24px)) !important;
    min-width: min(560px, calc(100vw - 24px)) !important;
    grid-template-columns: minmax(0, 1fr);
    padding: 12px !important;
    gap: 10px;
  }

  .site-header .nav-dropdown-panel a {
    min-height: 78px;
    padding-left: 62px !important;
  }
}

/* ================================================================
   HOME USER MENU — Premium 3D override
   ================================================================ */
.site-header .user-menu {
  position: relative;
}

.site-header .user-menu-toggle {
  min-height: 46px !important;
  padding: 0 16px 0 18px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  background:
    linear-gradient(180deg, rgba(35, 44, 68, 0.96), rgba(16, 22, 38, 0.98)) !important;
  color: #eaf2ff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 26px rgba(2, 6, 23, 0.38),
    0 0 24px rgba(99, 102, 241, 0.08) !important;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.22s ease,
    box-shadow 0.26s ease,
    background 0.22s ease !important;
}

.site-header .user-menu-toggle:hover,
.site-header .user-menu.open .user-menu-toggle {
  transform: translateY(-1px) !important;
  border-color: rgba(165, 180, 252, 0.42) !important;
  background:
    linear-gradient(165deg, rgba(99, 102, 241, 0.22), rgba(129, 140, 248, 0.16), rgba(30, 41, 59, 0.92)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 14px 30px rgba(2, 6, 23, 0.42),
    0 0 28px rgba(99, 102, 241, 0.2) !important;
}

.site-header .user-menu-panel {
  top: calc(100% + 12px) !important;
  right: 0;
  min-width: 250px;
  padding: 12px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(165, 180, 252, 0.28) !important;
  background:
    linear-gradient(165deg, rgba(16, 22, 40, 0.98), rgba(8, 13, 28, 0.98)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 52px rgba(2, 6, 20, 0.5),
    0 0 42px rgba(99, 102, 241, 0.14) !important;
  backdrop-filter: blur(16px) saturate(1.16) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.16) !important;
  transform: translateY(8px) scale(0.97);
  transform-origin: top right;
}

.site-header .user-menu.open .user-menu-panel {
  transform: translateY(0) scale(1);
}

.site-header .user-menu-panel > a,
.site-header .user-menu-modules-summary,
.site-header .user-menu-modules-inner .user-menu-module-section a {
  border: 1px solid transparent;
  border-radius: 12px !important;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    color 0.2s ease !important;
}

.site-header .user-menu-panel > a:hover,
.site-header .user-menu-modules-summary:hover,
.site-header .user-menu-modules-inner .user-menu-module-section a:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(129, 140, 248, 0.12)) !important;
  border-color: rgba(165, 180, 252, 0.3) !important;
  transform: translateX(3px);
  color: #f8fbff !important;
}

.site-header .user-menu-modules[open] .user-menu-modules-summary {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(129, 140, 248, 0.1)) !important;
  border-color: rgba(165, 180, 252, 0.32) !important;
  color: #eaf2ff !important;
}

/* ================================================================
   HOME TOOLBAR UI/UX V4 — neo-glass premium refinement
   ================================================================ */
@media (min-width: 901px) {
  .site-header .nav-wrap {
    margin-top: 8px;
    margin-bottom: 6px;
    padding: 10px 14px !important;
    border-radius: 18px;
    border: none;
    background:
      linear-gradient(180deg, rgba(10, 16, 34, 0.78), rgba(7, 11, 24, 0.7));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.09),
      0 22px 44px rgba(2, 6, 20, 0.34),
      0 0 0 1px rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(14px) saturate(1.12);
    -webkit-backdrop-filter: blur(14px) saturate(1.12);
  }
}

.site-header .main-nav > a,
.site-header .nav-dropdown-trigger {
  position: relative;
}

.site-header .main-nav > a::before,
.site-header .nav-dropdown-trigger::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(167, 139, 250, 0), rgba(99, 102, 241, 0.92), rgba(129, 140, 248, 0.9), rgba(167, 139, 250, 0.85), rgba(167, 139, 250, 0));
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: center;
  transition: opacity 0.22s ease, transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header .main-nav > a:hover::before,
.site-header .nav-dropdown-trigger:hover::before,
.site-header .nav-dropdown-trigger[aria-expanded="true"]::before {
  opacity: 0.95;
  transform: scaleX(1);
}

.site-header .nav-dropdown-panel {
  border-color: rgba(165, 180, 252, 0.3) !important;
  background:
    linear-gradient(155deg, rgba(14, 21, 40, 0.99), rgba(8, 13, 28, 0.98)) !important;
}

.site-header .nav-dropdown-panel a {
  min-height: 86px;
  border-radius: 13px !important;
  background: linear-gradient(170deg, rgba(16, 24, 44, 0.78), rgba(10, 15, 30, 0.82)) !important;
}

.site-header .language-toggle,
.site-header .user-menu-toggle,
.site-header a.btn.btn-primary.pipsy-login-btn {
  border-radius: 13px !important;
}

.site-header a.btn.btn-primary.pipsy-login-btn {
  border-color: rgba(165, 180, 252, 0.42) !important;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.92), rgba(99, 102, 241, 0.94), rgba(167, 139, 250, 0.88)) !important;
  color: #f8fbff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 10px 24px rgba(99, 102, 241, 0.22),
    0 14px 30px rgba(79, 70, 229, 0.2) !important;
}

/* ================================================================
   SITE HEADER — logo palette (indigo / violet / lilac), all pages
   ================================================================ */
.site-header {
  background: linear-gradient(180deg, rgba(5, 13, 28, 0.95), rgba(4, 10, 22, 0.92)) !important;
}

.site-header::before {
  background:
    radial-gradient(90% 140% at 0% 0%, rgba(99, 102, 241, 0.18), transparent 54%),
    radial-gradient(95% 130% at 100% 0%, rgba(167, 139, 250, 0.14), transparent 58%) !important;
}

.site-header .nav-wrap {
  border: none !important;
  background: linear-gradient(180deg, rgba(6, 18, 36, 0.8), rgba(5, 14, 29, 0.74)) !important;
  box-shadow:
    inset 0 1px 0 rgba(199, 210, 254, 0.12),
    0 22px 44px rgba(2, 6, 20, 0.34),
    0 0 30px rgba(99, 102, 241, 0.08) !important;
}

.site-header .main-nav > a:hover,
.site-header .nav-dropdown-trigger:hover,
.site-header .nav-dropdown-trigger[aria-expanded="true"] {
  border-color: rgba(165, 180, 252, 0.38) !important;
  background: linear-gradient(
    145deg,
    rgba(99, 102, 241, 0.18) 0%,
    rgba(129, 140, 248, 0.12) 50%,
    rgba(167, 139, 250, 0.12) 100%
  ) !important;
  box-shadow:
    inset 0 1px 0 rgba(199, 210, 254, 0.14),
    0 10px 24px rgba(2, 6, 23, 0.34),
    0 0 22px rgba(99, 102, 241, 0.18),
    0 0 28px rgba(167, 139, 250, 0.08) !important;
}

.site-header .main-nav > a::before,
.site-header .nav-dropdown-trigger::before {
  background: linear-gradient(
    90deg,
    rgba(167, 139, 250, 0),
    rgba(99, 102, 241, 0.92) 35%,
    rgba(129, 140, 248, 0.88) 65%,
    rgba(167, 139, 250, 0)
  ) !important;
}

.site-header .nav-dropdown-panel {
  border-color: rgba(165, 180, 252, 0.3) !important;
  background: linear-gradient(160deg, rgba(7, 19, 38, 0.99), rgba(5, 14, 30, 0.98)) !important;
  box-shadow:
    inset 0 1px 0 rgba(199, 210, 254, 0.1),
    0 28px 64px rgba(2, 6, 23, 0.54),
    0 0 56px rgba(99, 102, 241, 0.14) !important;
}

.site-header .nav-dropdown-panel a {
  border-color: rgba(165, 180, 252, 0.2) !important;
  background: linear-gradient(170deg, rgba(8, 24, 44, 0.82), rgba(6, 18, 34, 0.8)) !important;
}

.site-header .nav-dropdown-panel a:hover {
  border-color: rgba(165, 180, 252, 0.42) !important;
  background: linear-gradient(160deg, rgba(11, 32, 58, 0.9), rgba(7, 23, 44, 0.9)) !important;
  box-shadow:
    inset 0 1px 0 rgba(199, 210, 254, 0.12),
    0 18px 34px rgba(2, 6, 23, 0.42),
    0 0 26px rgba(99, 102, 241, 0.14) !important;
}

.site-header .nav-dropdown-panel a::before {
  border-color: rgba(165, 180, 252, 0.42) !important;
  background:
    linear-gradient(160deg, rgba(199, 210, 254, 0.18), rgba(255, 255, 255, 0.03)),
    linear-gradient(145deg, rgba(165, 180, 252, 0.28), rgba(99, 102, 241, 0.26), rgba(129, 140, 248, 0.22)) !important;
  box-shadow:
    inset 0 1px 0 rgba(224, 242, 254, 0.22),
    0 12px 24px rgba(2, 6, 23, 0.38),
    0 0 20px rgba(99, 102, 241, 0.18) !important;
}

.site-header .nav-dropdown-panel a::after {
  background: linear-gradient(145deg, #c7d2fe 0%, #818cf8 32%, #6366f1 64%, #a78bfa 100%) !important;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.28)) drop-shadow(0 4px 12px rgba(99, 102, 241, 0.45)) !important;
}

.site-header .language-toggle,
.site-header .user-menu-toggle {
  border-color: rgba(165, 180, 252, 0.3) !important;
  background: linear-gradient(180deg, rgba(10, 29, 52, 0.94), rgba(6, 20, 38, 0.96)) !important;
  box-shadow:
    inset 0 1px 0 rgba(199, 210, 254, 0.1),
    0 10px 22px rgba(2, 6, 23, 0.34),
    0 0 22px rgba(99, 102, 241, 0.12) !important;
}

.site-header .language-toggle:hover,
.site-header .user-menu-toggle:hover,
.site-header .user-menu.open .user-menu-toggle {
  border-color: rgba(165, 180, 252, 0.44) !important;
  background: linear-gradient(
    165deg,
    rgba(99, 102, 241, 0.2) 0%,
    rgba(129, 140, 248, 0.12) 45%,
    rgba(8, 27, 47, 0.9) 100%
  ) !important;
  box-shadow:
    inset 0 1px 0 rgba(224, 242, 254, 0.14),
    0 12px 26px rgba(2, 6, 23, 0.4),
    0 0 24px rgba(99, 102, 241, 0.18) !important;
}

@media (max-width: 640px) {
  .site-header .user-menu-panel {
    left: 50% !important;
    right: auto !important;
    width: min(320px, calc(100vw - 24px));
    min-width: min(320px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    transform: translate(-50%, 8px) scale(0.97);
    transform-origin: top center;
  }

  .site-header .user-menu.open .user-menu-panel {
    transform: translate(-50%, 0) scale(1);
  }
}

/* ================================================================
   Tools (Eszközök) dropdown — globális „fehér keret” / focus villanás off
   A home-landing-wow.css hasonló szabályai csak a főoldalon töltődnek;
   app oldalakon (dashboard, calendar, …) ez pótolja.
   ================================================================ */
.site-header .nav-dropdown .nav-dropdown-trigger:focus,
.site-header .nav-dropdown .nav-dropdown-trigger:focus-visible,
.site-header .nav-dropdown .nav-dropdown-trigger:active {
  outline: none !important;
  border: 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.site-header .nav-dropdown .nav-dropdown-trigger::-moz-focus-inner {
  border: 0 !important;
}

.site-header .nav-dropdown .nav-dropdown-panel,
.site-header .nav-dropdown .nav-dropdown-panel[aria-hidden="true"],
.site-header .nav-dropdown .nav-dropdown-panel[aria-hidden="false"],
.site-header .nav-dropdown.open .nav-dropdown-panel {
  border: 0 !important;
  outline: 0 !important;
  border-color: transparent !important;
  outline-color: transparent !important;
  /* box-shadow: a fenti .site-header .nav-dropdown-panel prémium árnyék maradjon érvényben */
  background-clip: padding-box !important;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.site-header .nav-dropdown .nav-dropdown-panel *,
.site-header .nav-dropdown .nav-dropdown-panel *::before,
.site-header .nav-dropdown .nav-dropdown-panel *::after {
  border-color: transparent !important;
  outline-color: transparent !important;
}

.site-header .nav-dropdown,
.site-header .nav-dropdown * {
  -webkit-tap-highlight-color: transparent !important;
}

/* JS: nav-dropdown--closing (main.js / home-ui.js) — bezáráskor kikapcsoljuk az opacity/transform
   átmenetet; így nem „végiganimál” a fehér inset/border a panelen és kártyákon. */
.site-header .nav-dropdown.nav-dropdown--closing .nav-dropdown-panel {
  transition: none !important;
}
.site-header .nav-dropdown.nav-dropdown--closing .nav-dropdown-panel a {
  transition: none !important;
}

/* Bezáráskor: ne villanjon fehér / inset keret a panel és szekciók (linkek) körül.
   Az opacity még animálódik, ezért a díszítő árnyék és a contain: paint együtt okozhat „fehér szegélyt”. */
.site-header .nav-wrap .nav-dropdown:not(.open) .nav-dropdown-panel,
.site-header .nav-wrap .nav-dropdown-panel[aria-hidden="true"],
.site-header .nav-dropdown:not(.open) .nav-dropdown-panel,
.site-header .nav-dropdown-panel[aria-hidden="true"] {
  contain: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.site-header .nav-wrap .nav-dropdown:not(.open) .nav-dropdown-panel a,
.site-header .nav-wrap .nav-dropdown-panel[aria-hidden="true"] a,
.site-header .nav-dropdown:not(.open) .nav-dropdown-panel a,
.site-header .nav-dropdown-panel[aria-hidden="true"] a {
  box-shadow: none !important;
  border-color: transparent !important;
  outline: none !important;
}

.site-header .nav-wrap .nav-dropdown:not(.open) .nav-dropdown-panel a::before,
.site-header .nav-wrap .nav-dropdown:not(.open) .nav-dropdown-panel a::after,
.site-header .nav-wrap .nav-dropdown-panel[aria-hidden="true"] a::before,
.site-header .nav-wrap .nav-dropdown-panel[aria-hidden="true"] a::after,
.site-header .nav-dropdown:not(.open) .nav-dropdown-panel a::before,
.site-header .nav-dropdown:not(.open) .nav-dropdown-panel a::after,
.site-header .nav-dropdown-panel[aria-hidden="true"] a::before,
.site-header .nav-dropdown-panel[aria-hidden="true"] a::after {
  box-shadow: none !important;
  opacity: 0 !important;
}

/* ================================================================
   APP SHELL — navbar = főoldal (magasabb specifikusság: body.* .site-header)
   A propfirm / dashboard / calendar stb. modul CSS különben felülírja
   a sima .site-header szabályokat.
   ================================================================ */
body.db-shell .site-header,
body.profile-shell .site-header,
body.packages-shell .site-header,
body.calendar-shell .site-header,
body.emotion-shell .site-header,
body.us-shell .site-header,
body.prop-shell .site-header,
body.va-shell .site-header,
body.bt-shell .site-header,
body.calc-shell .site-header,
body.mw-shell-page .site-header,
body.di-app .site-header,
body.legal-page-body .site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 80 !important;
  padding-top: env(safe-area-inset-top, 0px) !important;
  isolation: isolate !important;
  background: linear-gradient(180deg, rgba(5, 13, 28, 0.95), rgba(4, 10, 22, 0.92)) !important;
  border-bottom: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 40px rgba(2, 6, 20, 0.38) !important;
  backdrop-filter: blur(20px) saturate(1.24) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.24) !important;
}

body.db-shell .site-header::before,
body.profile-shell .site-header::before,
body.packages-shell .site-header::before,
body.calendar-shell .site-header::before,
body.emotion-shell .site-header::before,
body.us-shell .site-header::before,
body.prop-shell .site-header::before,
body.va-shell .site-header::before,
body.bt-shell .site-header::before,
body.calc-shell .site-header::before,
body.mw-shell-page .site-header::before,
body.di-app .site-header::before,
body.legal-page-body .site-header::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
  background:
    radial-gradient(90% 140% at 0% 0%, rgba(99, 102, 241, 0.18), transparent 54%),
    radial-gradient(95% 130% at 100% 0%, rgba(167, 139, 250, 0.14), transparent 58%) !important;
  opacity: 0.88 !important;
}

body.db-shell .site-header .nav-wrap,
body.profile-shell .site-header .nav-wrap,
body.packages-shell .site-header .nav-wrap,
body.calendar-shell .site-header .nav-wrap,
body.emotion-shell .site-header .nav-wrap,
body.us-shell .site-header .nav-wrap,
body.prop-shell .site-header .nav-wrap,
body.va-shell .site-header .nav-wrap,
body.bt-shell .site-header .nav-wrap,
body.calc-shell .site-header .nav-wrap,
body.mw-shell-page .site-header .nav-wrap,
body.di-app .site-header .nav-wrap,
body.legal-page-body .site-header .nav-wrap {
  border: none !important;
  background: linear-gradient(180deg, rgba(6, 18, 36, 0.8), rgba(5, 14, 29, 0.74)) !important;
  box-shadow:
    inset 0 1px 0 rgba(199, 210, 254, 0.12),
    0 22px 44px rgba(2, 6, 20, 0.34),
    0 0 30px rgba(99, 102, 241, 0.08) !important;
}

@media (min-width: 901px) {
  body.db-shell .site-header .nav-wrap,
  body.profile-shell .site-header .nav-wrap,
  body.packages-shell .site-header .nav-wrap,
  body.calendar-shell .site-header .nav-wrap,
  body.emotion-shell .site-header .nav-wrap,
  body.us-shell .site-header .nav-wrap,
  body.prop-shell .site-header .nav-wrap,
  body.va-shell .site-header .nav-wrap,
  body.bt-shell .site-header .nav-wrap,
  body.calc-shell .site-header .nav-wrap,
  body.mw-shell-page .site-header .nav-wrap,
  body.di-app .site-header .nav-wrap,
  body.legal-page-body .site-header .nav-wrap {
    margin-top: 8px !important;
    margin-bottom: 6px !important;
    padding: 10px 14px !important;
    border-radius: 18px !important;
    border: none !important;
    background:
      linear-gradient(180deg, rgba(10, 16, 34, 0.78), rgba(7, 11, 24, 0.7)) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.09),
      0 22px 44px rgba(2, 6, 20, 0.34),
      0 0 0 1px rgba(255, 255, 255, 0.02) !important;
    backdrop-filter: blur(14px) saturate(1.12) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.12) !important;
  }
}

body.db-shell .site-header .main-nav > a:hover:not(.nav-support-btn),
body.db-shell .site-header .nav-dropdown-trigger:hover,
body.db-shell .site-header .nav-dropdown-trigger[aria-expanded="true"],
body.profile-shell .site-header .main-nav > a:hover:not(.nav-support-btn),
body.profile-shell .site-header .nav-dropdown-trigger:hover,
body.profile-shell .site-header .nav-dropdown-trigger[aria-expanded="true"],
body.packages-shell .site-header .main-nav > a:hover:not(.nav-support-btn),
body.packages-shell .site-header .nav-dropdown-trigger:hover,
body.packages-shell .site-header .nav-dropdown-trigger[aria-expanded="true"],
body.calendar-shell .site-header .main-nav > a:hover:not(.nav-support-btn),
body.calendar-shell .site-header .nav-dropdown-trigger:hover,
body.calendar-shell .site-header .nav-dropdown-trigger[aria-expanded="true"],
body.emotion-shell .site-header .main-nav > a:hover:not(.nav-support-btn),
body.emotion-shell .site-header .nav-dropdown-trigger:hover,
body.emotion-shell .site-header .nav-dropdown-trigger[aria-expanded="true"],
body.us-shell .site-header .main-nav > a:hover:not(.nav-support-btn),
body.us-shell .site-header .nav-dropdown-trigger:hover,
body.us-shell .site-header .nav-dropdown-trigger[aria-expanded="true"],
body.prop-shell .site-header .main-nav > a:hover:not(.nav-support-btn),
body.prop-shell .site-header .nav-dropdown-trigger:hover,
body.prop-shell .site-header .nav-dropdown-trigger[aria-expanded="true"],
body.va-shell .site-header .main-nav > a:hover:not(.nav-support-btn),
body.va-shell .site-header .nav-dropdown-trigger:hover,
body.va-shell .site-header .nav-dropdown-trigger[aria-expanded="true"],
body.bt-shell .site-header .main-nav > a:hover:not(.nav-support-btn),
body.bt-shell .site-header .nav-dropdown-trigger:hover,
body.bt-shell .site-header .nav-dropdown-trigger[aria-expanded="true"],
body.calc-shell .site-header .main-nav > a:hover:not(.nav-support-btn),
body.calc-shell .site-header .nav-dropdown-trigger:hover,
body.calc-shell .site-header .nav-dropdown-trigger[aria-expanded="true"],
body.mw-shell-page .site-header .main-nav > a:hover:not(.nav-support-btn),
body.mw-shell-page .site-header .nav-dropdown-trigger:hover,
body.mw-shell-page .site-header .nav-dropdown-trigger[aria-expanded="true"],
body.di-app .site-header .main-nav > a:hover:not(.nav-support-btn),
body.di-app .site-header .nav-dropdown-trigger:hover,
body.di-app .site-header .nav-dropdown-trigger[aria-expanded="true"],
body.legal-page-body .site-header .main-nav > a:hover:not(.nav-support-btn),
body.legal-page-body .site-header .nav-dropdown-trigger:hover,
body.legal-page-body .site-header .nav-dropdown-trigger[aria-expanded="true"] {
  border-color: rgba(165, 180, 252, 0.38) !important;
  background: linear-gradient(
    145deg,
    rgba(99, 102, 241, 0.18) 0%,
    rgba(129, 140, 248, 0.12) 50%,
    rgba(167, 139, 250, 0.12) 100%
  ) !important;
  box-shadow:
    inset 0 1px 0 rgba(199, 210, 254, 0.14),
    0 10px 24px rgba(2, 6, 23, 0.34),
    0 0 22px rgba(99, 102, 241, 0.18),
    0 0 28px rgba(167, 139, 250, 0.08) !important;
}

body.db-shell .site-header .nav-dropdown-panel,
body.profile-shell .site-header .nav-dropdown-panel,
body.packages-shell .site-header .nav-dropdown-panel,
body.calendar-shell .site-header .nav-dropdown-panel,
body.emotion-shell .site-header .nav-dropdown-panel,
body.us-shell .site-header .nav-dropdown-panel,
body.prop-shell .site-header .nav-dropdown-panel,
body.va-shell .site-header .nav-dropdown-panel,
body.bt-shell .site-header .nav-dropdown-panel,
body.calc-shell .site-header .nav-dropdown-panel,
body.mw-shell-page .site-header .nav-dropdown-panel,
body.di-app .site-header .nav-dropdown-panel,
body.legal-page-body .site-header .nav-dropdown-panel {
  border-color: rgba(165, 180, 252, 0.3) !important;
  background: linear-gradient(160deg, rgba(7, 19, 38, 0.99), rgba(5, 14, 30, 0.98)) !important;
  box-shadow:
    inset 0 1px 0 rgba(199, 210, 254, 0.1),
    0 28px 64px rgba(2, 6, 23, 0.54),
    0 0 56px rgba(99, 102, 241, 0.14) !important;
}

body.db-shell .site-header .language-toggle,
body.db-shell .site-header .user-menu-toggle,
body.profile-shell .site-header .language-toggle,
body.profile-shell .site-header .user-menu-toggle,
body.packages-shell .site-header .language-toggle,
body.packages-shell .site-header .user-menu-toggle,
body.calendar-shell .site-header .language-toggle,
body.calendar-shell .site-header .user-menu-toggle,
body.emotion-shell .site-header .language-toggle,
body.emotion-shell .site-header .user-menu-toggle,
body.us-shell .site-header .language-toggle,
body.us-shell .site-header .user-menu-toggle,
body.prop-shell .site-header .language-toggle,
body.prop-shell .site-header .user-menu-toggle,
body.va-shell .site-header .language-toggle,
body.va-shell .site-header .user-menu-toggle,
body.bt-shell .site-header .language-toggle,
body.bt-shell .site-header .user-menu-toggle,
body.calc-shell .site-header .language-toggle,
body.calc-shell .site-header .user-menu-toggle,
body.mw-shell-page .site-header .language-toggle,
body.mw-shell-page .site-header .user-menu-toggle,
body.di-app .site-header .language-toggle,
body.di-app .site-header .user-menu-toggle,
body.legal-page-body .site-header .language-toggle,
body.legal-page-body .site-header .user-menu-toggle {
  border-color: rgba(165, 180, 252, 0.3) !important;
  background: linear-gradient(180deg, rgba(10, 29, 52, 0.94), rgba(6, 20, 38, 0.96)) !important;
  box-shadow:
    inset 0 1px 0 rgba(199, 210, 254, 0.1),
    0 10px 22px rgba(2, 6, 23, 0.34),
    0 0 22px rgba(99, 102, 241, 0.12) !important;
}

body.db-shell .site-header a.btn.btn-primary.pipsy-login-btn,
body.profile-shell .site-header a.btn.btn-primary.pipsy-login-btn,
body.packages-shell .site-header a.btn.btn-primary.pipsy-login-btn,
body.calendar-shell .site-header a.btn.btn-primary.pipsy-login-btn,
body.emotion-shell .site-header a.btn.btn-primary.pipsy-login-btn,
body.us-shell .site-header a.btn.btn-primary.pipsy-login-btn,
body.prop-shell .site-header a.btn.btn-primary.pipsy-login-btn,
body.va-shell .site-header a.btn.btn-primary.pipsy-login-btn,
body.bt-shell .site-header a.btn.btn-primary.pipsy-login-btn,
body.calc-shell .site-header a.btn.btn-primary.pipsy-login-btn,
body.mw-shell-page .site-header a.btn.btn-primary.pipsy-login-btn,
body.di-app .site-header a.btn.btn-primary.pipsy-login-btn,
body.legal-page-body .site-header a.btn.btn-primary.pipsy-login-btn {
  border-color: rgba(165, 180, 252, 0.42) !important;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.92), rgba(99, 102, 241, 0.94), rgba(167, 139, 250, 0.88)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 10px 24px rgba(99, 102, 241, 0.22),
    0 14px 30px rgba(79, 70, 229, 0.2) !important;
}

/* Navbar modules: premium glass cards with module-specific tone */
.site-header .nav-dropdown-panel a[href="/dashboard"],
.site-header .nav-dropdown-panel a[href="/calendar"],
.site-header .nav-dropdown-panel a[href="/visual-analytics"],
.site-header .nav-dropdown-panel a[href="/backtest"],
.site-header .nav-dropdown-panel a[href="/propfirm"],
.site-header .nav-dropdown-panel a[href="/emotion-control"],
.site-header .nav-dropdown-panel a[href="/ai-coach"] {
  border-width: 1px !important;
  border-style: solid !important;
  backdrop-filter: blur(14px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.2) !important;
  box-shadow:
    inset 0 1px 0 rgba(224, 242, 254, 0.16),
    inset 0 -1px 0 rgba(15, 23, 42, 0.22),
    0 14px 30px rgba(2, 6, 20, 0.24),
    0 0 20px rgba(99, 102, 241, 0.1) !important;
}

.site-header .nav-dropdown-panel a[href="/dashboard"] {
  border-color: rgba(165, 180, 252, 0.26) !important;
  background:
    radial-gradient(122% 88% at 14% 0%, rgba(129, 140, 248, 0.2), transparent 62%),
    linear-gradient(170deg, rgba(16, 26, 48, 0.46), rgba(9, 18, 36, 0.34)) !important;
}
.site-header .nav-dropdown-panel a[href="/calendar"] {
  border-color: rgba(196, 181, 253, 0.28) !important;
  background:
    radial-gradient(120% 84% at 14% 0%, rgba(196, 181, 253, 0.22), transparent 62%),
    linear-gradient(170deg, rgba(16, 26, 48, 0.46), rgba(9, 18, 36, 0.34)) !important;
}
.site-header .nav-dropdown-panel a[href="/visual-analytics"] {
  border-color: rgba(110, 231, 183, 0.28) !important;
  background:
    radial-gradient(120% 86% at 12% 0%, rgba(110, 231, 183, 0.22), transparent 62%),
    linear-gradient(170deg, rgba(16, 26, 48, 0.46), rgba(9, 18, 36, 0.34)) !important;
}
.site-header .nav-dropdown-panel a[href="/backtest"] {
  border-color: rgba(165, 180, 252, 0.28) !important;
  background:
    radial-gradient(122% 86% at 12% 0%, rgba(165, 180, 252, 0.22), transparent 62%),
    linear-gradient(170deg, rgba(16, 26, 48, 0.46), rgba(9, 18, 36, 0.34)) !important;
}
.site-header .nav-dropdown-panel a[href="/propfirm"] {
  border-color: rgba(103, 232, 249, 0.28) !important;
  background:
    radial-gradient(122% 86% at 12% 0%, rgba(103, 232, 249, 0.22), transparent 62%),
    linear-gradient(170deg, rgba(16, 26, 48, 0.46), rgba(9, 18, 36, 0.34)) !important;
}
.site-header .nav-dropdown-panel a[href="/emotion-control"] {
  border-color: rgba(244, 114, 182, 0.3) !important;
  background:
    radial-gradient(122% 86% at 12% 0%, rgba(244, 114, 182, 0.24), transparent 62%),
    linear-gradient(170deg, rgba(16, 26, 48, 0.46), rgba(9, 18, 36, 0.34)) !important;
}
.site-header .nav-dropdown-panel a[href="/ai-coach"] {
  border-color: rgba(251, 191, 36, 0.3) !important;
  background:
    radial-gradient(124% 90% at 12% 0%, rgba(251, 191, 36, 0.24), transparent 60%),
    radial-gradient(100% 72% at 100% 0%, rgba(245, 158, 11, 0.16), transparent 64%),
    linear-gradient(170deg, rgba(16, 26, 48, 0.46), rgba(9, 18, 36, 0.34)) !important;
}

.site-header .nav-dropdown-panel a[href="/dashboard"]:hover,
.site-header .nav-dropdown-panel a[href="/calendar"]:hover,
.site-header .nav-dropdown-panel a[href="/visual-analytics"]:hover,
.site-header .nav-dropdown-panel a[href="/backtest"]:hover,
.site-header .nav-dropdown-panel a[href="/propfirm"]:hover,
.site-header .nav-dropdown-panel a[href="/emotion-control"]:hover,
.site-header .nav-dropdown-panel a[href="/ai-coach"]:hover {
  transform: translateY(-2px) !important;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03)),
    linear-gradient(165deg, rgba(20, 36, 64, 0.58), rgba(11, 24, 46, 0.44)) !important;
  box-shadow:
    inset 0 1px 0 rgba(224, 242, 254, 0.24),
    inset 0 -1px 0 rgba(15, 23, 42, 0.28),
    0 18px 34px rgba(2, 6, 23, 0.28),
    0 0 24px rgba(129, 140, 248, 0.18) !important;
}

/* Modulok dropdown: élő chart-szerű gyertya-hover (lentről fel / fentről le váltakozva) */
.site-header .nav-dropdown-panel a.nav-module-link {
  --nav-mod-step: 0.27s;
  --nav-mod-dur: 0.34s;
  padding-right: 138px !important;
}

.site-header .nav-module-candles {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 118px;
  height: 44px;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.site-header .nav-module-candles::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    102deg,
    transparent 0%,
    rgba(255, 255, 255, 0.02) 38%,
    rgba(255, 255, 255, 0.24) 50%,
    rgba(255, 255, 255, 0.02) 62%,
    transparent 100%
  );
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateX(-110%);
  pointer-events: none;
}

.site-header .nav-dropdown-panel a.nav-module-link:hover .nav-module-candles {
  opacity: 0.62;
}

.site-header .nav-dropdown-panel a.nav-module-link:hover .nav-module-candles::after {
  opacity: 0.42;
  animation: navModuleScan 1.05s ease-out 1 both;
}

.site-header .nav-module-label {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-width: 0;
}

.site-header .nav-module-candles .nav-module-candle-body {
  transform: scaleY(0);
  transform-box: fill-box;
  transform-origin: bottom center;
}

.site-header .nav-module-candles .nav-module-candle--down .nav-module-candle-body {
  transform-origin: top center;
}

.site-header .nav-module-candles .nav-module-candle-wick { opacity: 0; }

@keyframes navModuleBodyPulseUp {
  0% {
    transform: scaleY(0);
  }
  100% {
    transform: scaleY(1);
  }
}

@keyframes navModuleBodyPulseDown {
  0% {
    transform: scaleY(0);
  }
  100% {
    transform: scaleY(1);
  }
}

@keyframes navModuleWickPulse {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes navModuleScan {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(110%);
  }
}

.site-header .nav-dropdown-panel a.nav-module-link:hover .nav-module-candles .nav-module-candle-body {
  animation-duration: var(--nav-mod-dur);
  animation-timing-function: cubic-bezier(0.2, 0.78, 0.3, 1);
  animation-iteration-count: 1;
  animation-fill-mode: both;
}

.site-header .nav-dropdown-panel a.nav-module-link:hover .nav-module-candles .nav-module-candle--up .nav-module-candle-body {
  animation-name: navModuleBodyPulseUp;
}

.site-header .nav-dropdown-panel a.nav-module-link:hover .nav-module-candles .nav-module-candle--down .nav-module-candle-body {
  animation-name: navModuleBodyPulseDown;
}

.site-header .nav-dropdown-panel a.nav-module-link:hover .nav-module-candles .nav-module-candle-wick {
  animation: navModuleWickPulse var(--nav-mod-dur) ease-in-out 1 both;
}

.site-header .nav-dropdown-panel a.nav-module-link:hover .nav-module-candles .nav-module-candle:nth-child(1) .nav-module-candle-body,
.site-header .nav-dropdown-panel a.nav-module-link:hover .nav-module-candles .nav-module-candle:nth-child(1) .nav-module-candle-wick {
  animation-delay: calc(0 * var(--nav-mod-step));
}
.site-header .nav-dropdown-panel a.nav-module-link:hover .nav-module-candles .nav-module-candle:nth-child(2) .nav-module-candle-body,
.site-header .nav-dropdown-panel a.nav-module-link:hover .nav-module-candles .nav-module-candle:nth-child(2) .nav-module-candle-wick {
  animation-delay: calc(1 * var(--nav-mod-step));
}
.site-header .nav-dropdown-panel a.nav-module-link:hover .nav-module-candles .nav-module-candle:nth-child(3) .nav-module-candle-body,
.site-header .nav-dropdown-panel a.nav-module-link:hover .nav-module-candles .nav-module-candle:nth-child(3) .nav-module-candle-wick {
  animation-delay: calc(2 * var(--nav-mod-step));
}
.site-header .nav-dropdown-panel a.nav-module-link:hover .nav-module-candles .nav-module-candle:nth-child(4) .nav-module-candle-body,
.site-header .nav-dropdown-panel a.nav-module-link:hover .nav-module-candles .nav-module-candle:nth-child(4) .nav-module-candle-wick {
  animation-delay: calc(3 * var(--nav-mod-step));
}
.site-header .nav-dropdown-panel a.nav-module-link:hover .nav-module-candles .nav-module-candle:nth-child(5) .nav-module-candle-body,
.site-header .nav-dropdown-panel a.nav-module-link:hover .nav-module-candles .nav-module-candle:nth-child(5) .nav-module-candle-wick {
  animation-delay: calc(4 * var(--nav-mod-step));
}
.site-header .nav-dropdown-panel a.nav-module-link:hover .nav-module-candles .nav-module-candle:nth-child(6) .nav-module-candle-body,
.site-header .nav-dropdown-panel a.nav-module-link:hover .nav-module-candles .nav-module-candle:nth-child(6) .nav-module-candle-wick {
  animation-delay: calc(5 * var(--nav-mod-step));
}

@media (prefers-reduced-motion: reduce) {
  .site-header .nav-dropdown-panel a.nav-module-link:hover .nav-module-candles .nav-module-candle-wick,
  .site-header .nav-dropdown-panel a.nav-module-link:hover .nav-module-candles .nav-module-candle-body {
    animation: none !important;
  }
  .site-header .nav-module-candles .nav-module-candle-wick {
    opacity: 1 !important;
  }
  .site-header .nav-module-candles .nav-module-candle-body {
    transform: scaleY(1) !important;
  }
}
