/* MAX assistant — Focus visual system. Functionality remains in max-chat.js. */
:root {
  --max-navy: #071729;
  --max-navy-soft: #102b45;
  --max-blue: #2497df;
  --max-blue-soft: #eaf6fd;
  --max-line: #d9e2ea;
  --max-copy: #142238;
  --max-muted: #718095;
  --max-surface: #f5f7f9;
}

.max-chat-launcher {
  left: 0;
  bottom: 20px;
  min-height: 62px;
  gap: 11px;
  padding: 4px 22px 4px 10px;
  border: 0;
  border-radius: 0;
  background: var(--max-navy);
  background-image: linear-gradient(110deg, transparent 0 58%, #0f3555 100%);
  background-size: auto;
  box-shadow: none;
  animation: none;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.2px;
  transition: border-color .2s ease, background-color .2s ease, opacity .18s ease, visibility .18s ease;
}

body.mobile-nav-open .max-chat-launcher {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.max-chat-launcher::before {
  display: none;
}

.max-chat-launcher > img {
  width: 45px;
  height: 54px;
  filter: none;
}

.max-chat-launcher:hover {
  background-color: #0d2740;
  box-shadow: none;
  filter: none;
  transform: none;
}

.max-chat-launcher:focus-visible {
  border-radius: 0;
  outline: 3px solid #2497df55;
  outline-offset: 3px;
}

.max-chat-layer {
  transition: visibility .42s;
}

.max-chat-layer.preparing,
.max-chat-layer.open {
  visibility: visible;
  pointer-events: auto;
}

.max-chat-overlay {
  background: rgba(4, 13, 24, .5);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  transition: opacity .35s ease;
}

.max-chat-layer.preparing .max-chat-overlay,
.max-chat-layer.open .max-chat-overlay {
  opacity: 1;
}

.max-chat-layer.preparing .max-chat-overlay {
  background: rgba(3, 13, 23, .12);
  -webkit-backdrop-filter: blur(1px) saturate(1.18);
  backdrop-filter: blur(1px) saturate(1.18);
}

.max-chat-intro {
  position: absolute;
  z-index: 10;
  inset: 0;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, #53c6ff13 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(#53c6ff13 1px, transparent 1px) 0 0 / 72px 72px,
    radial-gradient(circle at 50% 48%, transparent 0 24%, #06182720 72%, #03101b45 100%);
  -webkit-backdrop-filter: saturate(1.18);
  backdrop-filter: saturate(1.18);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  isolation: isolate;
  transition: opacity .2s ease, visibility 0s linear .2s;
}

.max-chat-intro::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, #0b6da73d, transparent 14% 86%, #26a9e84a),
    linear-gradient(#0b6da738, transparent 14% 86%, #26a9e84a);
  box-shadow: inset 0 0 90px #2497df4a;
  opacity: .35;
  animation: max-scan-colorwash 1.6s ease both;
}

.max-chat-intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12px;
  border: 3px solid transparent;
  background:
    linear-gradient(transparent, transparent) padding-box,
    conic-gradient(from var(--max-intro-angle, 0deg), #167abd, #73d4ff, #1b93dc, #082b47, #4fc8ff, #167abd) border-box;
  box-shadow:
    inset 0 0 34px #45bdf34a,
    0 0 32px #2497df8c;
  opacity: .95;
  animation: max-intro-frame .9s linear infinite, max-intro-frame-pulse .55s ease-in-out infinite alternate;
}

.max-chat-intro-scan {
  position: absolute;
  z-index: 1;
  top: -26vh;
  right: 0;
  left: 0;
  height: 26vh;
  border-bottom: 3px solid #7bd8ff;
  background: linear-gradient(to bottom, transparent 0, #2497df08 28%, #2497df24 76%, #7bd8ff54 100%);
  box-shadow: 0 5px 18px #57c8ff, 0 18px 58px #2497df78;
  animation: max-page-scan 1.48s cubic-bezier(.45,0,.2,1) both;
}

.max-chat-intro-scan::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 16px;
  background: linear-gradient(90deg, transparent, #54c9ff 16%, #fff 50%, #54c9ff 84%, transparent);
  filter: blur(6px);
  opacity: .9;
}

.max-chat-intro-scan span {
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: min(480px, 62vw);
  height: 10px;
  background: #d8f5ff;
  box-shadow: 0 0 30px 12px #38b9f5;
  filter: blur(5px);
  transform: translateX(-50%);
}

.max-chat-intro-flash {
  position: absolute;
  z-index: 4;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  animation: max-camera-flash 1.6s ease both;
}

.max-chat-intro-corners {
  position: absolute;
  z-index: 2;
  inset: 34px;
}

.max-chat-intro-corners i {
  position: absolute;
  width: 48px;
  height: 48px;
  border-color: #79d6ff;
  border-style: solid;
  filter: drop-shadow(0 0 8px #2497df);
  animation: max-corner-pulse .55s ease-in-out infinite alternate;
}

.max-chat-intro-corners i:nth-child(1) { top: 0; left: 0; border-width: 3px 0 0 3px; }
.max-chat-intro-corners i:nth-child(2) { top: 0; right: 0; border-width: 3px 3px 0 0; }
.max-chat-intro-corners i:nth-child(3) { right: 0; bottom: 0; border-width: 0 3px 3px 0; }
.max-chat-intro-corners i:nth-child(4) { bottom: 0; left: 0; border-width: 0 0 3px 3px; }

.max-chat-layer.preparing .max-chat-intro {
  grid-template-columns: 1fr;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
  animation: max-intro-reveal 1.6s cubic-bezier(.2,.8,.2,1) both;
}

.max-chat-layer.preparing .max-chat-intro-brand {
  grid-column: 1;
  animation: max-intro-brand-in 1.6s cubic-bezier(.2,.8,.2,1) both;
}

.max-chat-layer.open .max-chat-intro {
  opacity: 0;
  visibility: hidden;
}

.max-chat-intro-brand {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 22px 30px;
  text-align: center;
  text-shadow: 0 2px 16px #03101b;
}

.max-chat-intro-mark {
  position: relative;
  width: 124px;
  height: 124px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.max-chat-intro-mark::before {
  content: "";
  position: absolute;
  inset: -42px;
  border: 1px solid #62c8ff2e;
  border-radius: 50%;
  box-shadow: 0 0 55px #2497df45, inset 0 0 40px #2497df26;
  animation: max-intro-wave .8s ease-out infinite;
}

.max-chat-intro-mark::after {
  content: "";
  position: absolute;
  inset: 17px;
  border: 1px solid #6fc8f642;
  border-radius: 50%;
}

.max-chat-intro-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 36%, #2497df 55%, #78d0ff 72%, transparent 82%);
  animation: max-intro-spin .85s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0);
}

.max-chat-intro-mark img {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px #0008);
  animation: max-intro-float 1.3s ease-in-out infinite alternate;
}

.max-chat-intro-brand > span {
  color: #56baf2;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 2px;
}

.max-chat-intro-brand > strong {
  margin-top: 8px;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -.7px;
}

.max-chat-intro-brand > i {
  width: 52px;
  height: 2px;
  margin-top: 22px;
  overflow: hidden;
  background: #ffffff24;
}

.max-chat-intro-brand > i::after {
  content: "";
  display: block;
  width: 24px;
  height: 100%;
  background: var(--max-blue);
  animation: max-intro-line .75s ease-in-out infinite alternate;
}

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

@property --max-intro-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes max-intro-frame {
  to { --max-intro-angle: 360deg; }
}

@keyframes max-intro-frame-pulse {
  to { opacity: .62; filter: brightness(1.3); }
}

@keyframes max-intro-aura {
  to { transform: rotate(360deg) scale(1.04); }
}

@keyframes max-intro-reveal {
  0% { opacity: 0; filter: brightness(.7); }
  5%, 46% { opacity: 1; filter: brightness(1); }
  49% { opacity: 1; filter: brightness(1.35); }
  55%, 84% { opacity: 1; filter: brightness(1); }
  100% { opacity: 1; filter: brightness(1.1) saturate(1.25); }
}

@keyframes max-intro-brand-in {
  0%, 68% { opacity: 0; transform: scale(.88); }
  82%, 100% { opacity: 1; transform: scale(1); }
}

@keyframes max-intro-wave {
  from { opacity: .9; transform: scale(.7); }
  to { opacity: 0; transform: scale(1.22); }
}

@keyframes max-page-scan {
  0% { transform: translateY(0); opacity: 0; }
  4% { opacity: 1; }
  44% { transform: translateY(126vh); opacity: 1; }
  51% { transform: translateY(126vh); opacity: .35; }
  57% { transform: translateY(126vh); opacity: 1; }
  94% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(0); opacity: 0; }
}

@keyframes max-camera-flash {
  0%, 43% { opacity: 0; background: #fff; }
  47% { opacity: .72; background: #fff; }
  52%, 78% { opacity: 0; background: #fff; }
  91% { opacity: .16; background: #2497df; }
  100% { opacity: .1; background: #4bc4ff; }
}

@keyframes max-scan-colorwash {
  0%, 58% { opacity: .28; }
  76% { opacity: .4; }
  100% { opacity: .95; }
}

@keyframes max-corner-pulse {
  to { opacity: .46; filter: drop-shadow(0 0 14px #50c8ff); }
}

@keyframes max-intro-float {
  to { transform: translateY(-5px); }
}

@keyframes max-intro-line {
  from { transform: translateX(-24px); }
  to { transform: translateX(52px); }
}

.max-chat-dialog {
  z-index: 3;
  width: min(580px, 100%);
  border-left: 0;
  border-radius: 0;
  background: var(--max-surface);
  box-shadow: none;
  transform: translate3d(100%, 0, 0);
  transition: transform .46s cubic-bezier(.2,.75,.18,1);
}

.max-chat-layer.preparing .max-chat-dialog {
  transform: translate3d(100%, 0, 0);
}

.max-chat-layer.open .max-chat-dialog {
  transform: translate3d(0, 0, 0);
}

.max-chat-header {
  min-height: 108px;
  grid-template-columns: 68px minmax(0,1fr) 44px;
  gap: 14px;
  padding: 13px 20px 11px 14px;
  border-bottom: 3px solid var(--max-blue);
  background: linear-gradient(120deg, var(--max-navy), var(--max-navy-soft));
}

.max-chat-header > img {
  align-self: end;
  width: 64px;
  height: 82px;
  filter: none;
}

.max-chat-header span {
  color: #55b9f1;
  letter-spacing: 1.8px;
}

.max-chat-header h2 {
  margin: 3px 0 2px;
  font-size: 30px;
  letter-spacing: -.6px;
}

.max-chat-header p {
  color: #c9d7e3;
}

.max-chat-header > button {
  width: 42px;
  height: 42px;
  border: 1px solid #ffffff42;
  border-radius: 0;
  background: transparent;
  transition: border-color .2s ease, background .2s ease;
}

.max-chat-header > button:hover {
  border-color: #63c5f7;
  background: #ffffff0c;
  transform: none;
}

.max-chat-messages {
  padding: 24px 20px 10px;
  background: var(--max-surface);
}

.max-chat-message > span {
  color: var(--max-muted);
}

.max-chat-message > p,
.max-chat-message-body {
  border: 1px solid var(--max-line);
  border-radius: 0;
  background: #fff;
  color: var(--max-copy);
  box-shadow: none;
}

.max-chat-message.user > p {
  border-color: var(--max-navy);
  border-radius: 0;
  background: var(--max-navy);
}

.max-chat-suggestions {
  gap: 14px;
  padding: 5px 0 16px;
}

.max-chat-suggestions > span {
  color: #65768a;
}

.max-chat-suggestions > div {
  gap: 10px;
}

.max-chat-suggestions button,
.max-chat-flow-options,
.max-chat-flow-options button,
.max-chat-recommendations > section,
.max-chat-quote-action > button,
.max-chat-link-action > a,
.max-chat-product-placeholder,
.max-chat-recommendations a > img {
  border-radius: 0;
  box-shadow: none;
}

.max-chat-suggestions button {
  position: relative;
  min-height: 58px;
  padding: 12px 14px 12px 17px;
  border-color: var(--max-line);
  background: #fff;
  color: var(--max-copy);
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.max-chat-suggestions button::before {
  content: "";
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: -1px;
  width: 3px;
  background: var(--max-blue);
  opacity: 0;
  transition: opacity .18s ease;
}

.max-chat-suggestions button:hover,
.max-chat-suggestions button:focus-visible {
  border-color: var(--max-blue);
  background: var(--max-blue-soft);
  color: #0c699f;
  box-shadow: none;
  transform: none;
}

.max-chat-suggestions button:hover::before,
.max-chat-suggestions button:focus-visible::before {
  opacity: 1;
}

.max-chat-flow-options {
  border-color: var(--max-line);
}

.max-chat-flow-options button:hover {
  border-color: var(--max-blue);
  transform: none;
}

.max-chat-recommendations > section {
  border-color: var(--max-line);
}

.max-chat-recommendations h3 {
  background: var(--max-navy);
}

.max-chat-recommendations a:hover {
  background: var(--max-blue-soft);
}

.max-chat-quote-action > button,
.max-chat-link-action > a {
  background: var(--max-navy);
}

.max-chat-quote-action > button:hover,
.max-chat-link-action > a:hover {
  box-shadow: none;
  filter: none;
  transform: none;
}

.max-chat-typing {
  margin-inline: 20px;
  border: 1px solid var(--max-line);
  border-radius: 0;
  background: #fff;
}

.max-chat-form {
  gap: 10px;
  margin: 0 16px;
  padding: 9px;
  border-color: #bfcbd6;
  border-radius: 0;
  box-shadow: none;
}

.max-chat-form:focus-within {
  border-color: var(--max-blue);
}

.max-chat-form > button {
  border-radius: 0;
  background: var(--max-navy);
  box-shadow: none;
  transition: background .2s ease;
}

.max-chat-form > button:hover {
  background: #123b5e;
  box-shadow: none;
  filter: none;
  transform: none;
}

.max-chat-note {
  padding: 8px 18px 12px;
  color: #7a8796;
}

@media (max-width: 760px) {
  .max-chat-launcher {
    left: 0;
    bottom: 12px;
    min-height: 52px;
    padding: 2px 15px 2px 8px;
  }

  .max-chat-intro {
    width: 100%;
  }

  .max-chat-intro-mark {
    width: 110px;
    height: 110px;
  }

  .max-chat-intro-mark img {
    width: 65px;
    height: 83px;
  }

  .max-chat-intro-corners { inset: 22px; }

  .max-chat-dialog {
    width: 100%;
    border-left: 0;
  }

  .max-chat-header {
    min-height: 94px;
    grid-template-columns: 58px minmax(0,1fr) 40px;
    padding: 9px 12px 8px 9px;
  }

  .max-chat-header > img {
    width: 56px;
    height: 72px;
  }

  .max-chat-messages {
    padding: 18px 13px 8px;
  }

  .max-chat-suggestions > div {
    grid-template-columns: 1fr;
  }

  .max-chat-form {
    margin-inline: 9px;
  }
}

.contact-float {
  right: 0;
}

.contact-float a {
  border-radius: 0 !important;
  transition: background-color .18s ease !important;
}

.contact-float a:hover,
.contact-float a:focus-visible {
  background-color: color-mix(in srgb, var(--float-bg, #1b2a3e) 88%, #000) !important;
  box-shadow: none;
  filter: none;
  transform: none;
}

.contact-float a:hover svg,
.contact-float a:focus-visible svg {
  transform: none;
}

.quote-toast {
  right: 0;
  border-radius: 0;
  opacity: 0;
  transform: translate3d(105%, 0, 0);
  transition: opacity .22s ease, transform .34s cubic-bezier(.2,.78,.18,1), visibility .34s;
}

.quote-toast.show {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 760px) {
  .quote-toast { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .max-chat-intro,
  .max-chat-dialog,
  .max-chat-overlay {
    transition: none;
  }

  .max-chat-intro-ring,
  .max-chat-intro::before,
  .max-chat-intro::after,
  .max-chat-intro-scan,
  .max-chat-intro-flash,
  .max-chat-intro-corners i,
  .max-chat-intro-mark::before,
  .max-chat-intro-mark img,
  .max-chat-intro-brand > i::after {
    animation: none;
  }
}

/* Google Lens benzeri sade ekran yakalama geçişi */
.max-page-stage {
  min-height: 100%;
}

body.max-chat-scanning .max-page-stage {
  transform: none;
  filter: none;
  animation: none;
}

.max-chat-layer.preparing .max-chat-overlay {
  background: rgba(0, 7, 16, .46);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.max-chat-intro {
  background: linear-gradient(135deg, rgba(0, 5, 12, .48), rgba(5, 27, 48, .28), rgba(0, 8, 18, .52));
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.max-chat-intro::before {
  z-index: 0;
  inset: -42%;
  background:
    radial-gradient(ellipse at 18% 28%, rgba(83, 204, 255, .9) 0, rgba(32, 139, 211, .5) 16%, transparent 38%),
    radial-gradient(ellipse at 78% 70%, rgba(10, 91, 165, .86) 0, rgba(30, 142, 217, .42) 20%, transparent 43%),
    conic-gradient(from 210deg at 52% 48%, transparent 0 17%, rgba(44, 169, 235, .52) 29%, transparent 43% 62%, rgba(10, 77, 139, .55) 76%, transparent 89%);
  filter: blur(42px) saturate(1.35);
  box-shadow: inset 0 0 130px rgba(0, 70, 125, .42);
  opacity: 0;
  animation: max-ai-gradient-flow .95s cubic-bezier(.3,0,.25,1) both;
}

.max-chat-intro::after {
  content: "";
  display: block;
  position: absolute;
  z-index: 1;
  inset: -55%;
  border: 0;
  background:
    radial-gradient(ellipse at center, rgba(91, 211, 255, .48), rgba(20, 115, 190, .22) 27%, transparent 60%),
    linear-gradient(128deg, transparent 34%, rgba(70, 190, 244, .35) 48%, transparent 64%);
  box-shadow: none;
  filter: blur(34px);
  opacity: 0;
  animation: max-ai-gradient-sweep .95s ease-in-out both;
}

.max-chat-layer.preparing .max-chat-intro {
  animation: max-lens-overlay .95s ease both;
}

@keyframes max-ai-gradient-flow {
  0% { opacity: 0; transform: translate3d(-38%, -28%, 0) rotate(-18deg) scale(.76); }
  10% { opacity: .82; }
  27% { transform: translate3d(31%, -17%, 0) rotate(13deg) scale(1.12); }
  49% { opacity: .95; transform: translate3d(24%, 29%, 0) rotate(-11deg) scale(.9); }
  72% { transform: translate3d(-34%, 22%, 0) rotate(16deg) scale(1.16); }
  88% { transform: translate3d(-12%, -25%, 0) rotate(-8deg) scale(.94); }
  100% { opacity: .5; transform: translate3d(28%, 8%, 0) rotate(6deg) scale(1.08); }
}

@keyframes max-ai-gradient-sweep {
  0% { opacity: 0; transform: translate3d(42%, -38%, 0) rotate(22deg) scale(.64); }
  12% { opacity: .5; }
  32% { transform: translate3d(-32%, -4%, 0) rotate(-15deg) scale(1.18); }
  54% { opacity: .82; transform: translate3d(18%, 35%, 0) rotate(11deg) scale(.86); }
  76% { transform: translate3d(35%, -11%, 0) rotate(-7deg) scale(1.13); }
  91% { transform: translate3d(-26%, 25%, 0) rotate(14deg) scale(.93); }
  100% { opacity: .26; transform: translate3d(-5%, -24%, 0) rotate(-5deg) scale(1.2); }
}

@keyframes max-lens-overlay {
  0% { opacity: 0; }
  8%, 100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  body.max-chat-scanning .max-page-stage,
  .max-chat-layer.preparing .max-chat-intro,
  .max-chat-intro::before,
  .max-chat-intro::after {
    animation: none;
  }
}
