/* Tweaks floating panel */
#dg-tweaks {
  position: fixed; right: 16px; bottom: 16px; z-index: 9000;
  width: 320px; max-width: calc(100vw - 32px);
  background: var(--bg-2); color: var(--fg);
  border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  font-family: var(--f-body);
  transform: translateY(20px); opacity: 0; pointer-events: none;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
#dg-tweaks.open { transform: none; opacity: 1; pointer-events: auto; }
.tw-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); font-family: var(--f-head); }
.tw-close { background: none; border: 0; color: var(--fg-dim); font-size: 22px; cursor: pointer; line-height: 1; padding: 0 6px; }
.tw-close:hover { color: var(--fg); }
.tw-body { padding: 14px 16px; display: grid; gap: 14px; }
.tw-body label { display: grid; gap: 8px; font-size: 12px; font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--fg-mute); }
.tw-val { float: right; color: var(--fg); font-weight: 600; }
.tw-seg { display: inline-flex; background: var(--bg-3); border-radius: var(--r-pill); padding: 3px; border: 1px solid var(--line); }
.tw-seg button { flex: 1; background: transparent; color: var(--fg-dim); border: 0; padding: 8px 12px; border-radius: var(--r-pill); cursor: pointer; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; transition: all var(--dur) var(--ease); }
.tw-seg button:hover { color: var(--fg); }
.tw-seg button.on { background: var(--accent); color: white; box-shadow: 0 6px 16px color-mix(in oklch, var(--accent) 50%, transparent); }
.tw-body input[type=range] { width: 100%; accent-color: var(--accent); }

/* ============== Cookie consent banner ============== */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999;
  display: flex; justify-content: center; pointer-events: none;
  animation: cookieIn 320ms var(--ease) both;
}
.cookie-banner.out { animation: cookieOut 260ms var(--ease) both; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes cookieOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(20px); } }
.cookie-card {
  pointer-events: auto;
  max-width: 880px; width: 100%;
  padding: 20px 22px;
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
  border-radius: var(--r-lg);
  background: color-mix(in oklch, var(--bg-2) 92%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
}
.cookie-head { display: flex; gap: 16px; align-items: flex-start; }
.cookie-ico { font-size: 26px; line-height: 1; flex-shrink: 0; }
.cookie-card h4 { font-family: var(--f-head); font-weight: 700; font-size: 16px; margin: 0; color: var(--fg); }
.cookie-card p { color: var(--fg-dim); font-size: 13px; line-height: 1.55; margin-top: 6px; }
.cookie-link { display: inline-block; color: var(--accent); font-size: 12px; margin-top: 8px; font-family: var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.cookie-link:hover { text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions .btn { padding: 10px 18px; font-size: 13px; white-space: nowrap; }
@media (max-width: 720px) {
  .cookie-card { grid-template-columns: 1fr; padding: 18px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}


/* ============== Footer — slim horizontal ============== */
.footer-slim {
  padding: 28px 0 18px;
  margin-top: 80px;
  background: linear-gradient(180deg, transparent, color-mix(in oklch, var(--bg) 80%, black));
  border-top: 1px solid var(--line);
}
/* Reset the legacy 4-col grid so old styles don't apply */
.footer-slim .footer-grid, .footer-slim .footer-bottom { display: none; }

.footer-slim .foot-row {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.footer-slim .foot-row-main { padding-bottom: 14px; }
.footer-slim .foot-row-secondary {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  justify-content: space-between;
}
.footer-slim .foot-row-fine {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  justify-content: space-between;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--fg-mute);
}

.footer-slim .foot-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-head); font-weight: 700;
  margin: 0;
}

/* Chips — services */
.footer-slim .foot-chips {
  display: inline-flex; flex-wrap: wrap; gap: 8px;
  flex: 1; justify-content: center;
}
.footer-slim .foot-chip {
  display: inline-flex; align-items: center;
  padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  font-size: 12.5px; font-family: var(--f-head); font-weight: 500;
  color: var(--fg-dim);
  backdrop-filter: blur(var(--glass-blur));
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}
.footer-slim .foot-chip:hover {
  color: var(--fg);
  border-color: color-mix(in oklch, var(--accent) 45%, transparent);
  background: color-mix(in oklch, var(--accent) 10%, var(--glass-bg));
  transform: translateY(-1px);
}

/* Contact pills */
.footer-slim .foot-contact-mini { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.footer-slim .foot-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  font-size: 13px; color: var(--fg-dim);
  backdrop-filter: blur(var(--glass-blur));
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}
.footer-slim .foot-pill svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.footer-slim a.foot-pill:hover { color: var(--fg); border-color: var(--line-strong); }
.footer-slim .foot-pill-static { cursor: default; }

/* Primary call pill — gradient */
.footer-slim .foot-pill-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  border-color: transparent;
  color: white !important;
  font-family: var(--f-head); font-weight: 600;
  padding: 10px 18px; font-size: 14px;
  box-shadow: 0 8px 24px color-mix(in oklch, var(--accent) 35%, transparent);
}
.footer-slim .foot-pill-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px color-mix(in oklch, var(--accent) 50%, transparent);
}
.footer-slim .foot-pill-primary svg { stroke: white; fill: white; stroke-width: 0; }

/* Legal inline */
.footer-slim .foot-legal-inline {
  display: inline-flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  font-size: 12px; color: var(--fg-mute);
}
.footer-slim .foot-legal-inline a {
  color: var(--fg-mute);
  transition: color var(--dur) var(--ease);
}
.footer-slim .foot-legal-inline a:hover { color: var(--fg); }
.footer-slim .foot-sep { color: var(--line-strong); }

.footer-slim .foot-admin {
  color: var(--fg-mute);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  opacity: .55; transition: opacity var(--dur) var(--ease);
}
.footer-slim .foot-admin:hover { opacity: 1; color: var(--accent); }

@media (max-width: 760px) {
  .footer-slim .foot-row { justify-content: center; text-align: center; }
  .footer-slim .foot-chips { justify-content: center; }
  .footer-slim .foot-row-secondary, .footer-slim .foot-row-fine { flex-direction: column; gap: 12px; }
  .footer-slim .foot-pill { font-size: 12px; padding: 7px 12px; }
}

/* ============== Footer — minimal horizontal ============== */
.footer.footer-slim {
  padding: 28px 0 22px;
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, color-mix(in oklch, var(--bg) 70%, black));
}
/* hide any legacy grid/bottom layouts if present */
.footer-slim .footer-grid, .footer-slim .footer-bottom { display: none; }

.foot-nav {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 8px 28px;
  padding-bottom: 22px;
}
.foot-nav a {
  font-family: var(--f-head); font-weight: 500; font-size: 14px;
  color: var(--fg-dim);
  padding: 6px 4px;
  position: relative;
  transition: color var(--dur) var(--ease);
}
.foot-nav a::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 2px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.foot-nav a:hover { color: var(--fg); }
.foot-nav a:hover::after { transform: scaleX(1); }

.foot-fine {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em;
  color: var(--fg-mute);
}
.foot-fine-l, .foot-fine-r { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.foot-fine a {
  color: var(--fg-mute);
  transition: color var(--dur) var(--ease);
}
.foot-fine a:hover { color: var(--fg); }
.foot-fine .foot-sep { opacity: .5; }
.foot-admin { letter-spacing: .14em; text-transform: uppercase; opacity: .55; }
.foot-admin:hover { opacity: 1; color: var(--accent) !important; }

@media (max-width: 720px) {
  .foot-nav { gap: 6px 18px; font-size: 13px; }
  .foot-fine { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
}
