/* ================================================================
   TRAVELICA – detail.css  |  Luxury Dark Editorial v3
   Dark booking panel + clean editorial content
   ================================================================ */

/* ── HERO ─────────────────────────────────────────────────── */
.dt-hero {
  position: relative;
  height: 62vh;
  min-height: 420px;
  max-height: 600px;
  overflow: hidden;
  margin-top: 68px;
}

.dt-hero-bg {
  position: absolute;
  inset: 0;
}

.dt-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.06);
  transition: transform 11s ease-out;
}

.dt-hero.ready .dt-hero-img {
  transform: scale(1);
}

.dt-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6, 7, 10, .96) 0%, rgba(6, 7, 10, .62) 42%, rgba(6, 7, 10, .08) 76%, transparent 100%),
    linear-gradient(to right, rgba(6, 7, 10, .5) 0%, transparent 55%);
}

/* Back */
.dt-back-btn {
  position: absolute;
  top: 28px;
  left: 48px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, .72);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 9px 20px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
  border-radius: 2px;
  transition: all .22s;
}

.dt-back-btn:hover {
  background: rgba(255, 255, 255, .13);
  border-color: rgba(255, 255, 255, .38);
  color: #fff;
}

/* Hero content */
.dt-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
}

.dt-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px 52px;
  width: 100%;
}

/* Breadcrumb */
.dt-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, .38);
  margin-bottom: 18px;
  letter-spacing: .3px;
}

.dt-breadcrumb a {
  color: rgba(255, 255, 255, .5);
  transition: color .2s;
}

.dt-breadcrumb a:hover {
  color: #fff;
}

.dt-bc-sep {
  color: rgba(255, 255, 255, .2);
}

/* Code pill */
.dt-code-badge {
  display: inline-block;
  background: #E8973D;
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 1px;
  margin-bottom: 14px;
}

/* Title */
.dt-hero-title {
  font-size: clamp(26px, 4.5vw, 56px);
  font-weight: 900;
  color: #fff;
  line-height: 1.02;
  letter-spacing: -2px;
  margin-bottom: 22px;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .2);
}

/* Meta pills */
.dt-meta-row {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.dt-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, .75);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 20px;
  letter-spacing: .3px;
  border-right: 1px solid rgba(255, 255, 255, .15);
}

.dt-meta-pill:first-child {
  padding-left: 0;
}

.dt-meta-pill:last-child {
  border-right: none;
}

/* ── MAIN LAYOUT ──────────────────────────────────────────── */
.dt-main {
  background: #f7f9fb;
  padding: 48px 0 100px;
  min-height: 60vh;
}

.dt-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

/* ── CONTENT PANELS ───────────────────────────────────────── */
.dt-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dt-panel {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 14px !important;
  padding: 36px 40px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
}

.dt-panel:first-child {
  border-radius: 4px 4px 0 0;
}

.dt-panel:last-of-type {
  border-radius: 0 0 4px 4px;
}

.dt-panel-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dt-panel-title::after {
  content: '';
  display: block;
  flex: 1;
  height: 1px;
  background: #e8e8e8;
}

/* ── STATS ROW (replaces 4-box grid) ─────────────────────── */
.dt-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  overflow: hidden;
}

.dt-stat-item {
  padding: 22px 24px;
  border-right: 1px solid #e8e8e8;
  transition: background .2s;
}

.dt-stat-item:last-child {
  border-right: none;
}

.dt-stat-item:hover {
  background: #f0f7ff;
}

.dt-stat-lbl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 8px;
  display: block;
}

.dt-stat-val {
  font-size: 15px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.3;
  letter-spacing: -.2px;
}

/* ── INCLUDES & EXCLUDES ──────────────────────────────────── */
.dt-incex-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 44px;
}

.dt-incex-heading {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
}

.dt-inc-h {
  color: #16a34a;
}

.dt-exc-h {
  color: #ef4444;
}

.dt-list-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  font-size: 15px;
  color: #1e293b;
  font-weight: 500;
  border-bottom: 1px solid #f1f5f9;
  line-height: 1.55;
}

.dt-list-item:last-child {
  border-bottom: none;
}

