*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --accent: #aff200;
  --accent-soft: rgba(175, 242, 0, 0.16);
  --accent-glow: rgba(175, 242, 0, 0.45);
  /* Navigation & footer: винаги основния цвят на сайта – не се променят от accent на планове */
  --nav-accent: #aff200;
  --nav-accent-soft: rgba(175, 242, 0, 0.16);
  --nav-accent-glow: rgba(175, 242, 0, 0.45);
  --bg: #050607;
  --bg-elevated: #101318;
  --card: rgba(14, 17, 22, 0.85);
  --text: #f7f8fb;
  --muted: #aeb7c4;
  --border: rgba(255, 255, 255, 0.1);
}


body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  background: #050607;
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}

/* Предотвратява хоризонтален скрол */
html, body {
  overflow-x: hidden;
}
/* Глобална скрол лента – за цялата страница и всички скролващи области */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
  background-clip: padding-box;
}
*::-webkit-scrollbar-corner {
  background: transparent;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top, #0f1116 0%, #050607 60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
  will-change: opacity;
}

.loading-screen.show {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease-in, visibility 0.2s ease-in;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease-out, visibility 0.15s ease-out;
}

.loading-spinner {
  position: relative;
  width: 50px;
  height: 50px;
  margin-bottom: 16px;
  opacity: 0.7;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-ring:nth-child(1) {
  animation-delay: -0.375s;
}

.spinner-ring:nth-child(2) {
  animation-delay: -0.25s;
  border-top-color: var(--accent-glow, rgba(175, 242, 0, 0.45));
  opacity: 0.7;
}

.spinner-ring:nth-child(3) {
  animation-delay: -0.125s;
  border-top-color: var(--accent-soft, rgba(175, 242, 0, 0.16));
  opacity: 0.5;
}

.spinner-ring:nth-child(4) {
  animation-delay: 0s;
  border-top-color: var(--accent);
  opacity: 0.3;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0;
  opacity: 0.5;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.3;
  }
}

/* Hide content until language is loaded */
body:not(.i18n-ready) header,
body:not(.i18n-ready) main,
body:not(.i18n-ready) footer {
  opacity: 0;
  visibility: hidden;
}

body.i18n-ready header,
body.i18n-ready main,
body.i18n-ready footer {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease-in, visibility 0.3s ease-in;
  will-change: opacity;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

/* ========== НАВИГАЦИЯ ========== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 10, 12, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: visible;
}

/* Topbar и footer винаги използват основния цвят на сайта, не accent на плановете */
.topbar { --accent: var(--nav-accent); --accent-soft: var(--nav-accent-soft); --accent-glow: var(--nav-accent-glow); }
.footer { --accent: var(--nav-accent); --accent-soft: var(--nav-accent-soft); --accent-glow: var(--nav-accent-glow); }

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
  overflow: visible;
}
.nav-shell .nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
a.brand {
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--accent), #133b47);
  box-shadow: 0 0 24px var(--accent-glow);
  display: inline-block;
}

.brand-logo {
  height: 40px;
  width: auto;
  max-width: none;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  color: var(--muted);
  overflow: visible;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  padding: 6px 12px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-item > a i:first-child {
  font-size: 0.9rem;
}

.nav-item > a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 1px;
}

.nav-item > a:hover {
  color: var(--text);
  background: transparent;
}

.nav-item > a:hover::after {
  opacity: 1;
}

.nav-item.active > a {
  color: #fff;
  background: transparent;
}

.nav-item.active > a::after {
  opacity: 1;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: rgba(8, 10, 12, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 6px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  z-index: 200;
}

.nav-item.active .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.15s ease;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-dropdown a:first-child {
  border-radius: 8px 8px 0 0;
}

.nav-dropdown a:last-child {
  border-radius: 0 0 8px 8px;
}

.nav-dropdown a i,
.nav-dropdown a .fa {
  font-size: 0.9rem;
  width: 18px;
  text-align: center;
  opacity: 0.85;
}

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

.nav-dropdown a:hover i,
.nav-dropdown a:hover .fa {
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 150;
}

.nav-actions .btn-primary,
.nav-actions #cta-primary {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 4px;
  height: 44px;
  box-sizing: border-box;
}

.lang-btn {
  padding: 0 16px;
  height: 36px;
  min-width: 44px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  background: var(--nav-accent-soft);
  color: var(--nav-accent);
}

.lang-btn .lang-flag {
  display: none;
  vertical-align: middle;
  margin-right: 6px;
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}

.lang-btn.active .lang-flag {
  display: inline-block;
}

.ghost-link {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s;
}

.ghost-link:hover {
  color: var(--text);
}

.btn {
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  transition: transform 0.2s ease;
}

.btn-primary {
  background: var(--nav-accent);
  color: #041118;
}

.btn-promo {
  background: #dc2626 !important;
  color: #ffffff !important;
}

.btn-promo:hover {
  background: #b91c1c !important;
  color: #ffffff !important;
}

.btn-promo:hover {
  background: #b91c1c;
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.hero-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.42);
}

.btn:hover {
  transform: translateY(-2px);
}

.hero {
  padding: 88px 0 88px;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

/* Начална страница – първоначален вид (по-висок hero, пълноценен блок) */
.hero:has(.hero-grid) {
  min-height: 70vh;
  padding: 80px 0 40px;
}

.hero:has(.hero-grid)::after {
  height: 45%;
  min-height: 220px;
}

.hero:has(.hero-grid) .vanta-background {
  min-height: 400px;
}

.hero:has(.hero-grid) .hero-grid {
  gap: 48px;
}

.hero:has(.hero-grid) .hero-trustpilot {
  margin-bottom: 12px;
}

.hero:has(.hero-grid) .hero-content h1 {
  margin: 16px 0 20px;
}

.hero:has(.hero-grid) .hero-actions {
  margin-top: 24px;
}

.hero:has(.hero-grid) .hero-figure {
  padding: 20px;
}

.hero:has(.hero-grid) .hero-art,
.hero:has(.hero-grid) .hero-console {
  height: 360px;
}

.hero:has(.hero-grid) .stats-grid {
  margin-top: 0;
}

/* Плавно преливане от анимирания фон към фона на страницата (за страници без hero-grid) */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 32%;
  min-height: 110px;
  background: linear-gradient(to bottom, transparent 0%, transparent 55%, #0a0c0f 80%, #050607 100%);
  pointer-events: none;
  z-index: 1;
}

/* По-ясна визия за „basic“ хедърите (news, privacy, terms, about и др.) – без hero-grid */
.hero:not(:has(.hero-grid)) {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), #050607 70%);
}

.vanta-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 320px;
  z-index: 0;
  pointer-events: none;
}

/* Затъмняване на анимираните бекграунди – само за телефон */
@media (max-width: 768px) {
  .hero .vanta-background::after,
  .games-hero .vanta-background::after,
  .game-hero-section .game-hero-background::after,
  .features-hero .features-hero-bg::after,
  .partners-hero .partners-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(5, 6, 7, 0.55);
    pointer-events: none;
    z-index: 1;
  }
}

.hero .container.hero-grid {
  position: relative;
  z-index: 2;
}

.games-hero {
  padding: 40px 0 48px;
  text-align: center;
}

