/* ============ Bitwar Official Site ============ */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #3B82F6;
  --indigo: #6366F1;
  --teal: #0D9488;
  --cyan: #0891B2;
  --purple: #8B5CF6;
  --green: #16A34A;
  --text: #0F172A;
  --text-2: #475569;
  --text-3: #94A3B8;
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --bg-blue: #EFF6FF;
  --border: #E2E8F0;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 8px 24px rgba(15,23,42,.08);
  --shadow-lg: 0 20px 50px rgba(15,23,42,.12);
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg-soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* sticky footer: page is never shorter than the viewport,
     .footer sits flush with the bottom via margin-top:auto */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all .25s ease; border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(37,99,235,.45); }
.btn-outline { background: rgba(255,255,255,.9); color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.link-more { font-size: 14px; font-weight: 600; color: var(--primary); transition: gap .2s; }
.link-more:hover { color: var(--primary-dark); }

/* ============ Navbar ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: all .3s ease;
}
.navbar.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; height: var(--nav-h); gap: 32px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 34px; width: auto; display: block; }

.nav-menu { display: flex; align-items: center; gap: 6px; flex: 1; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: .3px;
  color: var(--text-2); transition: all .2s;
}
.nav-link:hover { color: var(--primary); background: var(--bg-blue); }
.nav-link.active { color: var(--primary); }

/* Products dropdown */
.nav-dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 340px; padding: 10px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: all .25s ease;
}
.nav-dropdown:hover .dropdown-panel,
.nav-dropdown.open .dropdown-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-panel::before {
  content: ''; position: absolute; top: -7px; left: 50%;
  width: 14px; height: 14px; background: #fff;
  border-left: 1px solid var(--border); border-top: 1px solid var(--border);
  transform: translateX(-50%) rotate(45deg);
}
/* Invisible bridge over the 12px gap so hover is not lost while moving down */
.dropdown-panel::after {
  content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.dropdown-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 10px; transition: background .2s;
}
.dropdown-item:hover { background: var(--bg-soft); }
.dropdown-item strong { display: block; font-size: 14px; font-weight: 600; }
.dropdown-item small { font-size: 12px; color: var(--text-3); }
.di-icon {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.di-icon svg { width: 20px; height: 20px; }
.di-icon img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  box-shadow: 0 1px 4px rgba(15,23,42,.1);
}
.di-blue { background: #EFF6FF; color: #2563EB; }
.di-indigo { background: #EEF2FF; color: #6366F1; }
.di-teal { background: #F0FDFA; color: #0D9488; }
.di-cyan { background: #ECFEFF; color: #0891B2; }
.di-purple { background: #F5F3FF; color: #8B5CF6; }
.di-green { background: #F0FDF4; color: #16A34A; }

/* Language switch */
.nav-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 8px;
  background: transparent; border: 1.5px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--text-2);
  font-family: inherit; cursor: pointer; transition: all .2s;
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.lang-panel {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 150px; padding: 6px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .25s ease;
}
.lang-switch.open .lang-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-item { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--text-2); }
.lang-item:hover { background: var(--bg-soft); color: var(--text); }
.lang-item.active { color: var(--primary); font-weight: 600; background: var(--bg-blue); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero Carousel ============ */
.hero { position: relative; overflow: hidden; }
.hero-track { display: flex; transition: transform .7s cubic-bezier(.65,0,.35,1); }
.hero-slide { flex: 0 0 100%; min-height: 640px; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 80px; }

.slide-dr { background: linear-gradient(120deg, #EFF6FF 0%, #F8FAFC 55%, #EEF2FF 100%); }
.slide-dll { background: linear-gradient(120deg, #EEF2FF 0%, #F8FAFC 55%, #F5F3FF 100%); }
.slide-fr { background: linear-gradient(120deg, #F0FDFA 0%, #F8FAFC 55%, #ECFEFF 100%); }

.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; width: 100%; }
.hero-badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(37,99,235,.1); color: var(--primary);
  font-size: 13px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; margin-bottom: 22px;
}
.hero-text h1 { font-size: 52px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.12; margin-bottom: 18px; }
.hero-sub { font-size: 19px; color: var(--text-2); max-width: 480px; margin-bottom: 34px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero download buttons */
.hero-btns .btn {
  position: relative; overflow: hidden;
  gap: 11px; padding: 12px 28px 12px 14px;
  border-radius: 999px; border: none;
  font-size: 16px; letter-spacing: .2px;
}
.hero-btns .btn svg {
  width: 34px; height: 34px; padding: 8px;
  border-radius: 50%; flex-shrink: 0;
  transition: transform .3s ease, background .3s ease;
}
.hero-btns .btn:hover svg { transform: scale(1.1); }
.hero-btns .btn-primary {
  background: linear-gradient(135deg, #60A5FA 0%, var(--primary) 52%, var(--primary-dark) 100%);
  background-size: 170% 170%; background-position: 0% 50%;
  box-shadow: 0 10px 26px rgba(37,99,235,.42), inset 0 1px 0 rgba(255,255,255,.28);
}
.hero-btns .btn-primary svg {
  background: rgba(255,255,255,.22);
}
.hero-btns .btn-primary::after {
  content: ''; position: absolute; top: -30%; bottom: -30%; left: 0;
  width: 45%; pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,.5) 50%, transparent 100%);
  transform: translateX(-170%) skewX(-18deg);
  animation: heroBtnShine 4.6s ease-in-out infinite;
}
@keyframes heroBtnShine {
  0%, 58% { transform: translateX(-170%) skewX(-18deg); }
  88%, 100% { transform: translateX(330%) skewX(-18deg); }
}
.hero-btns .btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  background-position: 100% 50%;
  box-shadow: 0 16px 36px rgba(37,99,235,.52), inset 0 1px 0 rgba(255,255,255,.32);
}
.hero-btns .btn-primary:active { transform: translateY(-1px) scale(1); box-shadow: 0 8px 20px rgba(37,99,235,.45); }
.hero-btns .btn-outline {
  background: rgba(255,255,255,.68);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(148,163,184,.45);
  box-shadow: var(--shadow-sm);
}
.hero-btns .btn-outline svg { background: rgba(37,99,235,.09); }
.hero-btns .btn-outline:hover {
  background: #fff; border-color: var(--primary); color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15,23,42,.13);
}
.hero-btns .btn-outline:hover svg { background: rgba(37,99,235,.15); }
@media (prefers-reduced-motion: reduce) {
  .hero-btns .btn-primary::after { animation: none; }
}

/* Hero art */
.hero-art { position: relative; height: 470px; }

/* Slide 1: Data Recovery illustration — flat & static: deleted files fly back into a safe folder */
.slide-dr .hero-art .dr-illust { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; }

/* Slide 2: DLL Fixer illustration — flat & static: shield guarding the system */
.slide-dll .hero-art .dll-illust { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; }
@keyframes artFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Slide 3: File Repair illustration — flat & static: repairable file types around the hub */
.slide-fr .hero-art .fr-illust { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; }

/* Carousel controls */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: 1px solid var(--border);
  color: var(--text-2); cursor: pointer; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s; box-shadow: var(--shadow-sm);
}
.hero-arrow:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.hero-arrow.prev { left: 28px; }
.hero-arrow.next { right: 28px; }
.hero-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.hero-dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: #CBD5E1; border: none; cursor: pointer;
  transition: all .3s ease; padding: 0;
}
.hero-dot.active { width: 32px; background: var(--primary); }

/* ============ Sections ============ */
.section { padding: 100px 0; }
.section-head { text-align: center;  margin: 0 auto 60px; }
.section-tag {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: var(--bg-blue); color: var(--primary);
  font-size: 13px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 16px;
}
.section-head h2 { font-size: 38px; font-weight: 800; letter-spacing: -1px; margin-bottom: 14px; }
.section-head p { font-size: 17px; color: var(--text-2); }

/* ============ Products ============ */
.products { background: var(--bg-soft); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  position: relative; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  transition: all .3s ease;
}
.product-grid .product-card:nth-of-type(2) .p-actions{     margin-bottom: 32px;}
.product-grid .product-card:nth-of-type(3) .p-actions{     margin-bottom: 32px;}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.p-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.p-head h3 { margin-bottom: 0; }
.p-icon {
  width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.p-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; display: block; }
.p-os { display: none; }
.product-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -.3px; }
.product-card p { font-size: 14px; color: var(--text-2); margin-bottom: 24px; min-height: 44px; }
.p-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: auto; }
.p-store {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-3);
  transition: color .2s;
}
.p-store:hover { color: var(--primary); }
.p-store svg { flex-shrink: 0; }
.p-actions .btn-primary {
  background: #fff; color: var(--primary);
  border-color: #EDF1F7;
  box-shadow: var(--shadow-md);
}
.p-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--primary-dark);
  border-color: #E2EAF6;
}

/* ============ Reviews (slider) ============ */
.review-slider { position: relative; margin: 0 -12px; }
.review-viewport { padding: 12px; overflow-x: hidden; overflow-x: clip; overflow-y: visible; }
.review-track {
  display: flex; gap: 24px;
  transition: transform .6s cubic-bezier(.65,0,.35,1);
}
.review-card {
  flex: 0 0 calc(25% - 18px);
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.review-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 24px 44px -16px rgba(15,23,42,.16),
    0 0 28px -6px rgba(15,23,42,.12);
  border-color: transparent;
}
.stars { color: #F59E0B; font-size: 15px; letter-spacing: 3px; margin-bottom: 14px; }
.review-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.2px; }
.review-card p { font-size: 14px; color: var(--text-2); flex: 1; margin-bottom: 22px; }
.reviewer { display: flex; align-items: center; gap: 12px; padding-top: 18px; font-size: 0;border-top: 1px solid var(--border); }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  flex-shrink: 0; display: block;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--border);
}
.reviewer strong { display: block; font-size: 14px; }
.reviewer small { font-size: 12px; color: var(--text-3); }

