/* Karmena - Premium & AI-Driven Aesthetics */
:root {
  --font-main: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* Palette - Ultra Dark Mode */
  --bg-body: #050505;
  --bg-card: rgba(30, 30, 30, 0.4);
  /* Deeper glass */
  --bg-card-hover: rgba(40, 40, 40, 0.6);

  --text-primary: #ededed;
  --text-secondary: #a3a3a3;
  --text-muted: #525252;

  /* Vibrant Accents */
  --accent-primary: #8b5cf6;
  /* Violet */
  --accent-secondary: #00dc82;
  /* Neo-Emerald */
  --accent-tertiary: #f59e0b;
  /* Amber */
  --accent-glow: rgba(139, 92, 246, 0.3);

  /* Glassmorphism System */
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.15);
  --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  --blur-amt: 12px;

  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.5rem;
  --radius-pill: 999px;

  --header-height: 80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* Base Aesthetics */
html {
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.65;
  /* Better readability */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;

  /* Subtle Background Mesh/Noise */
  background-image:
    radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(16, 185, 129, 0.1) 0px, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Layout Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Sticky Premium Header */
header {
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-bottom: var(--spacing-xl);
}

/* CookieYes — neļaut preference centram stiept lapu platāk par viewport (mob.) */
.cky-modal {
  max-width: 100% !important;
  overflow: hidden !important;
}
.cky-modal .cky-preference-center,
.cky-modal .cky-preference-center > * {
  max-width: 100% !important;
  box-sizing: border-box !important;
}
@media (max-width: 768px) {
  .cky-modal .cky-preference-center,
  .cky-modal .cky-preference-center .cky-preference-body-wrapper,
  .cky-modal .cky-preference-center .cky-preference-content-wrapper,
  .cky-modal .cky-preference-center .cky-footer-wrapper,
  .cky-modal .cky-preference-center .cky-accordion-wrapper {
    width: 100% !important;
    max-width: 100% !important;
  }
  .cky-modal .cky-preference-center .cky-preference-body-wrapper {
    overflow-x: hidden !important;
  }
}

.nav-grid {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 1.5rem;
  background: linear-gradient(to right, #fff, #a3a3a3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-logo {
  display: flex;
  align-items: center;
  margin-right: 3rem;
  /* Extra spacing requested */
}

.nav-links {
  display: flex;
  gap: var(--spacing-lg);
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--text-primary);
  text-shadow: 0 0 20px var(--accent-glow);
}

#mobile-menu-btn {
  display: none;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}

#close-menu-btn {
  display: none;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  border: none;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: var(--spacing-lg) 0 var(--spacing-md);
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

/* Newsletter icons */
.newsletter-gift {
  width: 44px;
  height: 44px;
}

.newsletter-send {
  width: 16px;
  height: 16px;
}

.newsletter-check {
  width: 14px;
  height: 14px;
}

/* Cards & Grid (The Core UI) */
.verticals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;

  /* Glass Effect */
  backdrop-filter: blur(var(--blur-amt));
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-highlight), transparent);
  opacity: 0.5;
}

.card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--spacing-lg);
}

/* Tags */
.category-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-md);

  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

/* AI aplītis — raksta augšā (ES AI regulas atbilstība, pilna platuma josla) */
.ai-badge-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 220, 130, 0.15);
  border: 1px solid rgba(0, 220, 130, 0.4);
  color: var(--accent-secondary);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.ai-disclosure-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0 0 var(--spacing-lg) 0;
  padding: 0.7rem 2.4rem 0.7rem 1rem;
  border-radius: 12px;
  background: rgba(0, 220, 130, 0.06);
  border: 1px solid rgba(0, 220, 130, 0.25);
  flex-wrap: wrap;
}
.ai-disclosure-close {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 2px 8px;
  opacity: 0.55;
  font-family: inherit;
}
.ai-disclosure-close:hover { opacity: 1; }
.ai-disclosure-top-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  flex: 1 1 auto;
  min-width: 140px;
}
.ai-disclosure-top-text strong {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}
.ai-disclosure-top-text span {
  color: var(--text-secondary);
  font-size: 0.75rem;
}
.ai-disclosure-top-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  flex-wrap: wrap;
}
.ai-disclosure-top-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  font-size: 0.75rem;
  color: var(--text-secondary);
  border-bottom: none;
  transition: opacity 0.2s;
  white-space: nowrap;
  min-width: 0;
}
.ai-disclosure-top-links a:hover { opacity: 0.8; }
.ai-disclosure-top-links a img {
  height: 16px;
  width: auto;
  vertical-align: middle;
}