/* Без сива сянка – само черно преливане преди съдържанието */
.games-hero::after {
  background: linear-gradient(to bottom, transparent 0%, #050607 55%, #050607 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.hero-grid .hero-content { order: 1; grid-column: 1; grid-row: 1; }
.hero-grid .stats-grid { order: 2; grid-column: 1; grid-row: 2; margin-top: 0; }
.hero-grid .hero-figure { order: 3; grid-column: 2; grid-row: 1 / 3; align-self: center; }
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-grid .hero-content { order: 1; grid-column: 1; grid-row: 1; }
  .hero-grid .stats-grid { order: 2; grid-column: 1; grid-row: 2; }
  .hero-grid .hero-figure { order: 3; grid-column: 1; grid-row: 3; }
  .hero-figure,
  .hero-console {
    display: none !important;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-trustpilot {
  display: inline-block;
  margin-bottom: 8px;
  text-decoration: none;
  line-height: 0;
}
.hero-trustpilot img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.hero-content h1 {
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  margin: 10px 0 14px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.85rem;
}

.rating-stars {
  color: var(--accent);
  letter-spacing: 2px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.stat-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero .stat-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.hero .stat-card .stat-label {
  color: rgba(255, 255, 255, 0.78);
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-figure {
  padding: 12px;
  position: relative;
  z-index: 2;
  perspective: 1200px;
  transform-style: preserve-3d;
}

@media (max-width: 768px) {
  .hero-figure {
    perspective: none;
    transform: none;
  }
  .hero-console {
    transform: none;
  }
}

.hero-art {
  width: 100%;
  height: 280px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(175, 242, 0, 0.35), rgba(16, 20, 26, 0.6));
  border: 4px solid rgba(175, 242, 0, 0.9);
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.hero-console {
  width: 100%;
  height: 280px;
  border-radius: 22px;
  background: rgba(13, 17, 23, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(100, 120, 140, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transform: perspective(1000px) rotateY(-10deg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: "Consolas", "Monaco", "Courier New", monospace;
}

.console-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(13, 17, 23, 0.5);
  border-bottom: 1px solid rgba(100, 120, 140, 0.3);
}

.console-controls {
  display: flex;
  gap: 6px;
}

.console-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.console-dot-red {
  background: #ff5f56;
}

.console-dot-yellow {
  background: #ffbd2e;
}

.console-dot-green {
  background: #27c93f;
}

.console-title {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.console-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--console-text, #c9d1d9);
  background: var(--console-bg, rgba(10, 13, 18, 0.4));
}

.console-body::-webkit-scrollbar {
  width: 8px;
}

.console-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

.console-body::-webkit-scrollbar-thumb {
  background: rgba(175, 242, 0, 0.3);
  border-radius: 4px;
}

.console-line {
  margin: 4px 0;
  opacity: 0;
  animation: consoleFadeIn 0.3s ease-in forwards;
}

.console-line.visible {
  opacity: 1;
}

.console-prompt {
  color: var(--console-prompt, var(--accent));
  margin-right: 8px;
}

.console-text {
  color: var(--console-text, #c9d1d9);
}

.console-text.success {
  color: var(--console-success, #3fb950);
}

.console-text.info {
  color: var(--console-info, #58a6ff);
}

.console-text.warning {
  color: var(--console-warning, #d29922);
}

.console-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent);
  margin-left: 2px;
  animation: consoleBlink 1s infinite;
  vertical-align: middle;
}

@keyframes consoleFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes consoleBlink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

.section {
  padding: 60px 0;
  position: relative;
}

/* Градиентна лента между секции – по средата, прелива в краищата (като след hero на basic страниците) */
main > section + section::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(5, 6, 7, 0.5) 35%,
    rgba(5, 6, 7, 0.65) 50%,
    rgba(5, 6, 7, 0.5) 65%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* Разстояние между hero заглавие и първата секция (Privacy, News, Terms и т.н.) */
.hero:not(:has(.hero-grid)) + .section {
  padding-top: 60px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

/* Блок за игрите: един раздел като news – header + grid */
.games-intro-section .games-intro-desc {
  margin: 0;
}
.games-intro-section .section-header {
  margin-bottom: 24px;
}

.section-header-left {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.section-header-left .section-title,
.section-header-left .section-subtitle {
  text-align: left;
}

.section-kicker {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--accent);
  margin: 0 0 8px;
}

.section-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0 0 8px;
  font-weight: 700;
}

.section-subtitle {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

/* Why section – същият дизайн като картичките „Новини и полезни ресурси“ (post-card) */
.why-section {
  position: relative;
  padding: 48px 0 56px;
  overflow: visible;
}
@media (min-width: 1024px) {
  .why-section {
    padding-top: 24px;
  }
}
.why-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  min-height: 100%;
  pointer-events: none;
  background: #000;
  opacity: var(--why-section-dim, 0);
  z-index: 0;
}
.why-section > .container {
  position: relative;
  z-index: 1;
}
.why-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.why-section-title {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.why-section-intro {
  text-align: center;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 40px;
}
.why-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.why-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
}
.why-card-visual {
  margin-bottom: 0;
}
.why-card-image,
.why-card-icon {
  display: block;
}
.why-card-image {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.why-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.why-card-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.why-card-icon i {
  font-size: 1.6rem;
}
.why-card-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  text-align: center;
}
.why-card-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  padding: 28px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  border-color: var(--accent);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.feature-icon i {
  font-size: 2rem;
  font-weight: normal;
  font-style: normal;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.mods-section,
.features-modules .section,
.features-benefits .mods-section {
  position: relative;
  overflow: visible;
}
.mods-section::before,
.features-modules .section::before,
.features-benefits .mods-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--accent) 12%, transparent), transparent 65%);
  pointer-events: none;
  z-index: -1;
}

.mods-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
}

.mods-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.mods-orbit {
  position: relative;
  min-height: 360px;
  border-radius: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  background: rgba(10, 13, 18, 0.6);
  overflow: hidden;
}

.mods-image-wrap {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mods-image-wrap img {
  max-width: 100%;
  max-height: 360px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

/* Module gradients – плавно преминаване между модули и фон */
#page-modules-container > .section,
#home-page-modules > .section,
.page-modules .section {
  position: relative;
}
#page-modules-container > .section::before,
#home-page-modules > .section::before,
.page-modules .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
#page-modules-container > .section::after,
#home-page-modules > .section::after,
.page-modules .section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Module: Feature showcase */
.module-feature-showcase {
  overflow: hidden;
  background-color: rgba(10, 13, 18, 0.95);
  padding: var(--section-padding, 48px) 0;
}
.module-feature-showcase .module-feature-showcase-bg {
  background-size: cover;
  background-position: center;
}
.module-feature-showcase .fp-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 16px;
  font-weight: 700;
}
.module-feature-showcase .fp-subtitle {
  color: var(--text-muted, rgba(255,255,255,0.8));
  max-width: 600px;
  margin: 0 0 28px;
  line-height: 1.6;
}
.module-feature-showcase .fp-features-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.module-feature-showcase .fp-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.95rem;
}
.module-feature-showcase .fp-feature-item i {
  font-size: 1.2rem;
  color: var(--module-accent, var(--accent));
}

/* Module: FAQ */
.module-faq .faq-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.module-faq .faq-tab {
  padding: 10px 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.module-faq .faq-tab:hover,
.module-faq .faq-tab.active {
  color: var(--module-accent, var(--accent));
  border-bottom-color: var(--module-accent, var(--accent));
}
.module-faq .faq-tabs {
  transition: opacity 0.25s ease;
}
.module-faq .faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.module-faq .faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.module-faq .faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  background: none;
  border: none;
  color: inherit;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  gap: 12px;
  transition: color 0.2s ease;
}
.module-faq .faq-question:hover {
  color: var(--module-accent, var(--accent));
}
.module-faq .faq-question i {
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--module-accent, var(--accent));
  transition: transform 0.3s ease;
}
.module-faq .faq-question[aria-expanded="true"] i {
  transform: rotate(45deg);
}
.module-faq .faq-answer {
  padding: 0;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.25s ease;
}
.module-faq .faq-item.expanded .faq-answer {
  max-height: 500px;
  opacity: 1;
  padding: 0 0 18px;
}
.module-faq .faq-tabs {
  transition: opacity 0.2s ease;
}
.module-faq .faq-tab {
  transition: color 0.2s, border-color 0.2s, transform 0.15s ease;
}
.module-faq .faq-tab:active {
  transform: scale(0.98);
}
.module-faq .faq-cta-wrap {
  margin-top: 24px;
}

/* Module: App preview - device-style frame for screenshots */
.module-app-preview {
  padding: var(--section-padding, 48px) 0;
}
.module-app-preview .app-preview-wrap {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.module-app-preview .app-preview-frame {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15), 0 24px 48px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.05);
  background: var(--bg-elevated, #111318);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.module-app-preview .app-preview-frame:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.2), 0 32px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
}
.module-app-preview .app-preview-frame-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.25) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.module-app-preview .app-preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.module-app-preview .app-preview-dot:nth-child(1) { background: #ff5f56; }
.module-app-preview .app-preview-dot:nth-child(2) { background: #ffbd2e; }
.module-app-preview .app-preview-dot:nth-child(3) { background: #27c93f; }
.module-app-preview .app-preview-inner {
  overflow: hidden;
  line-height: 0;
  background: #0a0c0f;
}
.module-app-preview .app-preview-img {
  width: 100%;
  display: block;
  vertical-align: top;
  object-fit: cover;
}
.module-app-preview .app-preview-caption {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
}
@media (max-width: 768px) {
  .module-app-preview .app-preview-wrap {
    max-width: 100%;
    padding: 0 12px;
  }
  .module-app-preview .app-preview-frame {
    border-radius: 10px;
  }
  .module-app-preview .app-preview-frame-header {
    padding: 10px 14px;
  }
  .module-app-preview .app-preview-dot {
    width: 8px;
    height: 8px;
  }
}

.orbit-card {
  position: absolute;
  min-width: 90px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(16, 20, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
  transform: translate(var(--x), var(--y));
}

.orbit-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
}

.orbit-label {
  font-size: 0.85rem;
  font-weight: 600;
}

.games-scroll {
  overflow-x: auto;
  padding-bottom: 6px;
}

.games-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 18px;
  padding-bottom: 6px;
}

.game-card {
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.game-out-of-stock {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
}

.game-out-of-stock::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 18px;
  z-index: 1;
  pointer-events: none;
}

.game-out-of-stock-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #6b7280;
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border-color: var(--accent);
}

.game-out-of-stock:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}

.games-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.games-grid-full .game-card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  position: relative;
  min-height: auto;
}

.games-grid-full .game-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(175, 242, 0, 0.3);
  transform: translateY(-4px);
}

.games-grid-full .game-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.games-grid-full .game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.games-grid-full .game-card:hover .game-card-image img {
  transform: scale(1.05);
}

.games-grid-full .game-card-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  background: var(--card);
}

.games-grid-full .game-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  color: var(--text);
}

.games-grid-full .game-price {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 500;
}

.games-grid-full .game-platforms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: auto;
}

.games-grid-full .game-platforms i {
  font-size: 1.2rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.games-grid-full .game-card:hover .game-platforms i {
  color: var(--accent);
}

.games-search-container {
  margin-top: 30px;
  margin-bottom: 28px;
}

.games-search-input {
  width: 100%;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.games-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(175, 242, 0, 0.1);
}

.games-search-input::placeholder {
  color: var(--muted);
}

.game-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  z-index: 2;
  max-width: calc(100% - 24px);
}

.game-badge {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #041118;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.25),
    0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  position: relative;
  overflow: hidden;
  transform: rotate(-3deg);
  transform-origin: center;
  border: none;
  backdrop-filter: blur(10px);
}

/* Alternate rotation for variety */
.game-badge:nth-child(even) {
  transform: rotate(2deg);
}

.game-badge:nth-child(3n) {
  transform: rotate(-2deg);
}

/* Gradient overlay that fades to transparent */
.game-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.1) 30%,
    transparent 70%,
    transparent 100%
  );
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

/* Gradient that fades into the background image */
.game-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 40%,
    rgba(0, 0, 0, 0.1) 100%
  );
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.game-badge span {
  position: relative;
  z-index: 2;
}

/* Shine effect on hover */
.games-grid-full .game-card:hover .game-badge {
  transform: rotate(0deg) scale(1.08) translateY(-3px);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.35),
    0 3px 10px rgba(0, 0, 0, 0.2);
  z-index: 3;
}

.games-grid-full .game-card:hover .game-badge::before {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.15) 30%,
    transparent 70%,
    transparent 100%
  );
}

.games-grid-full .game-card:hover .game-badge:nth-child(even) {
  transform: rotate(0deg) scale(1.08) translateY(-3px);
}

.games-grid-full .game-card:hover .game-badge:nth-child(3n) {
  transform: rotate(0deg) scale(1.08) translateY(-3px);
}

/* Game Detail Page Styles */
.game-hero-section {
  position: relative;
  padding: 40px 0 24px;
  background: var(--bg);
  overflow: hidden;
}

.game-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  /* Gradient mask that fades to transparent at bottom */
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0) 100%);
  /* Blur effect */
  filter: blur(20px);
  -webkit-filter: blur(20px);
  transform: scale(1.1);
}

.game-hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: start;
}

.game-hero-image {
  position: relative;
}

.game-hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.game-rating {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 0.85rem;
}

.rating-stars {
  color: #ffd700;
  display: flex;
  gap: 2px;
}

.rating-text {
  color: var(--text);
  font-weight: 600;
}

.game-hero-content {
  flex: 1;
}

.game-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin: 0 0 20px;
  color: var(--text);
  line-height: 1.2;
}

.game-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.game-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 0.95rem;
}

.game-feature-item i {
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Plans Section */
.plans-section {
  padding: 60px 0;
}

/* Web Hosting Specific Styles */
.webhosting-plans-section {
  padding: 60px 0;
}

.webhosting-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.webhosting-plans-grid .plan-card {
  animation: fadeInUp 0.4s ease-out;
  animation-fill-mode: both;
}

.webhosting-plans-grid .plan-card:nth-child(1) {
  animation-delay: 0.05s;
}

.webhosting-plans-grid .plan-card:nth-child(2) {
  animation-delay: 0.1s;
}

.webhosting-plans-grid .plan-card:nth-child(3) {
  animation-delay: 0.15s;
}

.webhosting-plans-grid .plan-card:nth-child(4) {
  animation-delay: 0.2s;
}

.webhosting-plans-grid .plan-card:nth-child(5) {
  animation-delay: 0.25s;
}

.webhosting-plans-grid .plan-card:nth-child(6) {
  animation-delay: 0.3s;
}

.webhosting-plan-card {
  position: relative;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.webhosting-plan-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(175, 242, 0, 0.15);
}

.webhosting-plan-popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(175, 242, 0, 0.2);
}

.webhosting-plan-popular:hover {
  box-shadow: 0 0 0 2px rgba(175, 242, 0, 0.3), 0 8px 24px rgba(175, 242, 0, 0.15);
}

.webhosting-plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #041118;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  z-index: 1;
  box-shadow: none;
  white-space: nowrap;
}

.webhosting-plan-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: visible;
  flex: 1;
  min-height: 0;
}


.webhosting-features-section {
  padding: 60px 0;
  background: rgba(255, 255, 255, 0.01);
}

.webhosting-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.webhosting-feature-card {
  padding: 28px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s ease;
}

.webhosting-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  border-color: var(--accent);
}

.webhosting-feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.webhosting-feature-icon i {
  font-size: 2rem;
}

.webhosting-feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
}

.webhosting-feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* Bot hosting features (languages) – image left, name + description right */
.bot-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .bot-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .bot-features-grid {
    grid-template-columns: 1fr;
  }
}

.bot-feature-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 24px 18px 24px;
  border-radius: 16px;
  background: rgba(14, 17, 22, 0.98);
  border: 1px solid var(--border);
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
  backdrop-filter: blur(10px);
}

/* Gradient will be applied via inline style from JavaScript - inline styles have higher specificity */
.bot-feature-card[data-has-gradient="true"] {
  /* Gradient applied via inline style */
}

.bot-feature-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #041118;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  pointer-events: none;
}