/* Review slider controls */
.review-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border);
  color: var(--text-2); cursor: pointer; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s; box-shadow: var(--shadow-md);
}
.review-arrow:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.review-arrow.prev { left: -10px; }
.review-arrow.next { right: -10px; }
.review-dots { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.review-dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: #CBD5E1; border: none; cursor: pointer;
  transition: all .3s ease; padding: 0;
}
.review-dot.active { width: 32px; background: var(--primary); }

/* ============ Knowledge Base ============ */
.kb { background: var(--bg-soft); }
.kb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.kb-card {
  min-width: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px;
  transition: all .3s ease;
}
.kb-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.kb-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.kb-head h4 { font-size: 15px; font-weight: 700; letter-spacing: -.2px; }
.kb-icon {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.kb-icon svg { width: 21px; height: 21px; }
.kb-icon img { width: 28px; height: 28px; display: block; }
.ki-orange, .ki-blue, .ki-slate, .ki-indigo, .ki-teal, .ki-purple, .ki-green, .ki-gray { background: #E1ECFB; }
.kb-card ul li { margin-bottom: 4px; }
.kb-card ul a {
  display: block; padding: 8px 10px; border-radius: 8px;
  font-size: 13.5px; color: var(--text-2); line-height: 1.45;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: all .2s;
}
.kb-card ul a:hover { color: var(--primary); background: var(--bg-blue); }

/* ============ Footer ============ */
.footer {
  background: linear-gradient(180deg, #101B33 0%, #0B1426 100%);
  color: #A9B8D0;
  padding: 58px 0 28px;
  font-size: 14px;
  margin-top: auto; /* pushes the footer down when content is shorter than the viewport */
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr .85fr 1.15fr;
  gap: 56px;
  padding-bottom: 38px;
}

/* Col 1: brand */
.footer-logo { height: 34px; width: auto; display: block; margin-bottom: 18px; }
.footer-brand p { font-size: 14px; line-height: 1.75; color: #8CA0BE; max-width: 330px; }

/* Col 2: links */
.footer-links li + li { margin-top: 4px; }
.footer-links a {
  display: inline-block; padding: 4px 0;
  color: #A9B8D0; transition: color .2s ease;
}
.footer-links a:hover { color: #fff; }

/* Col 3: badges + social + contact */
.footer-side { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.footer-badges { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; opacity: .5; transition: opacity .25s ease; }
.badge img { height: 26px; width: auto; display: block; filter: brightness(0) invert(1); }
a.badge:hover { opacity: .95; }

.footer-social { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  opacity: .65; transition: all .25s ease;
}
.social-link img { width: 21px; height: auto; display: block; filter: invert(.85); }
.social-link:hover { opacity: 1; transform: translateY(-2px); }

.contact-item { display: inline-flex; align-items: center; gap: 8px; color: #A9B8D0; transition: color .2s; }
.contact-item svg { width: 16px; height: 16px; color: var(--primary-light); flex-shrink: 0; }
a.contact-item:hover { color: #fff; }

/* Copyright bar */
.footer-copy {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 22px;
  text-align: center;
  font-size: 13px; color: #6E81A0;
  letter-spacing: .2px;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .review-card { flex-basis: calc(50% - 12px); }
  .kb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-text h1 { font-size: 42px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 48px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 520px; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-dropdown { width: 100%; }
  .dropdown-panel {
    position: static; width: 100%; transform: none;
    box-shadow: none; border: none; padding: 0 0 0 12px;
    display: none; opacity: 1; visibility: visible; pointer-events: auto;
  }
  .dropdown-panel::before { display: none; }
  .nav-dropdown.open .dropdown-panel { display: block; }
  .hamburger { display: flex; }

  .hero-slide { min-height: auto; padding: calc(var(--nav-h) + 50px) 0 90px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-text { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-btns .btn { gap: 9px; padding: 10px 22px 10px 11px; font-size: 14.5px; }
  .hero-btns .btn svg { width: 30px; height: 30px; padding: 7px; }
  .hero-art { height: 340px; }
  .hero-arrow { display: none; }
  .hero-text h1 { font-size: 34px; }
  .section { padding: 70px 0; }
  .section-head h2 { font-size: 28px; }
  .product-grid, .kb-grid { grid-template-columns: 1fr; }
  .review-card { flex-basis: 100%; }
  .review-arrow { display: none; }
  .product-card p { min-height: 0; }

  .footer { padding: 46px 0 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; padding-bottom: 32px; }
  .footer-brand p { max-width: none; }
}

/* ============ Cookie Consent Banner ============ */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
  background: #fff; border-top: 1px solid var(--border);
  box-shadow: 0 -8px 30px rgba(15, 23, 42, .10);
  opacity: 0; visibility: hidden;
  transform: translateY(100%);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.cookie-banner.show {
  opacity: 1; visibility: visible;
  transform: translateY(0);
}
.cookie-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
}
.cookie-text { flex: 1; margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.cookie-text a { color: var(--primary); font-weight: 600; }
.cookie-text a:hover { color: var(--primary-dark); }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  padding: 9px 18px; border-radius: 9px;
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  cursor: pointer; border: 1.5px solid var(--border);
  background: #fff; color: var(--text-2);
  transition: all .2s;
  white-space: nowrap;
}
.cookie-btn:hover { border-color: var(--primary); color: var(--primary); }
.cookie-btn-accept {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-color: transparent; color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .3);
}
.cookie-btn-accept:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(37, 99, 235, .4); }

/* Preferences modal */
.cookie-prefs {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, .5);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
.cookie-prefs.show { opacity: 1; visibility: visible; }
.cookie-prefs-card {
  width: min(480px, calc(100% - 32px));
  background: #fff; border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 24px 26px;
  transform: translateY(10px); transition: transform .25s ease;
}
.cookie-prefs.show .cookie-prefs-card { transform: translateY(0); }
.cookie-prefs-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.cookie-prefs-card > p { font-size: 13.5px; color: var(--text-2); margin-bottom: 8px; }
.cookie-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-top: 1px solid var(--border);
  cursor: pointer;
}
.cookie-opt strong { display: block; font-size: 14.5px; font-weight: 600; }
.cookie-opt small { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.cookie-opt input {
  appearance: none; -webkit-appearance: none;
  width: 40px; height: 22px; border-radius: 999px;
  background: #CBD5E1; position: relative; cursor: pointer;
  flex-shrink: 0; transition: background .2s; margin: 0;
}
.cookie-opt input::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .25);
  transition: left .2s;
}
.cookie-opt input:checked { background: var(--primary); }
.cookie-opt input:checked::after { left: 20px; }
.cookie-opt input:disabled { opacity: .55; cursor: not-allowed; }
.cookie-prefs-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

@media (max-width: 640px) {
  .cookie-inner { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px; }
  .cookie-btns { justify-content: flex-end; flex-wrap: wrap; }
}