/* Article Reading Experience */
article {
  max-width: 740px;
  margin: 0 auto;
  padding-bottom: var(--spacing-xl);
}

article h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
  background: linear-gradient(to bottom right, #fff 30%, #a3a3a3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  color: var(--text-secondary);
  font-size: 0.875rem;
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: var(--spacing-lg);
}

/* Typography for Content */
.content {
  font-size: 1.125rem;
  /* 18px */
  color: #d4d4d4;
  min-width: 0;
  overflow-wrap: break-word;
}

.content img {
  max-width: 100%;
  height: auto;
}

.content table {
  display: block;
  max-width: 100%;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
}

.content table thead,
.content table tbody,
.content table tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.content table th,
.content table td {
  word-break: break-word;
  overflow-wrap: break-word;
  min-width: 0;
  box-sizing: border-box;
}

.content pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.content h2 {
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.content h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content p {
  margin-bottom: 1.75rem;
  line-height: 1.8;
}

.content ul {
  margin-bottom: 1.75rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.content li {
  margin-bottom: 0.5rem;
}

.content strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Affiliate Links in Text */
a.aff-link {
  color: var(--accent-primary);
  border-bottom: 1px solid rgba(139, 92, 246, 0.5);
  transition: all 0.2s;
}

a.aff-link:hover {
  color: #a78bfa;
  border-bottom-color: #a78bfa;
  background: rgba(139, 92, 246, 0.1);
}

a.aff-link strong {
  color: inherit;
}

/* Footer */
footer {
  margin-top: var(--spacing-xl);
  padding: var(--spacing-xl) 0;
  border-top: 1px solid var(--glass-border);
  color: var(--text-secondary);
  text-align: center;
  font-size: 0.875rem;
}

/* Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero {
    padding: 0 0 var(--spacing-sm);
  }

  .hero h1 {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
  }

  .hero p {
    font-size: 1rem;
  }

  article h1 {
    font-size: 2rem;
  }

  /* AI paziņojuma josla — neizstiepties un nesalīmēties malās */
  .ai-disclosure-top {
    padding: 0.7rem 2.1rem 0.7rem 0.9rem;
    gap: 10px;
  }
  .ai-disclosure-top-text {
    min-width: 0;
  }
  .ai-disclosure-top-links {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }

  /* Kampaņu baneris mobilaļai */
  .banner-body {
    gap: 12px;
    padding: 1.2rem 1rem;
  }
  .banner-text {
    min-width: 0;
  }
  .banner-cta {
    width: 100%;
    justify-content: center;
  }

  .nav-grid {
    flex-wrap: wrap;
    /* allow wrapping if needed, but flex-direction: row keeps things horizontal */
    align-items: center;
    justify-content: space-between;
  }

  #mobile-menu-btn {
    display: block;
    z-index: 101;
    /* Above almost everything else but nav */
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    /* Hidden off-screen by default */
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--spacing-xl) var(--spacing-lg);
    gap: var(--spacing-md);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    border-left: 1px solid var(--glass-border);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.25rem;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle dividers */
    width: 100%;
  }

  #close-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    align-self: flex-end;
    /* Align to the right in the sidebar */
    margin-bottom: var(--spacing-md);
    padding: 0.5rem;
  }

  header {
    height: auto;
    padding: var(--spacing-md) 0;
    margin-bottom: var(--spacing-sm);
  }
}

/* Recommendation System */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--spacing-xl);
  align-items: start;
  min-width: 0;
}

.article-layout > * {
  min-width: 0;
}

@media (max-width: 1100px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
}

.sidebar {
  position: sticky;
  top: 100px;
}

.recommendations-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.recommendations-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

.recommendation-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  transition: all 0.3s ease;
  backdrop-filter: blur(var(--blur-amt));
}