/* Card with badge – same border/glow as plan recommended */
.bot-feature-card:has(.bot-feature-badge) {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft, rgba(175, 242, 0, 0.2));
}

.bot-feature-card:has(.bot-feature-badge):hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px var(--accent-glow, rgba(175, 242, 0, 0.15));
}

.bot-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  border-color: var(--accent);
}

.bot-feature-media {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bot-feature-media:has(img) {
  background: transparent;
}

.bot-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bot-feature-media.bot-feature-icon i {
  font-size: 2.25rem;
}

.bot-feature-content {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.bot-feature-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
  text-align: left;
}

.bot-feature-content p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
  text-align: left;
}

/* Bot control panel showcase (Mac window + carousel) */
/* Bot Panel Showcase Carousel */
.bot-carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 44px;
}

.bot-carousel-track {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 500px;
  overflow: hidden;
}

.bot-carousel-slide {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.bot-carousel-slide.active {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  opacity: 1 !important;
  transform: translateX(0) scale(1);
}

.bot-carousel-slide.prev-slide {
  left: 0;
  z-index: 1;
  width: auto;
  height: auto;
  opacity: 0.7;
  transform: translateX(0) scale(0.9);
  pointer-events: auto;
  align-items: center;
}

.bot-carousel-slide.next-slide {
  right: 0;
  z-index: 1;
  width: auto;
  height: auto;
  opacity: 0.7;
  transform: translateX(0) scale(0.9);
  pointer-events: auto;
  align-items: center;
}

.bot-carousel-slide-image-wrapper {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  border: 2px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  margin-bottom: 16px;
}

.bot-carousel-slide.active .bot-carousel-slide-image-wrapper {
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  background: var(--bg);
  position: relative;
  z-index: 10;
}

.bot-carousel-slide.prev-slide .bot-carousel-slide-image-wrapper,
.bot-carousel-slide.next-slide .bot-carousel-slide-image-wrapper {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin: 0;
  padding: 0;
  width: auto;
  height: auto;
  overflow: hidden;
  display: inline-block;
}

.bot-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.bot-carousel-slide.active img {
  min-height: 520px;
  object-fit: contain;
}

.bot-carousel-slide.prev-slide img,
.bot-carousel-slide.next-slide img {
  width: auto;
  height: auto;
  max-width: 400px;
  max-height: 500px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.bot-carousel-slide-description {
  text-align: center;
  padding: 0;
  max-width: 100%;
  display: none;
}

.bot-carousel-slide.active .bot-carousel-slide-description {
  display: block;
  max-width: 600px;
  margin: 0 auto;
}

.bot-carousel-slide-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.bot-carousel-slide-text {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.bot-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(10, 13, 18, 0.8);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  font-size: 18px;
  font-weight: 300;
  z-index: 10;
}

.bot-carousel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  transform: translateY(-50%) scale(1.1);
}

.bot-carousel-prev {
  left: 0;
}

.bot-carousel-next {
  right: 0;
}

.bot-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
  padding: 0;
}

.bot-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  margin: 0;
}

.bot-carousel-dot:hover {
  background: rgba(255, 255, 255, 0.4);
}

.bot-carousel-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  width: 24px;
  border-radius: 5px;
}

@media (max-width: 900px) {
  .bot-carousel-container {
    padding: 0 16px;
    display: grid;
    grid-template-rows: 1fr auto;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0;
  }
  .bot-carousel-track {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 380px;
  }
  .bot-carousel-prev {
    grid-column: 1;
    grid-row: 2;
    position: static;
    transform: none;
    justify-self: start;
    align-self: center;
    margin-top: 12px;
  }
  .bot-carousel-next {
    grid-column: 3;
    grid-row: 2;
    position: static;
    transform: none;
    justify-self: end;
    align-self: center;
    margin-top: 12px;
  }
  .bot-carousel-dots {
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
    align-self: center;
    margin-top: 12px;
  }
  .bot-carousel-slide.prev-slide,
  .bot-carousel-slide.next-slide {
    display: none;
  }
  .bot-carousel-slide.active {
    max-width: 100%;
  }
  .bot-carousel-slide.active img {
    min-height: 340px;
  }
  .bot-carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}

/* Plan Selector Wizard */
.plan-selector-wizard {
  margin-bottom: 32px;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

.wizard-step-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
  color: var(--text);
}

.server-type-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.server-type-btn {
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.server-type-btn:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.server-type-btn.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.server-type-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.server-type-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.server-type-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.server-type-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.server-type-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.version-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.version-btn {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text);
  font-weight: 600;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.version-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.version-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.version-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #041118;
  box-shadow: 0 0 0 3px var(--accent-soft, rgba(175, 242, 0, 0.2));
  transform: translateY(-2px);
}

.version-btn.version-best {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 2px var(--accent-soft, rgba(175, 242, 0, 0.2)), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.version-btn.version-best:hover {
  box-shadow: 0 0 0 2px var(--accent-soft, rgba(175, 242, 0, 0.3)), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.version-btn.version-no-plans {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.version-btn.version-no-plans:hover {
  border-color: var(--border);
  background: var(--card);
  transform: none;
  box-shadow: none;
}

.version-badge {
  font-size: 0.7rem;
  background: var(--accent);
  color: #041118;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.players-slider-container {
  margin-bottom: 32px;
}

.players-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--bg-elevated);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.players-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  transition: all 0.2s ease;
}

.players-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.players-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.players-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

.players-display {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 16px;
}

.wizard-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.wizard-back-btn,
.wizard-find-btn {
  margin: 0;
}

/* План селектор: използва акцента на страницата (--accent), не дефолтния */
.wizard-find-btn {
  background: var(--accent) !important;
  color: #041118 !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px var(--accent-soft, rgba(175, 242, 0, 0.2)) !important;
}
.wizard-find-btn:hover {
  box-shadow: 0 0 0 3px var(--accent-soft, rgba(175, 242, 0, 0.3)), 0 4px 12px var(--accent-glow, rgba(175, 242, 0, 0.25)) !important;
}
.wizard-back-btn:hover {
  border-color: var(--accent) !important;
  background: var(--accent-soft, rgba(175, 242, 0, 0.08)) !important;
  color: var(--accent) !important;
}

/* Find again – акцент на страницата */
#find-again-btn {
  background: var(--accent) !important;
  color: #041118 !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px var(--accent-soft, rgba(175, 242, 0, 0.2)) !important;
}
#find-again-btn:hover {
  box-shadow: 0 0 0 3px var(--accent-soft, rgba(175, 242, 0, 0.3)), 0 4px 12px var(--accent-glow, rgba(175, 242, 0, 0.25)) !important;
}

.plan-highlighted {
  border-color: var(--accent) !important;
  box-shadow: 0 0 20px var(--accent-glow, rgba(175, 242, 0, 0.12)) !important;
  animation: plan-pulse-glow 2s ease-in-out infinite;
}

/* Single selected plan from plan selector: same width/height as other cards, no squeezed middle */
.plan-selected {
  border-color: var(--accent) !important;
  box-shadow: 0 0 20px var(--accent-glow, rgba(175, 242, 0, 0.12)) !important;
  animation: plan-pulse-glow 2s ease-in-out infinite;
  padding: 20px !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.plan-selected .plan-content {
  gap: 14px !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

.plan-selected .plan-features-list {
  display: grid !important;
  grid-auto-flow: row !important;
  grid-template-columns: repeat(2, 1fr) !important;
  grid-template-rows: none !important;
  gap: 6px 16px !important;
  max-height: none !important;
  overflow: visible !important;
  flex: 1 !important;
  align-content: start !important;
}

.plan-selected .plan-features-list::-webkit-scrollbar {
  width: 4px !important;
}

.plan-selected .plan-features-list::-webkit-scrollbar-thumb {
  background: var(--accent) !important;
  border-radius: 2px !important;
}

.plan-selected .plan-header {
  gap: 12px !important;
}

.plan-selected .plan-header i {
  font-size: 2rem !important;
  width: 40px !important;
  height: 40px !important;
}

.plan-selected .plan-icon-image {
  width: 64px !important;
  height: 64px !important;
}

.plan-selected .plan-title {
  font-size: 1.5rem !important;
}

.plan-selected .plan-description {
  font-size: 0.9rem !important;
  line-height: 1.4 !important;
}

.plan-selected .plan-pricing {
  gap: 4px !important;
  margin: 4px 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.plan-selected .plan-specs {
  padding: 8px 12px !important;
  gap: 8px !important;
  margin: 0 !important;
  border-radius: 12px !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
}

.plan-selected .plan-feature-item {
  font-size: 0.95rem !important;
  gap: 8px !important;
}

.plan-selected .plan-feature-item i {
  font-size: 1rem !important;
}

.plan-selected .plan-selected-badge {
  padding: 4px 12px !important;
  font-size: 0.65rem !important;
  top: -8px !important;
}

.plan-selected .price-amount {
  font-size: 1.6rem !important;
}

.plan-selected .price-period {
  font-size: 0.95rem !important;
}

.plan-selected .spec-value {
  font-size: 0.9rem !important;
}

.plan-selected .spec-label {
  font-size: 0.7rem !important;
}

.plan-selected .btn-plan {
  padding: 14px 28px !important;
  font-size: 1rem !important;
  margin-top: auto !important;
}

.plan-selected .plan-processor {
  font-size: 0.85rem !important;
  margin-top: 6px !important;
  margin-bottom: 0 !important;
}

.plan-selected .plan-price-first {
  font-size: 0.95rem !important;
}

.plan-selected .plan-spec-item {
  gap: 6px !important;
  padding: 4px !important;
}

.plan-selected .plan-spec-item i {
  font-size: 1.25rem !important;
}

.plan-selected .extra-discount-badge {
  font-size: 0.75rem !important;
  padding: 3px 8px !important;
  margin-left: 8px !important;
}

.plan-selected-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #041118;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  z-index: 1;
  box-shadow: none;
  white-space: nowrap;
}

@keyframes plan-pulse {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(175, 242, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(175, 242, 0, 0.1);
  }
}

/* Single contour + soft glow for selected plan (no double outline) */
@keyframes plan-pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px var(--accent-glow, rgba(175, 242, 0, 0.12));
  }
  50% {
    box-shadow: 0 0 28px var(--accent-glow, rgba(175, 242, 0, 0.2));
  }
}

.plans-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.billing-toggle {
  display: flex;
  gap: 8px;
  background: var(--card);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.billing-btn {
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  position: relative;
}

.billing-btn.active {
  background: var(--accent);
  color: #041118;
  transform: scale(1.02);
}

.billing-btn:hover:not(.active) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.discount-badge {
  background: transparent;
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-left: 4px;
  box-shadow: none;
}

.billing-btn.active .discount-badge {
  color: #041118;
}

.plans-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* plans-controls--game: billing + plans-actions */
@media (min-width: 769px) {
  .plans-controls--game {
    justify-content: space-between;
  }
}

.switch-edition-btn {
  display: flex;
  align-items: center;
  gap: 6px;
}


.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* When only one plan is shown, use same width as grid cell (no narrow card) */
.plans-grid .plan-card.plan-selected:only-child {
  max-width: none;
}

.plans-grid .plan-card {
  animation: fadeInUp 0.4s ease-out;
  animation-fill-mode: both;
}

.plans-grid .plan-card:nth-child(1) {
  animation-delay: 0.05s;
}

.plans-grid .plan-card:nth-child(2) {
  animation-delay: 0.1s;
}

.plans-grid .plan-card:nth-child(3) {
  animation-delay: 0.15s;
}

.plans-grid .plan-card:nth-child(4) {
  animation-delay: 0.2s;
}

.plans-grid .plan-card:nth-child(5) {
  animation-delay: 0.25s;
}

.plans-grid .plan-card:nth-child(6) {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.plan-card {
  position: relative;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  overflow: visible;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.plan-countdown-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #dc2626;
  color: #ffffff !important;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.3px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
  animation: countdown-pulse 2s ease-in-out infinite;
  white-space: nowrap;
  min-width: 55px;
  text-align: center;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes countdown-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
  }
}

.plan-background-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0.3;
  filter: blur(10px);
  -webkit-filter: blur(10px);
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.plan-background-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 30%,
    var(--card) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.plan-recommended:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px var(--accent-glow, rgba(175, 242, 0, 0.15));
}

