/* Treno Cookie Consent — Brand UI matching trenomarkets.com */
:root {
  --treno-accent: #00FFED;
  --treno-accent-dark: #00cfc0;
  --treno-bg: #0a0a0a;
  --treno-surface: #141414;
  --treno-border: rgba(0,255,237,0.18);
  --treno-text: #ffffff;
  --treno-muted: #8b949e;
  --treno-radius: 12px;
  --treno-shadow: 0 24px 64px rgba(0,0,0,0.7), 0 4px 16px rgba(0,255,237,0.08);
  --treno-transition: 0.28s cubic-bezier(0.4,0,0.2,1);
}

/* ── Overlay / Backdrop ── */
#treno-cookie-root {
  position: fixed;
  inset: 0;
  z-index: 999999;
  pointer-events: none;
}

#treno-cookie-root.treno-visible {
  pointer-events: all;
}

/* ── Main Banner ── */
.treno-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--treno-bg);
  border-top: 1px solid var(--treno-border);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  z-index: 1000000;
  transform: translateY(110%);
  transition: transform var(--treno-transition);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.5);
}

.treno-banner.treno-pos-top {
  top: 0; bottom: auto;
  border-top: none;
  border-bottom: 1px solid var(--treno-border);
  transform: translateY(-110%);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.treno-banner.treno-pos-bottom-left,
.treno-banner.treno-pos-bottom-right {
  left: auto; right: auto; bottom: 24px;
  max-width: 420px;
  border-radius: var(--treno-radius);
  border: 1px solid var(--treno-border);
  flex-direction: column;
  align-items: flex-start;
  transform: translateY(calc(100% + 40px));
}

.treno-banner.treno-pos-bottom-left  { left:  24px; }
.treno-banner.treno-pos-bottom-right { right: 24px; }

.treno-banner.treno-show {
  transform: translateY(0);
}

/* Gold accent line */
.treno-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--treno-accent), transparent);
}

.treno-banner.treno-pos-top::before {
  top: auto; bottom: 0;
}

/* ── Banner Content ── */
.treno-banner-text {
  flex: 1;
  min-width: 260px;
}

.treno-banner-text h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--treno-text);
  margin: 0 0 6px;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.treno-banner-text h2::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--treno-accent);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0,255,237,0.6);
}

.treno-banner-text p {
  font-size: 13px;
  color: var(--treno-muted);
  margin: 0;
  line-height: 1.55;
}

.treno-banner-text p a {
  color: var(--treno-accent);
  text-decoration: none;
}
.treno-banner-text p a:hover { text-decoration: underline; }

/* ── Button Group ── */
.treno-btn-group {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
}

.treno-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 10px 22px !important;
  border-radius: 100px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  border: none !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  font-family: inherit !important;
  letter-spacing: 0.02em !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

/* Primary — teal fill, dark text */
.treno-btn.treno-btn-primary {
  background: #00FFED !important;
  color: #0a0a0a !important;
  border: 2px solid #00FFED !important;
  font-weight: 700 !important;
}
.treno-btn.treno-btn-primary:hover {
  background: #33fff2 !important;
  border-color: #33fff2 !important;
  color: #0a0a0a !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 20px rgba(0,255,237,0.35) !important;
}

/* Ghost — subtle grey pill, teal on hover */
.treno-btn.treno-btn-ghost {
  background: rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.75) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
}
.treno-btn.treno-btn-ghost:hover {
  background: rgba(0,255,237,0.1) !important;
  color: #00FFED !important;
  border: 1px solid rgba(0,255,237,0.4) !important;
}

/* Outline — teal border and text */
.treno-btn.treno-btn-outline {
  background: rgba(0,255,237,0.06) !important;
  color: #00FFED !important;
  border: 1px solid rgba(0,255,237,0.35) !important;
}
.treno-btn.treno-btn-outline:hover {
  background: rgba(0,255,237,0.14) !important;
  color: #00FFED !important;
  border: 1px solid #00FFED !important;
  box-shadow: 0 0 14px rgba(0,255,237,0.18) !important;
}