.recommendation-card:hover {
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.recommendation-card h4 {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.recommendation-card .cat {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;

  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

/* In-content Card (Mobile) */
.in-content-card {
  margin: var(--spacing-xl) 0;
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(0, 220, 130, 0.05));
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.in-content-card::before {
  content: 'Rekomendācija';
  position: absolute;
  top: 10px;
  right: -30px;
  background: var(--accent-primary);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 40px;
  transform: rotate(45deg);
  text-transform: uppercase;
}

@media (min-width: 1101px) {
  .in-content-card {
    display: none;
    /* Only show in-content on mobile/medium screens */
  }

  .mobile-only {
    display: none !important;
  }
}

@media (max-width: 1100px) {
  .desktop-only {
    display: none !important;
  }
}

/* Category Card Icons - Premium Styling */
.card-icon-wrapper {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-md);
  color: var(--accent-primary);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover .card-icon-wrapper {
  background: var(--accent-primary);
  color: white;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 30px var(--accent-glow);
}

.card-icon-wrapper i,
.card-icon-wrapper svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  text-align: center;
}

.card p {
  text-align: center;
}

.category-veseliba .card-icon-wrapper {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-primary);
  border-color: rgba(139, 92, 246, 0.2);
}

.category-majoklis .card-icon-wrapper {
  background: rgba(0, 220, 130, 0.1);
  color: var(--accent-secondary);
  border-color: rgba(0, 220, 130, 0.2);
}

.category-produktivitate .card-icon-wrapper {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-tertiary);
  border-color: rgba(245, 158, 11, 0.2);
}