.plan-recommended {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft, rgba(175, 242, 0, 0.2));
}

.plan-recommended-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #041118;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  z-index: 1;
  box-shadow: none;
  white-space: nowrap;
}

.plan-free {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft, rgba(175, 242, 0, 0.2));
}

.plan-free:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px var(--accent-glow, rgba(175, 242, 0, 0.15));
}

.plan-promo {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.plan-promo:hover {
  border-color: #dc2626;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.15);
}

.plan-promo-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #dc2626;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  z-index: 1;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3);
  white-space: nowrap;
  animation: discount-badge-pulse 2s ease-in-out infinite;
}

.plan-out-of-stock-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #6b7280;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.plan-out-of-stock {
  opacity: 0.6;
  position: relative;
  pointer-events: none;
}

.plan-out-of-stock::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  z-index: 1;
  pointer-events: none;
}

.plan-free-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #041118;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  z-index: 1;
  box-shadow: none;
  white-space: nowrap;
}

.plan-free-pulse {
  animation: free-text-pulse 2s ease-in-out infinite;
  display: inline-block;
  transform-origin: center;
}

@keyframes free-text-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

.plan-free-label {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.plan-price-after-free {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

@keyframes discount-badge-pulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3);
  }
  50% {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.15);
  }
}

.plan-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: visible;
  flex: 1;
  min-height: 0;
}

.plan-header {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.plan-header i {
  font-size: 1.8rem;
  color: var(--accent);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Икони като img (вкл. GIF) – да не се скриват от родител */
.plan-icon-image {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  object-fit: contain;
  flex-shrink: 0;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 1;
}

.plan-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.plan-description {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

.plan-pricing {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0;
}

.plan-price-first {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  opacity: 0.7;
}

.plan-price-strikethrough {
  text-decoration: line-through;
}

.plan-savings {
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
  margin-left: 8px;
}

.plan-price-recurring {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin: 8px 0;
  flex-wrap: wrap;
}

.extra-discount-badge {
  background: #dc2626;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 8px;
  white-space: nowrap;
  align-self: center;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.3);
  animation: extra-discount-badge-pulse 2s ease-in-out infinite;
}

@keyframes extra-discount-badge-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.3);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15);
  }
}

.price-amount {
  font-size: 1.5rem;
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-light, #7cff00) 25%,
    var(--accent) 50%,
    var(--accent-light, #7cff00) 75%,
    var(--accent) 100%
  );
  background-size: 200% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glass-reflection 4s ease-in-out infinite;
  position: relative;
}

@keyframes glass-reflection {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.price-period {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.plan-processor {
  font-size: 0.85rem;
  color: var(--accent);
  margin-top: 4px;
  font-weight: 500;
}

.plan-specs {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin: 12px 0;
}

.plan-spec-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.plan-spec-item:last-child {
  border-right: none;
}

/* Web Hosting: grid for 4–6+ params (storage, bandwidth, domains, email, ssl, support) */
.plan-card-webhosting .plan-specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px 12px;
}

.plan-card-webhosting .plan-spec-item {
  flex: none;
  border-right: none;
  padding: 4px 0;
  min-width: 0;
}

.plan-spec-item i {
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
}

.spec-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.plan-card-webhosting .spec-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spec-label {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
}

.plan-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.9rem;
}

.plan-feature-item i {
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}

.plan-billing {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

.btn-plan {
  width: 100%;
  margin-top: auto;
  padding: 12px 24px;
  background: var(--accent);
  border: none;
  color: #041118;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-free {
  background: var(--accent) !important;
  color: #041118 !important;
}

.btn-free:hover {
  background: var(--accent) !important;
  color: #041118 !important;
}

.btn-plan.btn-free {
  background: var(--accent) !important;
  color: #041118 !important;
}

.btn-plan.btn-free:hover {
  background: var(--accent) !important;
  color: #041118 !important;
}

.btn-plan.btn-promo {
  background: #dc2626 !important;
  color: #ffffff !important;
}

.btn-plan.btn-promo:hover {
  background: #b91c1c !important;
  color: #ffffff !important;
}

.btn-plan:hover {
  background: var(--accent);
  color: #041118;
  transform: translateY(-2px);
}

.btn-custom {
  background: linear-gradient(135deg, rgba(175, 242, 0, 0.1), rgba(175, 242, 0, 0.05));
  border-color: var(--accent);
}

.btn-custom:hover {
  background: var(--accent);
}

@media (max-width: 768px) {
  .game-hero-container {
    grid-template-columns: 1fr;
  }
  
  .game-hero-image {
    max-width: 200px;
    margin: 0 auto;
  }
  
  .plans-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .plans-grid {
    grid-template-columns: 1fr;
  }
}

.game-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

.game-tag {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
}

.locations-container {
  margin-top: 24px;
}

.locations-panel-wrapper {
  width: 100%;
}

.location-info-card {
  padding: 20px;
  border-radius: 0;
  background: transparent;
  border: none;
  width: 100%;
}


.location-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-radius: 0;
  background: transparent;
  margin-bottom: 0;
  transition: background 0.2s ease;
}

.location-item:hover {
  background: transparent;
}

.location-flag {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.flag-netherlands {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.flag-stripe {
  flex: 1;
  width: 100%;
}

.flag-red {
  background: #AE1C28;
}

.flag-white {
  background: #FFFFFF;
}

.flag-blue {
  background: #21468B;
}

.location-details {
  flex: 1;
  min-width: 0;
}

.location-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.location-city {
  font-size: 0.8rem;
  color: var(--accent);
}




.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.location-card {
  padding: 20px;
  border-radius: 16px;
  background: rgba(14, 17, 22, 0.85);
  border: 1px solid var(--border);
}

.location-card h3 {
  margin: 0 0 8px;
}

.location-card p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 640px) {
  .location-info-card {
    padding: 16px;
  }
  
  .location-spec-item-detailed {
    padding: 10px;
  }
  
  .location-item {
    padding: 10px;
  }
  
  .webhosting-plans-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .webhosting-plan-card {
    padding: 24px;
  }
  
  .webhosting-features-grid {
    grid-template-columns: 1fr;
  }

  .bot-features-grid {
    grid-template-columns: 1fr;
  }
}

.tag-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(175, 242, 0, 0.12);
  color: var(--accent);
  font-size: 0.85rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Partners page hero – по-компактен хедър */
/* Features page – hero с фон, blur и затъмняване (като partners) */
.features-hero {
  position: relative;
  padding: 48px 0 36px;
  min-height: 220px;
  text-align: center;
  overflow: hidden;
}
.features-hero .features-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(var(--features-hero-blur, 0px));
  transform: scale(1.05);
  z-index: 0;
}
.features-hero .features-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--features-hero-dim, 0.55));
}
.features-hero > .container {
  position: relative;
  z-index: 1;
}
.features-hero .section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 16px 0 20px;
}
.features-hero .hero-subtitle {
  max-width: 700px;
  margin: 0 auto 20px;
}

/* Секция за предимства – подходяща за изброяване */
.features-benefits {
  padding-top: 48px;
  padding-bottom: 56px;
  overflow: visible;
}
.features-benefits > .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.features-modules {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
}
/* Carousel & features sections on /features need full width and proper layout */
.features-modules .bot-panel-showcase-section,
.features-modules .bot-hosting-features-section {
  width: 100%;
  padding: 48px 0;
  overflow: visible;
}
.features-modules .bot-panel-showcase-section .container,
.features-modules .bot-hosting-features-section .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.features-modules .bot-carousel-container {
  padding: 0 56px;
}
.features-modules .bot-carousel-track {
  min-height: 400px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.features-modules .bot-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 800px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
}
.features-modules .bot-carousel-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.features-modules .bot-carousel-slide-image-wrapper {
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  border: 2px solid var(--border);
}
.features-modules .bot-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 280px;
}
.features-modules .bot-features-grid {
  margin: 0 auto;
}
.features-benefits .module-feature-showcase,
.features-benefits .module-faq,
.features-benefits .mods-section {
  padding: 32px 0;
}
.features-benefits .section-header-left .section-kicker {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.features-benefits .section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 12px;
}
.features-benefits .section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
.features-benefits .fp-features-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.features-benefits .fp-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.features-benefits .fp-feature-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.features-benefits .fp-feature-item i {
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
}
.features-benefits .fp-feature-item span {
  font-size: 0.95rem;
  font-weight: 500;
}

/* Секция карта с локации на началната страница */
.locations-map-section {
  position: relative;
  padding-top: 48px;
  padding-bottom: 56px;
  overflow: visible;
}
.locations-map-section.locations-map-section--has-bg {
  overflow: visible;
}
.locations-map-section .locations-map-bg {
  display: none; /* shown via JS when background_image is set */
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(var(--locations-map-blur, 0px));
  transform: scale(1.05);
}
.locations-map-section .locations-map-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--locations-map-dim, 0.5));
  pointer-events: none;
}
.locations-map-section .locations-map-bg::after {
  content: none;
}
.locations-map-section.locations-map-section--has-bg {
  min-height: 320px;
}
.locations-map-section .locations-map-inner {
  position: relative;
  z-index: 2;
}
.locations-map-section .map-pin--premium {
  color: var(--locations-map-accent, #3b82f6);
}
.locations-map-section .section-header.locations-map-header {
  margin-bottom: 4px;
}
.locations-map-section .locations-map-header .section-kicker {
  margin-bottom: 8px;
}
.locations-map-section .locations-map-header .section-title {
  margin: 0 0 8px;
}
.locations-map-section .locations-map-header .section-subtitle {
  margin: 0;
}

/* Reviews section – същата структура като картата (фон, blur, dim, fade) */
.reviews-section {
  position: relative;
  padding-top: 48px;
  padding-bottom: 56px;
  overflow: visible;
}
.reviews-section.reviews-section--has-bg {
  overflow: visible;
  min-height: 280px;
}
.reviews-section .reviews-bg {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(var(--reviews-blur, 0px));
  transform: scale(1.05);
}
.reviews-section .reviews-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--reviews-dim, 0.5));
  pointer-events: none;
}
.reviews-section .reviews-bg-fade {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0.5;
  pointer-events: none;
  background-image:
    linear-gradient(to bottom, #050607 0%, rgba(5, 6, 7, 0.95) 5%, rgba(5, 6, 7, 0.6) 15%, transparent 35%),
    linear-gradient(to top,     #050607 0%, rgba(5, 6, 7, 0.95) 5%, rgba(5, 6, 7, 0.6) 15%, transparent 35%),
    linear-gradient(to right,   #050607 0%, rgba(5, 6, 7, 0.95) 5%, rgba(5, 6, 7, 0.6) 15%, transparent 35%),
    linear-gradient(to left,    #050607 0%, rgba(5, 6, 7, 0.95) 5%, rgba(5, 6, 7, 0.6) 15%, transparent 35%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: top, bottom, right, left;
}
.reviews-section .reviews-inner {
  position: relative;
  z-index: 2;
}
.reviews-section .reviews-header .section-kicker {
  color: var(--reviews-accent, var(--accent));
}
.reviews-section .reviews-header .section-title {
  margin: 0 0 8px;
}
.reviews-section .reviews-header .section-subtitle {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  min-height: 1em;
}
.reviews-section .reviews-inner {
  overflow: visible;
}
.reviews-section .reviews-header {
  max-width: min(1140px, 92vw);
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

/* Home modules wrap – без фон, без излишна ивица между Why и Locations */
.home-page-modules-wrap {
  background: transparent !important;
}
/* Празна секция за модули – напълно свита когато няма модули, не обърква градиента */
.home-page-modules-wrap.home-page-modules-empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  border: none !important;
  background: none !important;
}
/* Няма празна ивица между картичките (Why) и мапа – мапът започва веднага след празния wrap */
.home-page-modules-wrap.home-page-modules-empty + .locations-map-section {
  padding-top: 0;
  margin-top: 0;
}

/* Homepage About секция – между „Без усложнения“ и картата */
.home-about-section {
  position: relative;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.85), #050607 70%);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  border-bottom: 1px solid rgba(15, 23, 42, 0.8);
}
.home-about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0), rgba(0, 0, 0, var(--home-about-dim, 0)));
  z-index: 0;
}
.home-about-section > .container {
  position: relative;
  z-index: 1;
}
.home-about-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}
.home-about-text {
  flex: 2 1 320px;
  min-width: 0;
  max-width: 640px;
}
.home-about-body {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
}
.home-about-body p {
  margin: 0 0 12px;
}
.home-about-highlight {
  flex: 1 1 260px;
  min-width: 0;
  padding: 20px 0 18px;
  background: none;
}
.home-about-highlight-title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.home-about-highlight-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.home-about-highlight-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text);
}
.home-about-highlight-list li i {
  color: var(--accent);
  font-size: 0.9rem;
}
.home-about-image {
  margin-top: 20px;
  width: 100%;
  max-width: 520px;
  border-radius: 14px;
  overflow: hidden;
  border: none;
  background: none;
}
.home-about-image img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .home-about-inner {
    gap: 24px;
  }
}