/* Clean SVG-based indicators */
.dt-inc-check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #16a34a;
}

.dt-exc-cross {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #ef4444;
}

/* ── ITINERARY ────────────────────────────────────────────── */
/* ── ITINERARY ACCORDION ──────────────────────────────────── */
.dt-panel-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.dt-panel-header-row .dt-panel-title {
  margin-bottom: 0;
}

.dt-itin-count {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #0284c7;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  padding: 4px 12px;
  border-radius: 6px;
}

.dt-itin-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dt-itin-item {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  transition: all .25s ease;
  overflow: hidden;
}

.dt-itin-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.dt-itin-item.active {
  border-color: #0284c7;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.09);
}

.dt-itin-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  user-select: none;
  transition: background-color .2s ease;
}

.dt-itin-item.active .dt-itin-header {
  background-color: #f8fafc;
}

.dt-itin-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.dt-day-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #0284c7;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  padding: 5px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .2s ease;
}

.dt-itin-item.active .dt-day-badge {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.dt-itin-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.3px;
  line-height: 1.35;
  margin: 0;
}

.dt-itin-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  flex-shrink: 0;
  transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dt-itin-item:hover .dt-itin-toggle {
  background: #e2e8f0;
  color: #0f172a;
}

.dt-itin-item.active .dt-itin-toggle {
  background: #0284c7;
  color: #ffffff;
  transform: rotate(45deg);
}

.dt-toggle-icon {
  transition: transform .25s ease;
}

.dt-itin-body {
  display: none;
  padding: 0 20px 20px 20px;
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
  animation: dtSlideDown .25s ease forwards;
}

.dt-itin-item.active .dt-itin-body {
  display: block;
}

@keyframes dtSlideDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dt-itin-body-inner {
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dt-itin-img-wrap {
  width: 100%;
  max-width: 480px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dt-itin-img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.dt-itin-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.75;
  margin: 0;
}

/* ── IMPORTANT NOTE ───────────────────────────────────────── */
.dt-note-box {
  background: #f0f7ff;
  border: 1px solid #cce0ff;
  border-left: 3px solid #1a73e8;
  padding: 22px 28px;
  margin-top: 2px;
  border-radius: 0 3px 3px 0;
}

.dt-note-top {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1a73e8;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dt-note-text {
  font-size: 13px;
  color: #555;
  line-height: 1.75;
}

.dt-note-text a {
  color: #1a73e8;
  font-weight: 600;
}

.dt-note-terms-row {
  margin-top: 14px;
}

.dt-note-terms-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #0284c7;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 8px;
  border: 1.5px solid #bae6fd;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s ease;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.08);
}

.dt-note-terms-btn:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.18);
}


/* ── DARK BOOKING SIDEBAR ─────────────────────────────────── */
.dt-sidebar {
  position: sticky;
  top: 88px;
}

.dt-booking-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: 36px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
}

/* Price header */
.dt-price-header {
  padding-bottom: 24px;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 24px;
}

.dt-price-from-lbl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #999;
  display: block;
  margin-bottom: 8px;
}

.dt-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.dt-price-amount {
  font-size: 34px;
  font-weight: 900;
  color: #1a73e8;
  letter-spacing: -1.5px;
  line-height: 1;
}

.dt-price-per {
  font-size: 13px;
  color: #999;
  font-weight: 400;
}

/* Trip info on dark */
.dt-trip-info-box {
  background: #f7f9fb;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dt-tib-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

.dt-tib-lbl {
  color: #666;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 7px;
}

.dt-tib-lbl svg {
  color: #999;
}

.dt-tib-val {
  font-weight: 700;
  color: #1a1a2e;
  text-align: right;
}

/* Form on dark */
.dt-form-group {
  margin-bottom: 16px;
}

.dt-form-lbl {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 8px;
}

.dt-form-input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  color: #1a1a2e;
  background: #fff;
  box-sizing: border-box;
  transition: border-color .2s, background .2s;
}

.dt-form-input:focus {
  outline: none;
  border-color: #1a73e8;
  background: #fff;
}

.dt-form-input::placeholder {
  color: #aaa;
}

