@media (min-width: 1024px) {
  .dortg-assistant {
    right: 24px;
    bottom: 24px;
    transition: transform 220ms ease;
  }

  .assistant-launcher.assistant-floating-launcher {
    display: flex;
    overflow: hidden;
    transition: width 240ms ease, height 240ms ease, padding 240ms ease, border-radius 240ms ease, transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  }

  .dortg-assistant.is-compact .assistant-launcher {
    width: 84px;
    height: 84px;
    padding: 0;
    border-radius: 24px;
  }

  .dortg-assistant.is-compact .assistant-launcher-copy,
  .dortg-assistant.is-compact .assistant-launcher-status {
    display: none;
  }

  .dortg-assistant.is-compact .assistant-launcher-mark {
    flex-basis: 84px;
    width: 84px;
    height: 84px;
    border-radius: 23px;
  }

  .dortg-assistant.assistant-scroll-down {
    transform: translateY(12px);
  }

  .dortg-assistant.assistant-scroll-up {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dortg-assistant {
    transition: none;
  }
}

/* Full-page, content-aware assistant experience */
.assistant-panel {
  position: fixed;
  inset: 0;
  z-index: 1200;
  width: auto;
  height: auto;
  padding: clamp(16px, 4vw, 56px);
  border: 0;
  border-radius: 0;
  background: rgba(2, 12, 27, 0.66);
  box-shadow: none;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: none;
  transition: opacity 200ms ease;
}

.assistant-panel.is-open {
  opacity: 1;
  transform: none;
}

.assistant-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

.assistant-dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  height: min(680px, 100%);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-top: 3px solid #06b6d4;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 32px 90px rgba(2, 12, 27, 0.45);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.assistant-header {
  min-height: 72px;
  padding: 14px 20px;
  background: #fff;
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
  align-items: center;
}