.locations-map-section {
  background-color: var(--locations-map-section-bg, #0f172a);
}
.reviews-section {
  background-color: var(--reviews-section-bg, #1a1a2e);
}
.games-intro-section,
.page-content-section,
.news-section {
  position: relative;
}

.reviews-carousel-wrap {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  overflow: visible;
  box-sizing: border-box;
}
.reviews-carousel {
  position: relative;
  overflow: hidden;
}
.reviews-carousel-track {
  display: flex;
  transition: transform 0.35s ease-out;
}
.reviews-carousel-slide {
  flex: 0 0 33.333%;
  min-width: 0;
  padding: 28px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.reviews-carousel-slide .reviews-quote {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 10em;
  overflow-y: auto;
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: normal;
}
.reviews-rating {
  margin-bottom: 12px;
}
.reviews-stars-wrap {
  position: relative;
  display: inline-block;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.reviews-stars-outline {
  display: inline-block;
  user-select: none;
}
.reviews-stars-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  overflow: hidden;
  width: 0;
  white-space: nowrap;
}
.reviews-stars-fill .reviews-star {
  display: inline-block;
  color: var(--reviews-star-color);
  opacity: 0;
}
.reviews-stars-fill.reviews-stars--animate .reviews-star {
  animation: reviews-star-appear 0.5s ease-out forwards;
}
@keyframes reviews-star-appear {
  0% { opacity: 0; transform: scale(0.3); }
  55% { transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}
.reviews-quote {
  margin: 0 0 20px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
  border-left: 3px solid var(--reviews-accent, var(--accent));
  padding-left: 16px;
}
.reviews-author-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.reviews-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.reviews-author {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--text);
}
.reviews-role {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
}
.reviews-carousel-prev,
.reviews-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: 2;
  transition: background 0.2s, color 0.2s;
}
.reviews-carousel-prev:hover:not(:disabled),
.reviews-carousel-next:hover:not(:disabled) {
  background: var(--border);
  color: var(--accent);
}
.reviews-carousel-prev:disabled,
.reviews-carousel-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.reviews-carousel-prev {
  left: -20px;
}
.reviews-carousel-next {
  right: -20px;
}
.reviews-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding-bottom: 8px;
}
.reviews-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.reviews-carousel-dot:hover {
  background: var(--border);
}
.reviews-carousel-dot.active {
  background: var(--reviews-accent, var(--accent));
  border-color: var(--reviews-accent, var(--accent));
  transform: scale(1.2);
}

/* News carousel (homepage) */
.news-carousel-wrap {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 56px;
  overflow: visible;
  box-sizing: border-box;
}
.news-carousel {
  position: relative;
  overflow: hidden;
}
.news-carousel-track {
  display: flex;
  transition: transform 0.35s ease-out;
  gap: 16px;
}
.news-carousel-slide {
  min-width: 0;
  flex-shrink: 0;
  box-sizing: border-box;
  display: flex;
  padding: 0;
}
.news-carousel-slide.post-card {
  width: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
}
.post-card--home {
  min-height: 0;
}
.post-card--home .post-card-image {
  border-radius: 0;
  width: 100%;
  flex: 0 0 auto;
  padding: 0;
  margin: 0;
}
.post-card--home .post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: top;
}
.post-card--home .post-card-content {
  padding: 20px 22px;
}
.news-carousel-prev,
.news-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: 2;
  transition: background 0.2s, color 0.2s;
}
.news-carousel-prev:hover:not(:disabled),
.news-carousel-next:hover:not(:disabled) {
  background: var(--border);
  color: var(--accent);
}
.news-carousel-prev:disabled,
.news-carousel-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.news-carousel-prev { left: 0; }
.news-carousel-next { right: 0; }
.news-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.news-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.news-carousel-dot:hover { background: var(--border); }
.news-carousel-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.2);
}

/* Desktop: News картички – еднакви размери, консистентен padding */
@media (min-width: 901px) {
  .news-carousel-track {
    gap: 24px;
  }
  .news-carousel-slide {
    padding: 0;
  }
  .news-carousel-slide.post-card {
    min-width: 0;
  }
  .post-card--home {
    min-height: 380px;
  }
  .post-card--home .post-card-content {
    flex: 1;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .post-card--home .post-card-image {
    min-height: 180px;
    max-height: 200px;
  }
}

@media (max-width: 900px) {
  .news-carousel-slide { padding: 0; }
}
@media (max-width: 600px) {
  .news-carousel-wrap { padding: 0 56px; }
  .news-carousel-track { gap: 0; }
  .news-carousel-slide { padding: 0; }
  .news-carousel-prev { left: 8px; }
  .news-carousel-next { right: 8px; }
}

.world-map-wrap {
  position: relative;
  max-width: 65%;
  margin: 0 auto;
  overflow: visible;
}
.locations-map-refresh-ping {
  position: absolute;
  top: 50%;
  right: -52px;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.locations-map-refresh-ping:hover {
  background: var(--bg-elevated);
}
.locations-map-refresh-ping:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.locations-map-refresh-ping:not(:disabled):active {
  transform: translateY(-50%) scale(0.95);
}
@media (max-width: 900px) {
  .locations-map-refresh-ping {
    right: 8px;
    top: 8px;
    transform: none;
  }
  .locations-map-refresh-ping:not(:disabled):active {
    transform: scale(0.95);
  }
}
.world-map-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.world-map-pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.world-map-pins .map-pin-wrap {
  position: absolute;
  pointer-events: auto;
  transform: translate(-50%, -100%);
  z-index: 2;
  cursor: pointer;
}
@keyframes map-pin-pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
  }
  50% {
    transform: scale(1.04);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
  }
}
.world-map-pins .map-pin {
  font-size: 1.5rem;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
  transition: transform 0.2s ease, filter 0.2s ease;
  animation: map-pin-pulse 2.5s ease-in-out infinite;
}
.world-map-pins .map-pin-wrap:hover .map-pin,
.world-map-pins .map-pin-wrap.active .map-pin {
  animation: none;
  transform: scale(1.06);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}
.map-pin--premium {
  color: #3b82f6;
}
.map-pin--budget {
  color: var(--muted);
}
.map-pin-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  white-space: nowrap;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}
.map-pin-wrap:hover .map-pin-tooltip,
.map-pin-wrap.active .map-pin-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-8px);
}
.map-pin-tooltip.map-pin-tooltip--nudge-left {
  transform: translateX(calc(-100% - 12px)) translateY(-8px);
}
.map-pin-wrap:hover .map-pin-tooltip.map-pin-tooltip--nudge-left,
.map-pin-wrap.active .map-pin-tooltip.map-pin-tooltip--nudge-left {
  transform: translateX(calc(-100% - 12px)) translateY(-8px);
}
.map-pin-tooltip.map-pin-tooltip--nudge-right {
  transform: translateX(12px) translateY(-8px);
}
.map-pin-wrap:hover .map-pin-tooltip.map-pin-tooltip--nudge-right,
.map-pin-wrap.active .map-pin-tooltip.map-pin-tooltip--nudge-right {
  transform: translateX(12px) translateY(-8px);
}
.map-pin-tooltip .tooltip-flag-img {
  width: 24px;
  height: 18px;
  object-fit: cover;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 2px;
}
.map-pin-tooltip .tooltip-flag {
  font-size: 1.1rem;
  margin-right: 6px;
  vertical-align: middle;
}
.map-pin-tooltip .tooltip-ping-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.map-pin-tooltip .tooltip-ping-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--muted);
}
.tooltip-ping-wrap.tooltip-ping--low .tooltip-ping-indicator { background: #22c55e; }
.tooltip-ping-wrap.tooltip-ping--medium .tooltip-ping-indicator { background: #f59e0b; }
.tooltip-ping-wrap.tooltip-ping--high .tooltip-ping-indicator { background: #ef4444; }
.map-pin-tooltip .tooltip-ping {
  font-size: 0.8rem;
  font-weight: 500;
}
.tooltip-ping-wrap.tooltip-ping--low .tooltip-ping { color: #22c55e; }
.tooltip-ping-wrap.tooltip-ping--medium .tooltip-ping { color: #f59e0b; }
.tooltip-ping-wrap.tooltip-ping--high .tooltip-ping { color: #ef4444; }
.map-pin-tooltip .tooltip-ping-wrap:not([class*="tooltip-ping--"]) .tooltip-ping { color: var(--muted); }
.map-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.map-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}
.map-legend-item .map-pin {
  font-size: 1.1rem;
}

.partners-hero {
  position: relative;
  padding: 48px 0 28px;
  min-height: 220px;
  text-align: center;
  overflow: hidden;
}
.partners-hero .partners-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(var(--partners-hero-blur, 0px));
  transform: scale(1.05);
  z-index: 0;
}
.partners-hero .partners-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--partners-hero-dim, 0.55));
}
.partners-hero > .container {
  position: relative;
  z-index: 1;
}
.partners-hero .section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 0 0 16px;
}
.partners-hero .hero-subtitle {
  max-width: 640px;
  margin: 0 auto;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.partner-card {
  position: relative;
  padding: 0;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.partner-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  border-color: var(--accent);
}
/* Допълнителна снимка като размазан фон отзад */
.partner-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(14px);
  transform: scale(1.15);
  opacity: 0.5;
}
.partner-card-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--card);
  opacity: 0.75;
}
.partner-card-link {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: 28px 24px 20px;
  flex: 1;
}
.partner-card-link:hover {
  color: inherit;
}
.partner-card-link:hover .partner-name {
  color: var(--accent);
}
.partner-logo-wrap {
  width: 200px;
  height: 120px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.partner-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 10px;
}
.partner-name {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 700;
  transition: color 0.2s ease;
}
.partner-name .partner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}
.partner-name .partner-icon i {
  font-size: 1rem;
  color: var(--accent);
}
.partner-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.partner-socials {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 14px 24px 20px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}
.partner-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}
.partner-social-link:hover {
  color: var(--accent);
  background: var(--accent-soft);
}
.partner-social-link i {
  font-size: 1.1rem;
}

