/* Cookie Consent */

:root{
  --lp-bg: #1a1d37;
  --lp-bg2: #0b1220;
  --lp-card: rgba(255,255,255,.08);
  --lp-card2: rgba(255,255,255,.06);
  --lp-border: rgba(255,255,255,.14);
  --lp-text: rgba(255,255,255,.92);
  --lp-muted: rgba(255,255,255,.72);
  --lp-accent: #67d1c4; /* mint */
  --lp-accent2: #9cf1e7;
  --lp-shadow: 0 18px 50px rgba(0,0,0,.45);
  --lp-radius: 16px;
  --lp-font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

/* Banner */
.lp-cookie{
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: none;
  font-family: var(--body-font)!important;
}
.lp-cookie[aria-hidden="false"]{ display:block; }

.lp-cookie__card{
  max-width: 980px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--lp-bg), var(--lp-bg2));
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  box-shadow: var(--lp-shadow);
  padding: 16px 16px 14px;
  backdrop-filter: blur(10px);
  font-family: var(--body-font);
}

.lp-cookie__header{
  display:flex;
  gap: 12px;
  align-items:flex-start;
}

.lp-cookie__badge{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(103, 209, 196, .14);
  border: 1px solid rgba(103, 209, 196, .25);
  flex: 0 0 auto;
}

.lp-cookie__title{
  margin:0;
  font-size: 16px;
  letter-spacing: .2px;
  color: var(--lp-text);
}

.lp-cookie__text{
  margin: 6px 0 8px;
  color: var(--lp-muted);
  line-height: 1.45;
  font-size: 13.5px;
}

.lp-cookie__links{
  margin:0;
  font-size: 13px;
  color: var(--lp-muted);
  font-family: var(--body-font);
}
.lp-cookie__link{
  color: var(--lp-accent2);
  text-decoration: none;
}
.lp-cookie__link:hover{ text-decoration: underline; }
.lp-cookie__dot{ opacity:.6; margin:0 6px; }

.lp-cookie__actions{
  display:flex;
  gap: 10px;
  justify-content:flex-end;
  flex-wrap: wrap;
  margin-top: 12px;
  font-family: var(--body-font);
}

.lp-btn{
  border: 1px solid var(--lp-border);
  background: rgba(255,255,255,.06);
  color: var(--lp-text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}
.lp-btn:hover{ border-color: rgba(255,255,255,.22); }
.lp-btn--primary{
  background: linear-gradient(135deg, rgba(103,209,196,.25), rgba(156,241,231,.18));
  border-color: rgba(103,209,196,.40);
}
.lp-btn--soft{
  background: rgba(103,209,196,.12);
  border-color: rgba(103,209,196,.25);
}
.lp-btn--ghost{
  background: transparent;
}

/* Modal */
.lp-modal{
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  font-family: var(--lp-font);
}
.lp-modal[aria-hidden="false"]{ display:block; }

.lp-modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
}

.lp-modal__card{
  position: relative;
  max-width: 720px;
  margin: 8vh auto 0;
  background: linear-gradient(180deg, var(--lp-bg), var(--lp-bg2));
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  box-shadow: var(--lp-shadow);
  backdrop-filter: blur(10px);
  padding: 16px;
  color: var(--lp-text);
}

.lp-modal__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.lp-modal__title{ font-family: var(--heading-font); margin:0; font-size: 16px; color: var(--lp-text); }
.lp-modal__close{
  border: 1px solid var(--lp-border);
  background: transparent;
  color: var(--lp-text);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  cursor:pointer;
}

.lp-modal__text{
  margin: 10px 0 14px;
  color: var(--lp-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.lp-toggle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  margin-bottom: 10px;
  font-family: var(--body-font);
}
.lp-toggle__name{ font-weight: 700; font-size: 13.5px; }
.lp-toggle__desc{ color: var(--lp-muted); font-size: 12.8px; margin-top: 3px; }

.lp-pill{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(103,209,196,.35);
  background: rgba(103,209,196,.12);
  color: var(--lp-accent2);
  font-weight: 700;
}

/* Switch */
.lp-switch{
  position: relative;
  display:inline-flex;
  align-items:center;
}
.lp-switch input{
  position:absolute;
  opacity:0;
  width:1px;
  height:1px;
}
.lp-switch__ui{
  width: 48px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  display:inline-block;
  position:relative;
  transition: .2s;
}
.lp-switch__ui::after{
  content:"";
  position:absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  transition: .2s;
}
.lp-switch input:checked + .lp-switch__ui{
  background: rgba(103,209,196,.20);
  border-color: rgba(103,209,196,.40);
}
.lp-switch input:checked + .lp-switch__ui::after{
  transform: translateX(20px);
  background: rgba(156,241,231,.95);
}

.lp-modal__links{
  margin-top: 10px;
  font-size: 13px;
  color: var(--lp-muted);
}
.lp-modal__links a{ color: var(--lp-accent2); text-decoration:none; }
.lp-modal__links a:hover{ text-decoration:underline; }
.lp-modal__links span{ margin: 0 8px; opacity:.6; }

.lp-modal__actions{
  display:flex;
  gap: 10px;
  justify-content:flex-end;
  flex-wrap: wrap;
  margin-top: 14px;
  font-family: var(--body-font);
}

/* Reopen button */
.lp-cookie-mini{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9000;
  display: none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--lp-text);
  font-family: var(--lp-font);
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.lp-cookie-mini:hover{ border-color: rgba(255,255,255,.22); }

@media (max-width: 560px){
  .lp-cookie__actions{ justify-content: stretch; }
  .lp-btn{ width: 100%; }
  .lp-modal__card{ margin: 10vh 12px 0; }
}