/* ── Modal ── */
.treno-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 1000001;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--treno-transition);
}

.treno-modal-overlay.treno-show {
  opacity: 1;
}

@media (min-width: 600px) {
  .treno-modal-overlay {
    align-items: center;
  }
}

.treno-modal {
  background: var(--treno-bg);
  border: 1px solid var(--treno-border);
  border-radius: var(--treno-radius);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--treno-shadow);
  transform: translateY(20px);
  transition: transform var(--treno-transition);
  scrollbar-width: thin;
  scrollbar-color: var(--treno-border) transparent;
}

.treno-modal-overlay.treno-show .treno-modal {
  transform: translateY(0);
}

.treno-modal-header {
  padding: 24px 24px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  background: var(--treno-bg);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 16px;
  margin-bottom: 0;
  z-index: 1;
}

.treno-modal-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--treno-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.treno-modal-header h3 svg {
  color: var(--treno-accent);
  flex-shrink: 0;
}

.treno-modal-close {
  background: none;
  border: none;
  color: var(--treno-muted);
  cursor: pointer;
  font-size: 20px;
  padding: 0;
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.15s;
  flex-shrink: 0;
}
.treno-modal-close:hover {
  background: rgba(255,255,255,0.08);
  color: var(--treno-text);
}

.treno-modal-body {
  padding: 20px 24px;
}

.treno-modal-intro {
  font-size: 13px;
  color: var(--treno-muted);
  line-height: 1.6;
  margin: 0 0 20px;
}

/* ── Cookie Category Toggle ── */
.treno-category {
  background: var(--treno-surface);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}

.treno-category.treno-active {
  border-color: rgba(200,169,110,0.3);
}

.treno-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.treno-category-info {
  flex: 1;
}

.treno-category-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--treno-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.treno-badge-required {
  font-size: 10px;
  font-weight: 600;
  background: rgba(200,169,110,0.15);
  color: var(--treno-accent);
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.treno-category-desc {
  font-size: 12px;
  color: var(--treno-muted);
  margin-top: 4px;
  line-height: 1.5;
}

/* ── Toggle Switch ── */
.treno-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.treno-toggle input {
  opacity: 0;
  width: 0; height: 0;
  position: absolute;
}

.treno-toggle-track {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
  border: 1px solid rgba(255,255,255,0.12);
}

.treno-toggle-track::after {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.treno-toggle input:checked + .treno-toggle-track {
  background: var(--treno-accent);
  border-color: var(--treno-accent);
}

.treno-toggle input:checked + .treno-toggle-track::after {
  transform: translateX(20px);
}

.treno-toggle input:disabled + .treno-toggle-track {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Modal Footer ── */
.treno-modal-footer {
  padding: 16px 24px 24px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── Compliance Badge ── */
.treno-compliance-note {
  font-size: 11px;
  color: rgba(139,148,158,0.6);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.treno-compliance-note svg {
  flex-shrink: 0;
  opacity: 0.5;
}

/* ── Cookie Settings Link (re-open) ── */
.treno-settings-trigger {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: var(--treno-bg);
  border: 1px solid var(--treno-border);
  color: var(--treno-muted);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
  transition: all 0.18s;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.treno-settings-trigger.treno-show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.treno-settings-trigger:hover {
  border-color: var(--treno-accent);
  color: var(--treno-text);
  background: var(--treno-surface);
}

/* ── Animations ── */
@keyframes treno-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .treno-banner {
    padding: 20px 16px;
    gap: 16px;
  }
  .treno-btn-group {
    width: 100%;
  }
  .treno-btn {
    flex: 1;
    justify-content: center;
  }
  .treno-modal {
    border-radius: var(--treno-radius) var(--treno-radius) 0 0;
    max-height: 80vh;
  }
  .treno-settings-trigger {
    bottom: 12px; left: 12px;
  }
}
