/* ═══════════════════════════════════════════
   Darthost Consent 2026 — v3.0.0
   GDPR/ePrivacy Consent UI
   ═══════════════════════════════════════════ */

.dhc25-hidden { display: none !important; }

/* ═══════════════════════════════════════════
   MODE: Bottom Bar
   ═══════════════════════════════════════════ */

#dhc25-root.dhc25-mode-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 99999;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Arial, sans-serif;
  line-height: 1.5;
}

.dhc25-mode-bar .dhc25-bar {
  background: var(--dhc25-bar-bg, #1f2937);
  color: var(--dhc25-bar-text, #f9fafb);
  border-top: 1px solid var(--dhc25-bar-border, #374151);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  animation: dhc25-slideUp 0.3s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes dhc25-slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.dhc25-mode-bar .dhc25-bar-inner {
  display: flex; align-items: center; gap: 20px;
  padding: 14px 24px; max-width: 1400px; margin: 0 auto;
}

.dhc25-mode-bar .dhc25-bar-content { flex: 1; min-width: 0; }

.dhc25-mode-bar .dhc25-bar-title {
  font-size: 0.95rem; font-weight: 700; margin-right: 8px;
}

.dhc25-mode-bar .dhc25-bar-desc {
  font-size: 0.88rem; opacity: 0.9; display: inline;
}

.dhc25-mode-bar .dhc25-bar-links {
  display: inline-flex; gap: 10px; margin-left: 8px; font-size: 0.82rem;
}

.dhc25-mode-bar .dhc25-bar-links a {
  color: inherit; opacity: 0.8; text-decoration: underline;
  text-underline-offset: 2px; transition: opacity 0.15s;
}

.dhc25-mode-bar .dhc25-bar-links a:hover { opacity: 1; }

.dhc25-mode-bar .dhc25-bar-actions {
  display: flex; gap: 8px; flex-shrink: 0;
}

.dhc25-mode-bar .dhc25-bar-btn {
  border: 1px solid var(--dhc25-bar-border, #4b5563);
  border-radius: 8px; padding: 8px 16px;
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  background: transparent; color: var(--dhc25-bar-text, #f9fafb);
  transition: all 0.15s ease; white-space: nowrap;
}

.dhc25-mode-bar .dhc25-bar-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}

.dhc25-mode-bar .dhc25-bar-btn:active { transform: translateY(1px); }

.dhc25-mode-bar .dhc25-bar-btn-primary {
  background: var(--dhc25-bar-btn-bg, #1e90ff);
  color: var(--dhc25-bar-btn-text, #fff);
  border-color: transparent;
}

.dhc25-mode-bar .dhc25-bar-btn-primary:hover {
  filter: brightness(1.1);
  background: var(--dhc25-bar-btn-bg, #1e90ff);
}

/* Bar Expandable Panel */
.dhc25-mode-bar .dhc25-bar-panel {
  padding: 12px 24px 16px;
  border-top: 1px solid var(--dhc25-bar-border, #374151);
  max-width: 1400px; margin: 0 auto;
  animation: dhc25-fadeIn 0.2s ease both;
}

@keyframes dhc25-fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dhc25-mode-bar .dhc25-bar-cats {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px;
}

.dhc25-mode-bar .dhc25-bar-cat {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06); padding: 8px 14px;
  border-radius: 8px; border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.88rem; cursor: pointer; transition: background 0.15s;
}

.dhc25-mode-bar .dhc25-bar-cat:hover { background: rgba(255,255,255,0.1); }

.dhc25-mode-bar .dhc25-bar-cat span { font-weight: 600; order: 1; }

.dhc25-mode-bar .dhc25-bar-cat input[type="checkbox"] {
  order: 2; appearance: none; -webkit-appearance: none;
  width: 38px; height: 22px; border-radius: 999px;
  background: #4b5563; position: relative; outline: none;
  cursor: pointer; transition: background 0.18s ease; flex-shrink: 0;
}

.dhc25-mode-bar .dhc25-bar-cat input[type="checkbox"]::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  transition: transform 0.18s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.dhc25-mode-bar .dhc25-bar-cat input[type="checkbox"]:checked {
  background: var(--dhc25-bar-btn-bg, #1e90ff);
}

.dhc25-mode-bar .dhc25-bar-cat input[type="checkbox"]:checked::after {
  transform: translateX(16px);
}

.dhc25-mode-bar .dhc25-bar-cat input[type="checkbox"]:disabled {
  opacity: 0.5; cursor: not-allowed;
}

/* ═══════════════════════════════════════════
   MODE: Modal
   ═══════════════════════════════════════════ */

#dhc25-root.dhc25-mode-modal {
  position: fixed; inset: 0; z-index: 99999;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Arial, sans-serif;
  line-height: 1.5;
}

.dhc25-mode-modal .dhc25-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.58);
  backdrop-filter: saturate(120%) blur(2px);
}

.dhc25-mode-modal .dhc25-box {
  position: absolute; max-width: var(--dhc25-maxw, 560px);
  width: min(92vw, var(--dhc25-maxw, 560px));
  left: 50%; top: 50%; transform: translate(-50%,-50%);
  background: var(--dhc25-bg, #111827); color: var(--dhc25-text, #fff);
  border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  padding: 22px 20px; border: 1px solid rgba(255,255,255,0.08);
  animation: dhc25-modalIn 0.3s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes dhc25-modalIn {
  from { opacity: 0; transform: translate(-50%,-46%); }
  to   { opacity: 1; transform: translate(-50%,-50%); }
}

.dhc25-mode-modal .dhc25-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.dhc25-mode-modal .dhc25-header h2 { margin: 0; font-size: 1.3rem; letter-spacing: 0.2px; }
.dhc25-mode-modal .dhc25-desc { opacity: 0.96; margin: 6px 0 0 0; }

.dhc25-mode-modal .dhc25-cats { display: grid; gap: 8px; margin-top: 14px; }

.dhc25-mode-modal .dhc25-cat {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.06); padding: 10px 12px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,0.06);
}

.dhc25-mode-modal .dhc25-cat span { order: 1; font-weight: 600; font-size: 0.95rem; }

.dhc25-mode-modal .dhc25-cat input[type="checkbox"] {
  order: 2; appearance: none; -webkit-appearance: none;
  width: 44px; height: 26px; border-radius: 999px;
  background: #6b7280; position: relative; outline: none;
  cursor: pointer; transition: background 0.18s ease;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.08);
}

.dhc25-mode-modal .dhc25-cat input[type="checkbox"]::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  transition: transform 0.18s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.dhc25-mode-modal .dhc25-cat input[type="checkbox"]:checked { background: var(--dhc25-primary, #1e90ff); }
.dhc25-mode-modal .dhc25-cat input[type="checkbox"]:checked::after { transform: translateX(18px); }
.dhc25-mode-modal .dhc25-cat input[type="checkbox"]:disabled { opacity: 0.6; cursor: not-allowed; }

.dhc25-mode-modal .dhc25-actions {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 16px;
}

.dhc25-mode-modal .dhc25-btn {
  border-radius: 12px; border: 0; padding: 12px 14px; cursor: pointer;
  font-weight: 700; letter-spacing: 0.2px;
  transition: transform 0.06s ease, box-shadow 0.06s ease; outline-offset: 2px;
}

.dhc25-mode-modal .dhc25-btn:active { transform: translateY(1px); }
.dhc25-mode-modal .dhc25-accept-all { background: var(--dhc25-primary, #1e90ff); color: var(--dhc25-btn-text, #fff); }
.dhc25-mode-modal .dhc25-reject-all { background: #374151; color: #fff; }
.dhc25-mode-modal .dhc25-customize { background: var(--dhc25-secondary, #10b981); color: var(--dhc25-btn-text, #fff); }
.dhc25-mode-modal .dhc25-save { background: var(--dhc25-primary, #1e90ff); color: var(--dhc25-btn-text, #fff); width: 100%; margin-top: 8px; }

.dhc25-mode-modal .dhc25-links { margin-top: 12px; font-size: 0.9rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; opacity: 0.95; }
.dhc25-mode-modal .dhc25-links ul { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; }
.dhc25-mode-modal .dhc25-links a { color: #fff; text-decoration: underline; }
.dhc25-mode-modal .dhc25-links-title { font-weight: 700; opacity: 0.9; }

.dhc25-mode-modal .dhc25-manage-floating {
  position: absolute; right: 12px; bottom: 12px;
  border-radius: 999px; border: 0; padding: 10px 12px;
  background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,0.2); cursor: pointer;
}

/* ═══════════════════════════════════════════
   Shared Components
   ═══════════════════════════════════════════ */

.dhc25-linklike {
  background: none; border: none; padding: 10px 0 6px 0;
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer; color: inherit; font-weight: 600;
  font-size: 0.88rem; opacity: 0.85; transition: opacity 0.15s;
}

.dhc25-linklike:hover { opacity: 1; }
.dhc25-info { margin-top: 8px; }
.dhc25-subtitle { font-size: 1rem; margin: 0 0 8px 0; }

.dhc25-table-wrap {
  max-height: 260px; overflow: auto;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 12px;
}

.dhc25-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.88rem; }

.dhc25-table thead th {
  position: sticky; top: 0; background: rgba(255,255,255,0.08);
  backdrop-filter: blur(2px); text-align: left; padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.12); font-weight: 700;
}

.dhc25-table td { padding: 9px; border-bottom: 1px solid rgba(255,255,255,0.06); vertical-align: top; }
.dhc25-table tbody tr:nth-child(odd) { background: rgba(255,255,255,0.03); }

.dhc25-frontend .dhc25-table { color: inherit; }
.dhc25-frontend .dhc25-table-wrap { border-color: rgba(0,0,0,0.12); }
.dhc25-frontend .dhc25-table thead th { background: rgba(0,0,0,0.04); border-bottom-color: rgba(0,0,0,0.1); }
.dhc25-frontend .dhc25-table td { border-bottom-color: rgba(0,0,0,0.06); }

/* ═══════════════════════════════════════════
   Footer Link
   ═══════════════════════════════════════════ */

.dhc25-footer-link {
  position: fixed; right: 12px; bottom: 12px; z-index: 99998;
  border: 1px solid rgba(0,0,0,0.12); border-radius: 999px;
  padding: 6px 12px; cursor: pointer;
  background: rgba(17,24,39,0.65); color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  font-weight: 600; letter-spacing: 0.2px; font-size: 0.82rem; line-height: 1;
  backdrop-filter: saturate(120%) blur(4px); opacity: 0.85; text-decoration: none;
  transition: opacity 0.15s ease, transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.dhc25-footer-link:hover,
.dhc25-footer-link:focus {
  opacity: 1; transform: translateY(-1px);
  background: rgba(17,24,39,0.82); box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  outline: 2px solid rgba(255,255,255,0.2); outline-offset: 2px;
}

/* ═══════════════════════════════════════════
   Inherit Mode
   ═══════════════════════════════════════════ */

#dhc25-root[data-inherit="1"].dhc25-mode-bar .dhc25-bar {
  background: var(--dhc25-inherit-bg);
  color: var(--dhc25-inherit-text);
  border-top-color: var(--dhc25-inherit-border);
}

#dhc25-root[data-inherit="1"].dhc25-mode-bar .dhc25-bar-btn {
  border-color: var(--dhc25-inherit-border);
  color: var(--dhc25-inherit-text);
}

#dhc25-root[data-inherit="1"].dhc25-mode-bar .dhc25-bar-btn-primary {
  background: var(--dhc25-inherit-accent, var(--dhc25-bar-btn-bg));
  color: var(--dhc25-inherit-accent-text, var(--dhc25-bar-btn-text));
  border-color: transparent;
}

#dhc25-root[data-inherit="1"].dhc25-mode-bar .dhc25-bar-cat {
  background: var(--dhc25-inherit-card);
  border-color: var(--dhc25-inherit-border);
}

/* ═══════════════════════════════════════════
   Legal Document Styles
   ═══════════════════════════════════════════ */

.dhc25-legal-doc {
  max-width: 800px;
  line-height: 1.75;
  color: var(--dhc25-legal-text, #374151) !important;
}

.dhc25-legal-doc h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--dhc25-legal-heading, #111827) !important;
}

.dhc25-legal-doc h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--dhc25-legal-border, #e5e7eb) !important;
  color: var(--dhc25-legal-heading, #111827) !important;
}

.dhc25-legal-doc h3 {
  color: var(--dhc25-legal-heading, #111827) !important;
}

.dhc25-legal-doc a {
  color: var(--dhc25-legal-link, #2563eb) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dhc25-legal-doc a:hover {
  opacity: 0.8;
}

.dhc25-legal-doc ul { padding-left: 1.5rem; }
.dhc25-legal-doc li { margin-bottom: 0.4rem; }

.dhc25-legal-doc p,
.dhc25-legal-doc li {
  color: var(--dhc25-legal-text, #374151) !important;
}

.dhc25-legal-doc strong {
  color: var(--dhc25-legal-heading, #111827) !important;
}

.dhc25-legal-doc em {
  color: var(--dhc25-legal-text, #6b7280) !important;
}

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {
  .dhc25-mode-bar .dhc25-bar-inner {
    flex-direction: column; align-items: stretch;
    padding: 12px 16px; gap: 12px;
  }
  .dhc25-mode-bar .dhc25-bar-actions { justify-content: stretch; }
  .dhc25-mode-bar .dhc25-bar-btn { flex: 1; text-align: center; padding: 10px 8px; }
  .dhc25-mode-bar .dhc25-bar-cats { flex-direction: column; }
  .dhc25-mode-bar .dhc25-bar-panel { padding: 10px 16px 14px; }
  .dhc25-mode-modal .dhc25-actions { grid-template-columns: 1fr; gap: 8px; }
  .dhc25-mode-modal .dhc25-box { padding: 18px 16px; }
  .dhc25-table th, .dhc25-table td { padding: 8px; }
  .dhc25-footer-link { font-size: 0.78rem; padding: 5px 9px; }
}
