/* =========================
   COOKIE BAR (MINIMAL UI)
========================= */

.cookie-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translate(-50%, 120%);
  width: calc(100% - 32px);
  max-width: 900px;

  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(10px);
  color: #fff;

  border-radius: 14px;
  padding: 14px 18px;

  box-shadow: 0 10px 30px rgba(0,0,0,0.35);

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;

  z-index: 9999;

  opacity: 0;
  transition: all 0.35s ease;
}

.cookie-bar.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 16px;
}

.cookie-text {
  font-size: 14px;
  line-height: 1.4;
  color: #eaeaea;
}

/* =========================
   BUTTONS
========================= */

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-buttons button {
  padding: 8px 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  transition: 0.2s ease;
}

.cookie-buttons button:hover {
  transform: translateY(-1px);
}

.cookie-buttons .primary {
  background: #4f46e5;
  color: white;
}

.cookie-buttons .secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.cookie-buttons .ghost {
  background: transparent;
  color: #cfcfcf;
}

/* =========================
   MODAL BACKDROP
========================= */

.cookie-settings {
  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 10000;

  opacity: 0;
  visibility: hidden;

  transition: 0.25s ease;
}

.cookie-settings.show {
  opacity: 1;
  visibility: visible;
}

/* =========================
   MODAL BOX
========================= */

.cookie-settings-box {
  width: 420px;
  max-width: calc(100% - 32px);

  background: #ffffff;
  color: #111;

  border-radius: 16px;
  padding: 20px;

  box-shadow: 0 20px 60px rgba(0,0,0,0.3);

  transform: scale(0.95);
  animation: pop 0.25s ease forwards;
}

@keyframes pop {
  to {
    transform: scale(1);
  }
}

.cookie-settings-box h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

/* =========================
   CHECKBOXES
========================= */

.cookie-settings-box label {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 0;
  font-size: 14px;

  border-bottom: 1px solid #eee;
}

.cookie-settings-box input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #4f46e5;
}

/* =========================
   MODAL ACTIONS
========================= */

.settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;

  margin-top: 16px;
}

.settings-actions button {
  padding: 8px 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  transition: 0.2s;
}

.settings-actions button:first-child {
  background: #f3f4f6;
  color: #111;
}

.settings-actions button:last-child {
  background: #4f46e5;
  color: white;
}

.settings-actions button:hover {
  transform: translateY(-1px);
}

@media (max-width: 768px) {

  /* =========================
     GLOBAL LAYOUT FIX
  ========================= */

  body {
    overflow-x: hidden;
  }

  /* ако имаш cards / services / pricing */
  .container,
  .wrapper,
  .content {
    padding: 0 12px;
  }

  /* =========================
     PRICING / SERVICE CARDS
     (от снимката това ти чупи layout-а)
  ========================= */

  .card,
  .service-card,
  .plan,
  .pricing-box {
    width: 100% !important;
    max-width: 100% !important;

    margin: 12px 0;
  }

  /* ако имаш flex row за cards */
  .row,
  .services,
  .plans {
    display: flex;
    flex-direction: column !important;
    gap: 12px;
  }

  /* =========================
     BUTTONS (All Services)
  ========================= */

  button,
  .btn,
  .cookie-buttons button {
    width: 100%;
  }

  .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }

  /* =========================
     COOKIE BAR MOBILE FIX
  ========================= */

  .cookie-bar {
    left: 0;
    transform: translateY(120%);
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    bottom: 0;

    padding: 14px;
  }

  .cookie-bar.show {
    transform: translateY(0);
  }

  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }

  /* текстът да не стои в ред */
  .cookie-text {
    font-size: 13px;
  }

  /* =========================
     MODAL FIX (cookie settings)
  ========================= */

  .cookie-settings-box {
    width: 100%;
    max-width: 100%;
    margin: 0 12px;
  }

  .settings-actions {
    flex-direction: column;
  }

  .settings-actions button {
    width: 100%;
  }
}