.assistant-title-line h2 { color: #0f172a; }
.assistant-title-line span { background: #ecfdf5; color: #047857; }
.assistant-brand p { color: #64748b; }
.assistant-icon-button { background: #f1f5f9; color: #475569; }
.assistant-icon-button:hover { background: #e2e8f0; color: #0f172a; }
.assistant-icon-button span { font-size: 25px; font-weight: 400; line-height: 1; }

.assistant-shell {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
}

.assistant-page-context {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4vw, 46px);
  background:
    radial-gradient(circle at 0 0, rgba(34, 211, 238, 0.25), transparent 38%),
    linear-gradient(145deg, #082f49 0%, #0f172a 72%);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
}


.assistant-context-eyebrow {
  color: #67e8f9;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.assistant-context-logo {
  width: 100%;
  margin: 0 auto 30px;
  text-align: center;
}

.assistant-context-logo img {
  width: min(190px, 72%);
  height: auto;
  display: inline-block;
  filter: brightness(0) invert(1) drop-shadow(0 5px 14px rgba(34, 211, 238, 0.18));
  opacity: 0.92;
}

.assistant-page-context h3 {
  margin: 12px 0 10px;
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.assistant-page-context > p { margin: 0; color: #cbd5e1; font-size: 13px; font-weight: 500; line-height: 1.65; }
.assistant-context-divider { width: 46px; height: 2px; margin: 28px 0 22px; background: #22d3ee; }
.assistant-page-context .assistant-context-label { color: #f8fafc; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; }

.assistant-page-points { margin: 13px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.assistant-page-points li { position: relative; padding-left: 20px; color: #e2e8f0; font-size: 12px; font-weight: 600; line-height: 1.42; }
.assistant-page-points li::before { position: absolute; left: 0; top: 0.42em; width: 8px; height: 8px; border: 2px solid #22d3ee; border-radius: 50%; content: ''; }
.assistant-page-context .assistant-context-note { margin-top: auto; padding-top: 24px; color: #94a3b8; font-size: 10px; line-height: 1.5; }

.assistant-character { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 1202; width: 205px; height: 224px; pointer-events: none; }
.assistant-character-webgl { position: relative; z-index: 1; width: 100%; height: 100%; filter: drop-shadow(0 18px 15px rgba(2, 8, 23, 0.28)); }
.assistant-character-webgl canvas { display: block; width: 100%; height: 100%; }
.assistant-character-fallback { position: relative; z-index: 1; width: 100%; height: auto; display: block; filter: drop-shadow(0 16px 14px rgba(2, 8, 23, 0.24)); }
.assistant-character.is-webgl-ready .assistant-character-fallback { display: none; }
.assistant-launcher-mark {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 32%, #ffffff 0%, #effcff 48%, #c9eff8 100%);
  box-shadow: inset 0 0 0 1px rgba(8, 145, 178, 0.16), inset 0 -8px 12px rgba(14, 165, 233, 0.1);
}
.assistant-launcher-webgl { display: block; width: 100%; height: 100%; pointer-events: none; }
.assistant-launcher-webgl canvas { display: block; width: 100%; height: 100%; }
.assistant-launcher-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.28); filter: drop-shadow(0 2px 3px rgba(2, 8, 23, 0.16)); }
.assistant-launcher-mark.is-webgl-ready .assistant-launcher-fallback { display: none; }
.assistant-avatar, .assistant-message-avatar { overflow: hidden; }
.assistant-avatar img, .assistant-message-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; object-position: center; transform: scale(1.5); }

.assistant-conversation {
  position: relative;
  min-height: 0;
  background: #f8fafc;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto auto;
}

.assistant-messages { padding: 28px; background: linear-gradient(180deg, #fff 0%, #f8fafc 100%); }
.assistant-bubble { border-radius: 14px 14px 14px 3px; padding: 13px 15px 9px; }
.assistant-message-user .assistant-bubble { border-color: #0891b2; border-radius: 14px 14px 3px 14px; background: #0e7490; }
.assistant-quick-actions { padding: 12px 20px; border-top: 1px solid #e2e8f0; background: #fff; }
.assistant-quick-actions button { border-radius: 9px; font-size: 11px; font-weight: 700; }
.assistant-form { padding: 12px 20px; background: #fff; }
.assistant-form input { height: 44px; border-radius: 10px; background: #f8fafc; }
.assistant-form button { width: 44px; height: 44px; border-radius: 10px; background: #0891b2; color: #fff; }
.assistant-form button:hover { background: #0e7490; }
.assistant-footnote { padding: 0 20px 14px; background: #fff; }

body.assistant-modal-open { overflow: hidden !important; }
body.assistant-modal-open #dortg-assistant { transform: none !important; }

@media (max-width: 1023px) {
  .assistant-floating-launcher { display: none !important; }
  .assistant-character { display: none; }
  .assistant-page-context { display: none; }
  .assistant-shell { grid-template-columns: 1fr; }
  .assistant-brand p { display: none; }
  .assistant-mobile-header-launcher {
    width: 32px;
    height: 32px;
    padding: 0;
    margin-left: 4px;
    flex: 0 0 32px;
    border: 1px solid rgba(14, 165, 233, 0.18);
    border-radius: 12px;
    background: radial-gradient(circle at 50% 30%, #ffffff 0%, #eafaff 65%, #c9eff8 100%);
    box-shadow: 0 5px 12px rgba(14, 165, 233, 0.14);
    display: grid;
    place-items: center;
    overflow: hidden;
  }
  .assistant-mobile-header-launcher img {
    width: 34px;
    height: 34px;
    max-width: none;
    object-fit: cover;
    object-position: center;
    filter: drop-shadow(0 2px 3px rgba(2, 8, 23, 0.16));
  }
  .assistant-mobile-header-launcher:active { transform: scale(0.94); }
}

/* Kısa yatay tablet/pencere yüksekliğinde sabit karakter, CTA'ların üstüne
   binmemeli. Header/mobil asistanı etkilenmez. */
@media (min-width: 1024px) and (max-height: 760px) {
  .dortg-assistant {
    display: none !important;
  }
}

@media (max-width: 720px) {
  .assistant-panel { padding: 0; }
  .assistant-dialog { height: 100dvh; border-radius: 0; max-height: none; }
  .assistant-header { min-height: 64px; padding: 11px 14px; }
  .assistant-avatar { width: 36px; height: 36px; flex-basis: 36px; }
  .assistant-brand p { display: none; }
  .assistant-shell { display: flex; flex-direction: column; }
  .assistant-conversation { flex: 1; }
  .assistant-page-context { display: none; }
  .assistant-context-logo { margin-bottom: 12px; text-align: left; }
  .assistant-context-logo img { width: 118px; }
  .assistant-page-context h3 { margin: 7px 0; font-size: 22px; }
  .assistant-page-context > p { font-size: 11px; line-height: 1.45; }
  .assistant-context-divider, .assistant-page-points, .assistant-page-context .assistant-context-label, .assistant-page-context .assistant-context-note { display: none; }
  .assistant-messages { padding: 18px 14px; }
  .assistant-quick-actions { padding: 9px 12px; gap: 6px; }
  .assistant-quick-actions button { min-height: 31px; padding: 6px 7px; font-size: 9px; }
  .assistant-form { padding: 9px 12px; }
  .assistant-footnote { padding: 0 12px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .assistant-character { transition: none; }
}