/* Pax counter */
.dt-pax-row {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.dt-pax-btn {
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
  flex-shrink: 0;
}

.dt-pax-btn:hover {
  background: #f0f7ff;
  color: #1a73e8;
}

.dt-pax-input {
  flex: 1;
  border: none;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  color: #1a1a2e;
  font-family: 'Poppins', sans-serif;
  background: transparent;
  padding: 8px 4px;
  -moz-appearance: textfield;
}

.dt-pax-input::-webkit-outer-spin-button,
.dt-pax-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.dt-pax-input:focus {
  outline: none;
}

/* Total box — amber on dark */
.dt-total-box {
  background: #f0f7ff;
  border: 1px solid #cce0ff;
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0;
}

.dt-total-lbl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1a73e8;
}

.dt-total-val {
  font-size: 22px;
  font-weight: 900;
  color: #1a73e8;
  letter-spacing: -1px;
}

/* WhatsApp Book Button */
.dt-book-btn {
  width: 100%;
  padding: 18px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .25s, transform .2s;
  letter-spacing: .3px;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 16px;
}

.dt-book-btn:hover {
  background: #1db954;
  transform: translateY(-1px);
}

/* Trust */
.dt-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding-top: 16px;
  border-top: 1px solid #e8e8e8;
}

.dt-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #999;
  font-weight: 600;
  letter-spacing: .5px;
  padding: 0 16px;
  border-right: 1px solid #e8e8e8;
}

.dt-trust-item:last-child {
  border-right: none;
}

.dt-trust-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color, #ccc);
  flex-shrink: 0;
}

/* ── STATES ───────────────────────────────────────────────── */
.dt-loading-state,
.dt-notfound-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 65vh;
  gap: 14px;
  text-align: center;
  padding: 60px 20px;
  margin-top: 68px;
  background: #f7f9fb;
}

.dt-spinner {
  width: 40px;
  height: 40px;
  border: 2px solid #e8e8e8;
  border-top-color: #1a73e8;
  border-radius: 50%;
  animation: dt-spin .75s linear infinite;
}

@keyframes dt-spin {
  to {
    transform: rotate(360deg);
  }
}

.dt-loading-text {
  font-size: 10.5px;
  color: #999;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.dt-nf-emoji {
  font-size: 56px;
  opacity: .45;
}

.dt-notfound-state h2 {
  font-size: 28px;
  font-weight: 900;
  color: #1a1a2e;
  letter-spacing: -1px;
}

.dt-notfound-state p {
  font-size: 14px;
  color: #666;
  max-width: 340px;
}

.dt-nf-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #1a73e8;
  color: #1a73e8;
  padding: 13px 28px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 8px;
  transition: all .22s;
  border-radius: 2px;
}

.dt-nf-btn:hover {
  background: #1a73e8;
  color: #fff;
}

/* ── MOBILE FIXED BAR ─────────────────────────────────────── */
.dt-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #e8e8e8;
  padding: 14px 20px;
  z-index: 1000;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dt-mb-price {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dt-mb-from {
  font-size: 9px;
  color: #999;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.dt-mb-amount {
  font-size: 20px;
  font-weight: 900;
  color: #1a73e8;
  letter-spacing: -1px;
}

.dt-mb-per {
  font-size: 10px;
  color: #999;
}

.dt-mb-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  padding: 13px 22px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: background .2s;
  flex-shrink: 0;
  letter-spacing: .3px;
}

.dt-mb-btn:hover {
  background: #1db954;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .dt-layout {
    grid-template-columns: 1fr 340px;
  }
}

@media (max-width: 900px) {
  .dt-layout {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .dt-content {
    display: flex;
    flex-direction: column;
  }

  #dt-stats-panel {
    order: 1;
  }

  #dt-note-panel {
    order: 2;
    margin-top: 0;
    border-radius: 12px;
  }

  #dt-incex-panel {
    order: 3;
  }

  #dt-itin-panel {
    order: 4;
  }

  .dt-sidebar {
    position: relative;
    top: 0;
  }

  .dt-booking-card {
    display: none;
  }

  .dt-mobile-bar {
    display: flex;
  }
}