/* Partners – блок с изисквания */
.partners-requirements-section {
  padding-top: 0;
}
.partners-requirements-note {
  margin: 0 auto;
  padding: 24px 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 1rem;
  line-height: 1.65;
}

/* Partners – секция с картичките (по-малък отстояние от хедъра) */
.partners-cards-section {
  padding-top: 20px;
  padding-bottom: 52px;
}
.partners-requirements-note h3 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  color: var(--accent);
}
.partners-requirements-note p {
  margin: 0 0 12px;
  color: var(--text);
}
.partners-requirements-note ul {
  margin: 0 0 16px;
  padding-left: 1.4em;
}
.partners-requirements-note li {
  margin-bottom: 6px;
}

/* About page */
.about-hero {
  position: relative;
  padding: 48px 0 28px;
  min-height: 220px;
}
.about-hero .about-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(var(--about-hero-blur, 40px));
  transform: scale(1.05);
  z-index: 0;
}
.about-hero .about-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.about-hero > .container {
  position: relative;
  z-index: 1;
}
.about-hero .section-kicker {
  display: block;
  margin-bottom: 8px;
}
.about-hero .section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 0 0 16px;
}
.about-hero .hero-subtitle {
  max-width: 640px;
  margin: 0 auto;
}
.about-content-wrap {
  max-width: 800px;
  margin: 0 auto;
}
.about-content {
  padding: 28px;
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--border);
}
.about-content h3 {
  margin: 28px 0 12px;
  font-size: 1.25rem;
  color: var(--accent);
}
.about-content h3:first-child {
  margin-top: 0;
}
.about-content p, .about-content ul {
  margin: 0 0 16px;
  color: var(--text);
  line-height: 1.7;
}
.about-content ul {
  padding-left: 1.5em;
}
.about-content li {
  margin-bottom: 8px;
}

/* CTA с един бутон */
.cta-card-single .cta-actions {
  display: block;
  margin-top: 20px;
}
.cta-card-single .btn-primary {
  display: inline-block;
}

.post-card {
  padding: 0;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  color: inherit;
  overflow: hidden;
  min-width: 0;
  height: 100%;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2), 0 0 20px color-mix(in srgb, var(--accent) 15%, transparent);
  border-color: var(--accent);
}
/* No pop-up animation on homepage news cards (Updates section) */
.post-card--home:hover {
  transform: none;
}

.post-card--home {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.post-card--home .post-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-card--home .post-meta {
  font-size: 0.8rem;
  color: var(--muted);
  gap: 12px;
}
.post-card--home h3 {
  -webkit-line-clamp: 2;
  margin: 0;
}
.post-card--home p {
  font-size: 0.875rem;
  -webkit-line-clamp: 2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.post-card--news-page {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.post-card--news-page .post-card-content {
  flex: 1;
}

.post-card--compact {
  flex-direction: row;
  padding: 0;
}

.post-card-image {
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 140px;
  max-height: 200px;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.6);
}

.post-card--home .post-card-image,
.post-card--news-page .post-card-image {
  min-height: 140px;
}

.post-card--compact .post-card-image {
  width: 100px;
  aspect-ratio: 1;
  border-radius: 12px 0 0 12px;
  min-height: auto;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.post-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  min-width: 0;
}

.post-card-image:empty {
  background: rgba(15, 23, 42, 0.5);
}

.post-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.9rem;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}

.news-page-section {
  padding-top: 32px;
  padding-bottom: 64px;
}

.news-page-container {
  max-width: 1000px;
  margin: 0 auto;
}

.news-article {
  max-width: 820px;
  margin: 0 auto 36px;
}

.news-article-header {
  margin-bottom: 16px;
}

.news-article-stats {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.news-article-stats i {
  margin-right: 4px;
}

.news-article-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.news-article-like-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.news-article-like-btn i.bi-heart-fill {
  color: var(--accent);
}

.news-article-title {
  margin: 10px 0 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
}

.news-article-cover {
  margin-bottom: 24px;
  border-radius: 12px;
  overflow: hidden;
  max-height: 340px;
}

.news-article-cover img {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
  display: block;
}

.news-article-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.news-article-body p {
  margin: 0 0 1.2em;
  display: block;
}

.news-article-body h2,
.news-article-body h3,
.news-article-body h4 {
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  color: var(--text);
  display: block;
}

.news-article-body ul,
.news-article-body ol {
  padding-left: 1.6em;
  margin: 0 0 1.2em;
  display: block;
}

.news-article-body li {
  margin-bottom: 0.4em;
}

.news-article-body img {
  max-width: 100%;
  height: auto;
}

.news-article-empty {
  color: var(--muted);
  text-align: center;
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 36px auto 48px;
  max-width: 960px;
  width: 100%;
  justify-items: center;
}

.post-card--nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
  width: 100%;
  max-width: 460px;
  box-sizing: border-box;
}
.post-card--nav:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(175, 242, 0, 0.25);
}

.post-card--nav .post-card-image {
  width: 120px;
  min-width: 120px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.post-card--nav .post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card--nav .post-card-content {
  flex: 1;
  min-width: 0;
  padding: 0;
}

.post-nav-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--accent);
  margin-bottom: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-card--nav h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.post-nav-more-title {
  grid-column: 1 / -1;
  margin: 24px 0 16px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 600px) {
  .post-nav {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 28px auto 40px;
    max-width: 100%;
  }
  .post-card--nav {
    padding: 16px 18px;
    gap: 16px;
    max-width: 100%;
  }
  .post-card--nav .post-card-image {
    width: 80px;
    min-width: 80px;
    height: 60px;
  }
}

.news-sidebar-list {
  margin-top: 8px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .news-sidebar-list {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
    gap: 20px;
  }
}

.news-sidebar-list .post-card {
  padding: 0;
}

.news-sidebar-list .post-card--compact {
  max-width: 100%;
  min-width: 0;
}

.news-sidebar-list .post-card--compact .post-card-image {
  width: 120px;
  min-width: 120px;
  aspect-ratio: 1;
  border-radius: 12px 0 0 12px;
}

@media (max-width: 768px) {
  .post-card--news-page {
    flex-direction: column;
  }
}

.cta-section {
  padding: 56px 0 80px;
}

.cta-card {
  padding: 40px 48px 44px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(175, 242, 0, 0.12) 0%, rgba(10, 12, 16, 0.97) 100%);
  border: 1px solid rgba(175, 242, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.cta-card h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.cta-card p {
  color: var(--muted);
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  max-width: 420px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.cta-actions .btn-primary {
  padding: 14px 28px;
  font-size: 1rem;
}

.cta-actions .btn-ghost {
  padding: 14px 20px;
}

@media (max-width: 768px) {
  .cta-section {
    padding: 40px 0 56px;
  }
  .cta-card {
    padding: 32px 28px 36px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    background: none;
    border: none;
    box-shadow: none;
  }
  .cta-card p {
    max-width: none;
  }
  .cta-actions {
    justify-content: center;
  }
}

/* Legal pages (Privacy Policy, Terms of Service) */
.legal-section {
  padding-top: 44px;
  padding-bottom: 48px;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-loading,
.legal-empty {
  color: var(--muted);
  text-align: center;
  padding: 24px;
}

.legal-section-block {
  margin-bottom: 32px;
}

.legal-section-block:last-child {
  margin-bottom: 0;
}

.legal-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.legal-section-body {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.legal-section-body p {
  margin: 0 0 12px;
}

.legal-section-body p:last-child {
  margin-bottom: 0;
}

.legal-last-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 56px 0 28px;
  margin-top: 48px;
  background: radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 8%, transparent), #06080b 55%);
  transition: background 0.3s ease, border-color 0.3s ease;
  text-align: left;
}

.footer .container {
  text-align: left;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 32px;
  align-items: flex-start;
  justify-items: start;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  max-width: 420px;
}

.footer-brand .brand {
  margin-bottom: 10px;
}

/* Скрит текст до логото във футъра – показва се само логото */
.footer-brand .brand-name {
  display: none;
}

.footer-brand p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.9rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 24px 32px;
  max-width: 100%;
  width: 100%;
  color: var(--muted);
  align-items: start;
  justify-items: start;
}

.footer-links-column {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Заглавия на категориите – най-отгоре, ясно отличаващи се от линковете */
.footer-links-heading {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  opacity: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 6px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--nav-accent);
}

/* Платежни методи – един ред: текст в ляво, снимка в дясно (не отдолу), подравнени в ляво */
.footer-payments-column {
  grid-column: 1 / -1;
  margin-top: 20px;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  text-align: left;
  align-self: start;
}

.footer-payments-text-block {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}

.footer-payments-column .footer-links-heading {
  margin-bottom: 4px;
  flex: none;
}

.footer-payments-text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-payments-logos {
  flex-shrink: 0;
  margin-left: auto;
}

.footer-payments-logos img {
  max-width: 180px;
  width: auto;
  height: auto;
  max-height: 48px;
  object-fit: contain;
  opacity: 0.95;
  display: block;
}

/* Scroll to top button – вляво, с кръг за прогрес на скрола */
.scroll-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #041118;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 4px 16px var(--accent-glow);
  transition: opacity 0.2s, transform 0.2s;
}

.scroll-to-top:hover {
  opacity: 0.95;
  transform: translateY(-2px);
}

.scroll-to-top .scroll-to-top-progress {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform: rotate(-90deg); /* започва отгоре */
  z-index: 0;
  pointer-events: none;
}

.scroll-to-top .scroll-to-top-progress circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s ease-out;
}

.scroll-to-top .scroll-to-top-bg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(4, 17, 24, 0.6);
  z-index: 0;
}

.scroll-to-top i {
  font-size: 1.25rem;
  position: relative;
  z-index: 2;
  color: var(--accent);
}

/* Социални мрежи – фиксиран вертикален блок вдясно */
.site-socials-sidebar {
  display: none;
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  flex-direction: column;
  gap: 2px;
  padding: 8px 6px;
  background: rgba(10, 12, 15, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-right: none;
  border-radius: 10px 0 0 10px;
  z-index: 999;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
}

.site-socials-sidebar .site-socials-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  transition: color 0.2s;
}

.site-socials-sidebar .site-socials-link:hover {
  color: var(--accent);
}

.site-socials-sidebar .site-socials-link i,
.site-socials-sidebar .site-socials-link svg {
  font-size: 1.15rem;
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ========== МОБИЛНО МЕНЮ (HAMBURGER) ========== */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu-btn:hover { background: rgba(255, 255, 255, 0.1); }
.mobile-menu-btn span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}
body.mobile-nav-open .mobile-menu-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.mobile-nav-open .mobile-menu-btn span:nth-child(2) { opacity: 0; }
body.mobile-nav-open .mobile-menu-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== Мобилна навигация – дизайн в стил сайта ========== */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
}
.mobile-nav-overlay.mobile-nav-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mobile-nav-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 7, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(85vw, 320px);
  height: 100%;
  background: linear-gradient(180deg, #0c0e12 0%, #080a0d 100%);
  border-right: 1px solid var(--border);
  box-shadow: 8px 0 48px rgba(0, 0, 0, 0.6);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}