.card:hover.category-veseliba .card-icon-wrapper {
  background: var(--accent-primary);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

.card:hover.category-majoklis .card-icon-wrapper {
  background: var(--accent-secondary);
  color: #050505;
  box-shadow: 0 0 30px rgba(0, 220, 130, 0.4);
}

.card:hover.category-produktivitate .card-icon-wrapper {
  background: var(--accent-tertiary);
  color: #050505;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.4);
}

/* High Resolution Article Hero */
.article-hero {
  margin-bottom: var(--spacing-xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 40px var(--accent-glow);
  border: 1px solid var(--glass-border);
  position: relative;
}

.article-hero img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-hero:hover img {
  transform: scale(1.02);
}

.article-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

/* Homepage Article Cards */
.article-card {
  padding: 0 !important;
  display: flex;
  flex-direction: column;
}

.article-card .card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
}

.article-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover .card-image img {
  transform: scale(1.1);
}

.article-card .card-content {
  padding: var(--spacing-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-card h3 {
  text-align: left !important;
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: var(--spacing-md);
}

.article-card .read-more {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-primary);
  opacity: 0.8;
  transition: all 0.3s;
}

.article-card:hover .read-more {
  opacity: 1;
  transform: translateX(5px);
}

/* ── Campaign Banner (A/B tests 50/50: GoAd vs UAd) — responsīvs, raksta beigās ── */
.campaign-banner {
  position: relative;
  margin-top: var(--spacing-xl);
  border-radius: 14px;
  overflow: hidden;
}
.banner-body {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 1.4rem 1.5rem;
  flex-wrap: wrap;
}
.banner-logo {
  height: 26px;
  width: auto;
  flex-shrink: 0;
}
.banner-text {
  flex: 1 1 auto;
  min-width: 200px;
}
.banner-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 6px;
}
.banner-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.banner-msg {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.banner-cta {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 999px;
  white-space: nowrap;
  transition: all 0.25s;
}
.banner-close {
  position: absolute;
  right: 8px;
  top: 8px;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 0.8rem;
  padding: 2px 8px;
  opacity: 0.55;
  font-family: inherit;
}
.banner-close:hover { opacity: 1; }

/* GoAd — opencode dizains (tumšs) */
.banner-go {
  background: #111;
  border: 1px solid #2a2a2a;
  color: hsl(0, 15%, 94%);
}
.banner-go .banner-tag {
  background: rgba(229, 232, 132, 0.15);
  color: hsl(62, 84%, 88%);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.banner-go .banner-title { color: hsl(62, 84%, 88%); }
.banner-go .banner-cta {
  color: #0c0c0c;
  background: hsl(62, 84%, 88%);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.banner-go .banner-cta:hover { background: hsl(62, 100%, 90%); }
.banner-go .banner-close { color: #fff; }

/* UAd — upit.lv dizains (gaišais) */
.banner-upit {
  background: rgba(253, 252, 248, 0.96);
  border: 1px solid #F1F5F9;
  color: #1E293B;
}
.banner-upit .banner-tag {
  background: rgba(109, 40, 217, 0.12);
  color: #6D28D9;
  font-family: "Outfit", sans-serif;
}
.banner-upit .banner-title { color: #1E293B; }
.banner-upit .banner-cta {
  color: #fff;
  background: #6D28D9;
  font-family: "Outfit", sans-serif;
}
.banner-upit .banner-cta:hover { background: #5B21B6; }
.banner-upit .banner-close { color: #475569; }

/* ── Campaign Topbar (A/B tests 50/50: GoAd vs UAd) ── */
.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
  padding: 10px 42px 10px 16px;
  font-size: 0.78rem;
  z-index: 60;
}
.topbar .cta {
  text-decoration: none;
  white-space: nowrap;
}
.topbar .close {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  opacity: 0.55;
  font-size: 0.8rem;
  background: none;
  border: none;
  padding: 2px 8px;
  font-family: inherit;
}
.topbar .close:hover { opacity: 1; }

/* GoAd — opencode dizains (tumšs) */
.topbar-go {
  background: #111;
  border-bottom: 1px solid #2a2a2a;
  color: hsl(0, 15%, 94%);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.topbar-go .cta {
  color: #0c0c0c;
  background: hsl(62, 84%, 88%);
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
}
.topbar-go .cta:hover { background: hsl(62, 100%, 90%); }
.topbar-go .close { color: #fff; }

/* UAd — upit.lv dizains (gaišais) */
.topbar-upit {
  background: rgba(253, 252, 248, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #1E293B;
  font-family: "Plus Jakarta Sans", -apple-system, sans-serif;
  border-bottom: 1px solid #F1F5F9;
}
.topbar-upit .cta {
  color: #fff;
  background: #6D28D9;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  font-family: "Outfit", sans-serif;
}
.topbar-upit .cta:hover { background: #5B21B6; }
.topbar-upit .close { color: #475569; }
.topbar-img {
  height: 18px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 2px;
}

/* TAd — trandins.lv dizains (HUD stils: sirsniņa + TRandiņš) */
.tad-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-family: "Outfit", sans-serif;
  color: #e9e7f5;
}
.tad-wordmark svg {
  filter: drop-shadow(0 0 5px rgba(154, 159, 253, 0.8));
  flex-shrink: 0;
}
.tad-wordmark .name {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.tad-wordmark .t {
  color: #9a9ffd;
  filter: drop-shadow(0 0 5px rgba(154, 159, 253, 0.5));
}
.topbar-tad-wordmark { vertical-align: middle; margin-right: 2px; }
.banner-tad-wordmark { font-size: 1.05rem; flex-shrink: 0; }

.topbar-tad {
  background: #12101c;
  border-bottom: 1px solid rgba(154, 159, 253, 0.3);
  color: #e9e7f5;
  font-family: "Inter", sans-serif;
}
.topbar-tad .cta {
  color: #fff;
  background: linear-gradient(135deg, #ec4899, #9a9ffd);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  font-family: "Outfit", sans-serif;
  box-shadow: 0 0 16px rgba(154, 159, 253, 0.35);
}
.topbar-tad .cta:hover { filter: brightness(1.1); }
.topbar-tad .close { color: #9a9ffd; }

.banner-tad {
  background: #12101c;
  border: 1px solid rgba(154, 159, 253, 0.3);
  color: #e9e7f5;
}
.banner-tad .banner-tag {
  background: rgba(236, 72, 153, 0.18);
  color: #f9a8d4;
  border: 1px solid rgba(236, 72, 153, 0.35);
  font-family: "Outfit", sans-serif;
}
.banner-tad .banner-title { color: #ffe8f3; }
.banner-tad .banner-msg { color: #c9b5c9; }
.banner-tad .banner-cta {
  color: #fff;
  background: linear-gradient(135deg, #ec4899, #9a9ffd);
  font-family: "Outfit", sans-serif;
  box-shadow: 0 0 18px rgba(154, 159, 253, 0.35);
}
.banner-tad .banner-cta:hover { filter: brightness(1.1); }
.banner-tad .banner-close { color: #9a9ffd; }
/* Kompaktas kategoriju kartītes (čipi) */
.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 0 1.5rem 3rem;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}
.chip:hover {
    background: rgba(139,92,246,0.15);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}
.chip svg, .chip i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