@media (max-width: 768px) {
  .dt-hero {
    height: 58vh;
    min-height: 400px;
    max-height: 520px;
  }

  .dt-hero-inner {
    padding: 0 20px 36px;
  }

  .dt-back-btn {
    left: 20px;
    top: 16px;
  }

  .dt-hero-title {
    font-size: clamp(22px, 7vw, 40px);
    letter-spacing: -1.5px;
  }

  .dt-meta-row {
    gap: 0;
  }

  .dt-panel {
    padding: 24px 20px;
  }

  .dt-stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .dt-incex-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .dt-main {
    padding: 24px 0 90px;
  }

  .dt-layout {
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .dt-hero {
    min-height: 360px;
  }

  .dt-stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .dt-layout {
    padding: 0 12px;
  }
}

/* ── MOBILE BOOKING MODAL ─────────────────────────────────── */
.dt-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 1100;
  backdrop-filter: blur(3px);
}

.dt-modal-overlay.open {
  display: block;
}

.dt-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 1101;
  padding: 28px 24px 40px;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  max-height: 92vh;
  overflow-y: auto;
}

.dt-modal.open {
  transform: translateY(0);
}

.dt-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dt-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: -.4px;
}

.dt-modal-subtitle {
  font-size: 12px;
  color: #999;
  margin-top: 3px;
}

.dt-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f5f5f5;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
  flex-shrink: 0;
  transition: background .2s;
}

.dt-modal-close:hover {
  background: #e5e5e5;
}

.dt-modal-price {
  background: #f0f7ff;
  border: 1px solid #cce0ff;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

/* ── TERMS & CONDITIONS BUTTON & POPUP MODAL ─────────────── */
.dt-terms-link-wrap {
  margin-top: 14px;
  text-align: center;
}

.dt-terms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: transparent;
  border: none;
  color: #0284c7;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all .2s ease;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: inherit;
}

.dt-terms-btn:hover {
  color: #0369a1;
  background: #f0f9ff;
}

.dt-note-terms-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0284c7;
  font-weight: 700;
  margin-left: 6px;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
}

.dt-note-terms-link:hover {
  color: #0369a1;
}

/* Modal Backdrop */
.dt-terms-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1200;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .25s ease;
}

.dt-terms-overlay.open {
  display: flex;
  opacity: 1;
}

/* Modal Box */
.dt-terms-dialog {
  background: #ffffff;
  width: 100%;
  max-width: 680px;
  max-height: 86vh;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.94) translateY(12px);
  transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dt-terms-overlay.open .dt-terms-dialog {
  transform: scale(1) translateY(0);
}

/* Modal Header */
.dt-terms-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1.5px solid #f1f5f9;
  background: #ffffff;
}

.dt-terms-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dt-terms-header-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dt-terms-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -.3px;
}

.dt-terms-subtitle {
  font-size: 12px;
  color: #64748b;
  margin: 2px 0 0;
  font-weight: 500;
}

.dt-terms-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex-shrink: 0;
  transition: all .2s ease;
}

.dt-terms-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Modal Content Body */
.dt-terms-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  font-size: 14px;
  line-height: 1.7;
  color: #334155;
}

.dt-terms-section {
  margin-bottom: 22px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 18px;
}

.dt-terms-section:last-child {
  margin-bottom: 0;
}

.dt-terms-sec-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: .3px;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dt-terms-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dt-terms-list li {
  color: #475569;
  font-size: 13.5px;
  line-height: 1.6;
}

.dt-terms-p {
  margin: 0 0 14px 0;
  line-height: 1.65;
  color: #475569;
}

/* Modal Footer */
.dt-terms-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1.5px solid #f1f5f9;
  background: #f8fafc;
}

.dt-terms-ok-btn {
  background: #0284c7;
  color: #ffffff;
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s ease;
}

.dt-terms-ok-btn:hover {
  background: #0369a1;
}

@media (max-width: 640px) {
  .dt-terms-dialog {
    max-height: 90vh;
    border-radius: 14px;
  }
  .dt-terms-header {
    padding: 16px 18px;
  }
  .dt-terms-body {
    padding: 18px;
  }
  .dt-terms-footer {
    padding: 14px 18px;
  }
}