.mobile-nav-overlay.mobile-nav-open .mobile-nav-drawer {
  transform: translateX(0);
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 16px 32px;
  flex: 1;
}
.mobile-nav-inner .nav-item,
.mobile-nav-inner .mobile-nav-extra {
  width: 100%;
  flex: 0 0 auto;
}
.mobile-nav-inner .nav-item > a,
.mobile-nav-inner .mobile-nav-extra a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px 18px;
  min-height: 52px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 10px;
  background: transparent;
  border: none;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  width: 100%;
  text-align: left;
}
.mobile-nav-inner .nav-item:not(:last-child) > a {
  border-bottom: none;
}
.mobile-nav-inner .nav-item > a:hover,
.mobile-nav-inner .mobile-nav-extra a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--nav-accent);
}
.mobile-nav-inner .nav-item.has-dropdown > a {
  justify-content: space-between;
}
.mobile-nav-inner .nav-item.has-dropdown > a .bi-chevron-down {
  transition: transform 0.2s;
  opacity: 0.7;
}
.mobile-nav-inner .nav-item.mobile-dropdown-open > a .bi-chevron-down {
  transform: rotate(180deg);
}
.mobile-nav-inner .nav-item > a::after { display: none; }
.mobile-nav-inner .nav-item.nav-item--cta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.mobile-nav-inner .nav-item.nav-item--cta > a {
  justify-content: center;
  background: var(--nav-accent);
  color: #0a0d14;
  font-weight: 600;
  border-radius: 14px;
  flex: 1;
  min-width: 0;
}
.mobile-nav-inner .nav-item.nav-item--cta > a.nav-mobile-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.mobile-nav-inner .nav-item.nav-item--cta > a.nav-mobile-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--nav-accent);
}
.mobile-nav-inner .nav-item.nav-item--cta > a:hover {
  background: #c4ff33;
  color: #0a0d14;
}
.mobile-nav-inner .nav-dropdown {
  position: static;
  margin: 0;
  padding: 0 0 0 24px;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  transform: none;
  background: none;
  border: none;
  border-radius: 0;
  list-style: none;
  transition: max-height 0.3s ease, opacity 0.2s ease, visibility 0.2s ease;
  width: 100%;
}
.mobile-nav-inner .nav-item.mobile-dropdown-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  max-height: 500px;
  overflow: visible;
  margin-top: 6px;
  margin-bottom: 4px;
}
.mobile-nav-inner .nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  min-height: 48px;
  justify-content: flex-start;
  border-radius: 0;
  margin: 0;
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: none;
  color: var(--text);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.15s, background 0.15s;
}
.mobile-nav-inner .nav-dropdown a:last-child {
  border-bottom: none;
}
.mobile-nav-inner .nav-dropdown a:hover {
  color: var(--nav-accent);
  background: none;
}
.mobile-nav-inner .nav-dropdown a:last-child {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .hero-grid,
  .mods-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile nav (хамбургер) – само под 768px; над това е desktop header с nav-links */
@media (max-width: 768px) {
  .nav-shell {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  .nav-shell .brand {
    grid-column: 1;
    justify-self: start;
    margin-left: 12px;
    min-width: 0;
  }
  .nav-shell .brand .brand-logo {
    height: 42px;
    flex-shrink: 0;
    object-fit: contain;
  }
  .nav-shell .nav-links {
    display: none;
  }
  .nav-shell .nav-actions {
    grid-column: 3;
    justify-self: end;
  }
  .nav-shell .nav-actions .mobile-menu-btn {
    display: flex;
  }
  .nav-shell .nav-actions #nav-cta,
  .nav-shell .nav-actions .ghost-link,
  .nav-shell .nav-actions #nav-game-panel,
  .nav-shell .nav-actions #nav-panel {
    display: none;
  }
  .nav-actions {
    gap: 10px;
  }
}

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

/* ========== ЦЯЛОСТНИ МОБИЛНИ ОПТИМИЗАЦИИ ========== */
@media (max-width: 768px) {
  .container {
    width: min(100%, calc(100vw - 32px));
    padding: 0 16px;
  }
  .section {
    padding: 48px 0;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .section-header .ghost-link {
    align-self: flex-start;
  }
  .games-intro-section .section-header {
    flex-direction: column;
  }
  .hero {
    padding: 36px 0 44px;
  }
  .hero-content h1,
  .hero .section-title {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
  .cta-section {
    padding-bottom: 140px;
  }
  .cta-card {
    flex-direction: column;
    gap: 28px;
    padding: 32px 24px 64px;
    text-align: center;
    align-items: center;
  }
  .cta-card > div:first-child {
    order: 1;
  }
  .cta-card .cta-actions {
    flex-direction: column;
    width: 100%;
    order: 2;
    gap: 14px;
    padding-bottom: 0;
  }
  .cta-card .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    padding: 14px 24px;
  }
  .footer .container {
    padding: 0 16px;
  }
  .footer-grid {
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
  }
  .reviews-carousel-wrap {
    padding: 0 16px;
    display: grid;
    grid-template-rows: 1fr auto;
    grid-template-columns: auto 1fr auto;
  }
  .reviews-carousel {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
  }
  .reviews-carousel-prev,
  .reviews-carousel-next {
    position: static;
    transform: none;
    margin: 0;
  }
  .reviews-carousel-prev {
    grid-row: 2;
    grid-column: 1;
    justify-self: start;
    align-self: center;
    margin-top: 12px;
  }
  .reviews-carousel-dots {
    grid-row: 2;
    grid-column: 2;
    justify-self: center;
    align-self: center;
    margin-top: 12px;
  }
  .reviews-carousel-next {
    grid-row: 2;
    grid-column: 3;
    justify-self: end;
    align-self: center;
    margin-top: 12px;
  }
  .reviews-carousel-slide {
    flex: 0 0 100%;
    padding: 20px 12px;
  }
  .news-carousel-wrap {
    padding: 0 16px;
    display: grid;
    grid-template-rows: 1fr auto;
    grid-template-columns: auto 1fr auto;
  }
  .news-carousel {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
  }
  .news-carousel-prev,
  .news-carousel-next {
    position: static;
    transform: none;
    margin: 0;
  }
  .news-carousel-prev {
    grid-row: 2;
    grid-column: 1;
    justify-self: start;
    align-self: center;
    margin-top: 12px;
  }
  .news-carousel-dots {
    grid-row: 2;
    grid-column: 2;
    justify-self: center;
    align-self: center;
    margin-top: 12px;
  }
  .news-carousel-next {
    grid-row: 2;
    grid-column: 3;
    justify-self: end;
    align-self: center;
    margin-top: 12px;
  }
  .news-carousel-slide {
    padding: 0;
  }
  .post-card--home .post-card-content,
  .post-card--news-page .post-card-content {
    padding: 16px 18px;
  }
  .post-card h3 {
    font-size: 1.05rem;
    -webkit-line-clamp: 2;
  }
  .news-carousel-prev,
  .news-carousel-next {
    width: 44px;
    height: 44px;
  }
  .reviews-carousel-dot,
  .news-carousel-dot {
    width: 10px;
    height: 10px;
  }
  .server-type-selector {
    grid-template-columns: 1fr;
  }
  .plan-selector-wizard {
    margin-bottom: 24px;
  }
  .world-map-wrap {
    max-width: 95%;
  }
}

/* Billing toggle – по-ранно стъкване за по-добър mobile UX */
@media (max-width: 640px) {
  .billing-toggle {
    flex-direction: column;
    width: 100%;
    padding: 6px;
  }
  .billing-btn {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
  }
}

/* Safe area за изрези (notch) на телефони */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .live-chat-widget {
    bottom: calc(24px + env(safe-area-inset-bottom));
    right: calc(24px + env(safe-area-inset-right));
  }
  .footer-bottom {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100%, calc(100vw - 24px));
    padding: 0 12px;
  }
  .nav-shell {
    padding: 12px 0;
  }
  .nav-actions .ghost-link {
    display: none;
  }
  .nav-actions .btn-primary {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  .lang-switcher {
    padding: 4px;
    height: 44px;
    border-radius: 999px;
  }
  .lang-btn {
    min-width: 44px;
    height: 36px;
    padding: 0 14px;
    font-size: 0.85rem;
  }
  .section {
    padding: 36px 0;
  }
  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  .why-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .why-card {
    padding: 20px;
  }
  .billing-toggle {
    flex-direction: column;
    width: 100%;
    padding: 6px;
    gap: 6px;
  }
  .billing-btn {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 0.9rem;
  }
  .plans-controls {
    margin-bottom: 24px;
  }
  .plans-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .plan-card {
    min-width: 0;
  }
  .games-grid-full {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .game-hero-container {
    flex-direction: column;
    gap: 24px;
  }
  .game-hero-image {
    max-height: 180px;
  }
  .home-about-inner {
    flex-direction: column;
    gap: 24px;
  }
  .locations-map-inner {
    padding: 0 12px;
  }
  .locations-map-refresh-ping {
    width: 44px;
    height: 44px;
  }
  .footer-links {
    grid-template-columns: 1fr;
  }
}

/* Touch-friendly – минимална височина за бутони и линкове */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .ghost-link,
  .nav-item > a {
    min-height: 44px;
  }
  .reviews-carousel-prev,
  .reviews-carousel-next,
  .news-carousel-prev,
  .news-carousel-next {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* Live Chat widget – акцент син #4A7FFC, непрозрачен фон на картичката */
.live-chat-widget {
  --chat-accent: #4A7FFC;
  --chat-accent-glow: rgba(74, 127, 252, 0.4);
  --chat-card-bg: rgba(14, 17, 22, 0.98);
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
  font-family: "Inter", "Segoe UI", sans-serif;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

/* Минимизиран вид: стрелка вляво + иконка (без кръгло ограждение) */
.live-chat-minimized-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 20px;
  background: var(--chat-card-bg, rgba(14, 17, 22, 0.98));
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border);
  overflow: visible;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.live-chat-minimized-wrap-hidden {
  display: none !important;
}
.live-chat-minimized-wrap.live-chat-wrap-exiting {
  opacity: 0;
  transform: translateX(16px) scale(0.94);
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.live-chat-minimized-wrap.live-chat-wrap-entering {
  animation: live-chat-wrap-in 0.32s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}
.live-chat-widget.live-chat-entry-animation .live-chat-minimized-wrap:not(.live-chat-minimized-wrap-hidden) {
  animation: live-chat-wrap-in 0.32s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}
@keyframes live-chat-wrap-in {
  from {
    opacity: 0;
    transform: translateX(16px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
/* Текстов бокс над бутона и над мини-картичката (съобщение при онлайн/извън работно време) */
.live-chat-minimized-message {
  display: block;
  margin-bottom: 10px;
  padding: 12px 40px 12px 16px;
  max-width: 280px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text, #1a1a1a);
  background: var(--chat-card-bg, rgba(14, 17, 22, 0.98));
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  word-wrap: break-word;
}
.live-chat-minimized-message-text {
  display: block;
}
.live-chat-minimized-message-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text, #1a1a1a);
  cursor: pointer;
  opacity: 0.75;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.live-chat-minimized-message-close:hover {
  background: var(--border);
  opacity: 1;
}
.live-chat-minimized-message-close i {
  font-size: 1rem;
}
.live-chat-minimized-message-dismissed {
  display: none !important;
}
.live-chat-minimized-message::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--border);
}
.live-chat-minimized-message::before {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 22px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--chat-card-bg, rgba(14, 17, 22, 0.98));
  z-index: 1;
}
.live-chat-minimized-message-hidden {
  display: none !important;
}
.live-chat-expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 56px;
  border-radius: 20px 0 0 20px;
  background: var(--bg-elevated, #f8f9fa);
  color: var(--text);
  border: none;
  border-right: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.live-chat-expand-btn:hover {
  background: var(--border);
  color: var(--chat-accent);
}
.live-chat-expand-btn i {
  font-size: 1.25rem;
}
.live-chat-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 0 16px 16px 0;
  background: var(--chat-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s ease, transform 0.15s ease;
  position: relative;
  overflow: visible;
}
.live-chat-minimized-wrap .live-chat-fab:hover {
  background: #3a6ae6;
}
.live-chat-fab i {
  font-size: 1.5rem;
}
.live-chat-unread-badge {
  display: none;
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.live-chat-unread-badge-visible {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Мини-карта (разширение): по подразбиране отворена */
.live-chat-mini-card {
  position: relative;
  width: 420px;
  max-width: calc(100vw - 48px);
  padding: 20px 22px 18px;
  background: var(--chat-card-bg, rgba(14, 17, 22, 0.98));
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  transition: opacity 0.25s ease, transform 0.25s ease;
  overflow: visible;
}
.live-chat-mini-card-hidden {
  display: none !important;
}
.live-chat-mini-card.live-chat-card-exiting {
  opacity: 0;
  transform: translateY(14px) translateX(8px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.live-chat-mini-card.live-chat-card-entering {
  animation: live-chat-card-in 0.36s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}
.live-chat-widget.live-chat-entry-animation .live-chat-mini-card:not(.live-chat-mini-card-hidden) {
  animation: live-chat-card-in 0.36s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}
@keyframes live-chat-card-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.live-chat-mini-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.live-chat-collapse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  border-radius: 14px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.live-chat-collapse-btn:hover {
  color: var(--chat-accent);
  background: var(--bg-elevated, #f8f9fa);
}
.live-chat-collapse-btn i {
  font-size: 1.1rem;
}

.live-chat-mini-card-title-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.live-chat-mini-card-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.live-chat-mini-card-online {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
  flex-shrink: 0;
  min-height: 20px;
}

.live-chat-mini-card-online .live-chat-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}
.live-chat-online-dot-offline {
  background: #ef4444 !important;
}

/* Аватари – същата стилизация като в отворения чат */
.live-chat-mini-card-avatars {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}

.live-chat-mini-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  padding: 1px;
  box-sizing: border-box;
  background-color: var(--border);
  background-size: cover;
  background-position: center;
  background-origin: content-box;
  background-clip: content-box;
  margin-left: -10px;
  border: 1px solid var(--border);
}

.live-chat-mini-avatar:first-child {
  margin-left: 0;
}

/* Два бутона в ред – accent и muted */
.live-chat-mini-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  overflow: visible;
}

.live-chat-btn-chat-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: visible;
  z-index: 0;
}

.live-chat-mini-card-unread-badge {
  display: none;
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.live-chat-mini-card-unread-badge.live-chat-unread-badge-visible {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.live-chat-btn-chat {
  position: relative;
  flex: 1;
  min-width: 0;
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--chat-accent);
  color: #fff;
  border: none;
  border-radius: 18px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 12px var(--chat-accent-glow);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  overflow: visible;
}

.live-chat-btn-chat:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 16px var(--chat-accent-glow);
}

.live-chat-btn-chat i {
  font-size: 1.1rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.live-chat-btn-chat > span:not(.live-chat-unread-badge) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-chat-btn-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 18px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.live-chat-btn-search:hover {
  background: var(--border);
}

.live-chat-btn-search i {
  font-size: 1rem;
  color: var(--muted);
}

/* Panel – непрозрачен фон, акцент син, анимация при отваряне/затваряне */
.live-chat-panel {
  position: absolute;
  bottom: calc(100% + 14px);
  right: 0;
  left: auto;
  width: 420px;
  max-width: calc(100vw - 48px);
  background: var(--card, #fff);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px) scale(0.94);
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.live-chat-panel.live-chat-panel-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.live-chat-panel[hidden] {
  display: none !important;
}

.live-chat-panel-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 20px 12px;
  background: var(--card, #fff);
  border-bottom: 1px solid var(--border);
}

.live-chat-panel-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
}

.live-chat-panel-header-title-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.live-chat-panel-title,
.live-chat-panel-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.live-chat-online-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  flex-shrink: 0;
}

.live-chat-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

.live-chat-panel-header-badge-row {
  display: flex;
  justify-content: flex-start;
  min-height: 0;
}

.live-chat-panel-header-badge-row-hidden {
  display: none !important;
}

.live-chat-status-badge {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  white-space: nowrap;
}

.live-chat-close {
  background: none;
  border: none;
  color: var(--muted);
  padding: 6px;
  cursor: pointer;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.live-chat-close:hover {
  color: var(--text);
  background: var(--border);
}
.live-chat-panel-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 420px;
  background: var(--bg-elevated, #f8f9fa);
}

.live-chat-messages-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

.live-chat-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
  background: var(--bg-elevated, #f8f9fa);
}

.live-chat-new-messages-pill {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 16px;
  background: #ef4444;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  transition: background 0.2s ease, box-shadow 0.2s ease;
  z-index: 2;
}
.live-chat-new-messages-pill:hover {
  background: #dc2626;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.5);
}

.chat-typing-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

.chat-typing-dots {
  display: inline-flex;
  gap: 4px;
}

.chat-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--chat-accent);
  animation: typingBounce 1.4s ease-in-out infinite both;
}

.chat-typing-dots span:nth-child(1) { animation-delay: 0s; }
.chat-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

.chat-message,
.chat-message-group {
  display: flex;
  flex-direction: row;
  gap: 8px;
  max-width: 90%;
  min-width: 0;
}

.chat-message-group-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  padding: 1px;
  box-sizing: border-box;
  background: var(--border);
  border: 1px solid var(--border);
  flex-shrink: 0;
  align-self: flex-end;
}

.chat-message-user,
.chat-message-group.chat-message-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-message-user .chat-message-group-content {
  align-items: flex-end;
}

.chat-message-bot,
.chat-message-group.chat-message-bot {
  align-self: flex-start;
}

.chat-message-bot .chat-message-group-content {
  align-items: flex-start;
}

.chat-message-content {
  padding: 10px 14px;
  border-radius: 18px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.4;
  max-width: 100%;
  min-width: 0;
}

.chat-message-group {
  transition: opacity 0.2s ease;
}

.chat-message-user .chat-message-content {
  background: var(--chat-accent);
  color: #fff;
}

.chat-message-bot .chat-message-content {
  background: var(--card, var(--bg-elevated));
  color: var(--text);
  border: 1px solid var(--border);
}

.chat-message-time {
  font-size: 11px;
  color: var(--muted);
  padding: 0 4px;
  margin-top: 2px;
}

.chat-ticket-taken {
  width: 100%;
  margin: 12px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.chat-ticket-taken-line {
  width: 100%;
  margin: 0;
  border: none;
  border-top: 1px solid var(--border);
}

.chat-ticket-taken-text {
  font-size: 0.8rem;
  color: var(--muted);
}

.chat-message-image-wrap {
  position: relative;
  display: inline-block;
  margin-top: 4px;
}

.chat-message-image {
  max-width: 200px;
  max-height: 160px;
  border-radius: 12px;
  display: block;
  object-fit: contain;
  border: 1px solid var(--border);
}

.chat-message-image-expand {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
}

.chat-message-image-expand:hover {
  background: rgba(0,0,0,0.7);
}

.live-chat-image-overlay[hidden] {
  display: none !important;
}

.live-chat-image-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.live-chat-image-overlay-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-chat-image-overlay-close:hover {
  background: rgba(255,255,255,0.3);
}

.live-chat-image-overlay-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.live-chat-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--card, #fff);
}

.live-chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.live-chat-attach-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
}

.live-chat-attach-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  background: var(--bg-elevated);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.live-chat-attach-btn:hover {
  color: var(--chat-accent);
  background: var(--border);
}

.live-chat-attach-btn i {
  font-size: 1.25rem;
}

.live-chat-input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.live-chat-input::placeholder {
  color: var(--muted);
}

.live-chat-input:focus {
  outline: none;
  border-color: var(--chat-accent);
  background: var(--bg-elevated, #f8f9fa);
  box-shadow: 0 0 0 3px rgba(74, 127, 252, 0.15);
}

.live-chat-input:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background: var(--border);
}

.live-chat-pending-preview[hidden] {
  display: none !important;
}

.live-chat-pending-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}

.live-chat-pending-preview-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
}

.live-chat-pending-preview-label {
  flex: 1;
}

.live-chat-pending-preview-remove {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: var(--border);
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.live-chat-pending-preview-remove:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.live-chat-send-btn {
  flex-shrink: 0;
  padding: 12px 18px;
  background: var(--chat-accent);
  border: none;
  border-radius: 16px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 12px var(--chat-accent-glow);
}

.live-chat-send-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 16px var(--chat-accent-glow);
}

.live-chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.live-chat-send-btn i {
  font-size: 18px;
}

.live-chat-message {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Rating UI (shown when chat is closed) */
.live-chat-rating-wrap {
  padding: 16px;
  border-top: 1px solid var(--border);
  background: var(--card, var(--bg-elevated));
}
.live-chat-rating-title {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 600;
}
.live-chat-rating-stars {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.live-chat-star {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  transition: color 0.15s;
}
.live-chat-star:hover,
.live-chat-star.filled {
  color: var(--chat-accent);
}
.live-chat-rating-comment {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-size: 0.875rem;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 12px;
}
.live-chat-rating-comment:focus {
  outline: none;
  border-color: var(--chat-accent);
}
.live-chat-rating-submit {
  width: 100%;
  padding: 12px 16px;
  background: var(--chat-accent);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: filter 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 12px var(--chat-accent-glow);
}
.live-chat-rating-submit:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 4px 16px var(--chat-accent-glow);
}
.live-chat-rating-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Известие – при минимизиран чат: по-ниско; при отворена картичка: над нея */
.live-chat-notification {
  position: fixed;
  bottom: 100px;
  right: 24px;
  max-width: 320px;
  padding: 12px 16px;
  background: var(--chat-card-bg, rgba(14, 17, 22, 0.98));
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, bottom 0.12s ease;
  z-index: 9989;
  pointer-events: none;
}
/* Когато чатът е минимизиран – тостът никога не се показва */
.live-chat-minimized-wrap:not(.live-chat-minimized-wrap-hidden) ~ .live-chat-notification {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none;
  transition: none !important;
}
/* Когато картичката е отворена – тостът малко по-нагоре над нея */
.live-chat-mini-card:not(.live-chat-mini-card-hidden) ~ .live-chat-notification {
  bottom: 190px;
}
/* Когато чат панелът е отворен – тостът изчезва веднага, без анимация */
.live-chat-panel:not([hidden]) ~ .live-chat-notification {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none;
  transition: none !important;
}
.live-chat-notification-text {
  min-width: 0;
}
.live-chat-notification.live-chat-notification-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Keep old form styles for backward compatibility but hide by default */
.live-chat-form,
.live-chat-success {
  display: none;
}

/* Cookie consent – по-нисък, по-широк бокс вляво, border-radius като Live Chat (24px) */
.cookie-consent {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9995;
  max-width: 520px;
  padding: 12px 18px;
  background: var(--bg-elevated, #101318);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.cookie-consent-hiding {
  opacity: 0;
  transform: translateX(-24px);
}
.cookie-consent-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cookie-consent-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-consent-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 14px;
  background: var(--accent-soft, rgba(175, 242, 0, 0.16));
  color: var(--accent, #aff200);
}
.cookie-consent-icon i {
  font-size: 1.1rem;
}
.cookie-consent-heading {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}
.cookie-consent-message {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
  white-space: pre-line;
}
.cookie-consent-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 0;
}
.cookie-consent-privacy {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.cookie-consent-privacy:hover {
  color: var(--accent, #aff200);
}
.cookie-consent-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bg, #050607);
  background: var(--accent, #aff200);
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.cookie-consent-btn:hover {
  background: #b8ff0a;
}
.cookie-consent-btn:active {
  transform: scale(0.98);
}
@media (max-width: 640px) {
  .cookie-consent {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
  .cookie-consent-footer {
    flex-wrap: wrap;
  }
  .cookie-consent-hiding {
    transform: translateY(100%);
  }
}
