.iac-widget, .iac-widget * { box-sizing: border-box; }
.iac-widget { --iac-accent: #bf527d; position: relative; display: block; width: min(520px, 100%); max-width: 520px; margin: 24px auto; padding: 12px; border-radius: 32px; background: #172657; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.iac-widget .iac-shell { width: 100% !important; max-width: 100% !important; height: min(680px, calc(var(--iac-mobile-height, 100dvh) - 48px)); border: 1px solid #ffffff29; border-radius: 25px; box-shadow: 0 22px 70px #090d3370; }
.iac-chooser { display: flex; height: 100%; flex-direction: column; align-items: center; justify-content: center; overflow-y: auto; padding: 36px 20px; background: radial-gradient(circle at 50% 25%, #795872, #29233f 70%, #181b35); color: #fff; text-align: center; }
.iac-choice-label { color: #ffc2d7; font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.iac-chooser h2 { max-width: 440px; margin: 8px 0; color: #fff; font-size: clamp(27px, 6vw, 42px); line-height: 1.14; }
.iac-chooser > p:not(.iac-choice-label):not(.iac-disclosure) { color: #e5d9e5; font-size: 14px; }
.iac-choice-options { display: grid; width: min(480px, 100%); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px auto; }
.iac-choice-options button { min-height: 62px; padding: 12px; border: 1px solid #ffffff90; border-radius: 17px; background: #ffffff19; color: white; font-size: 17px; font-weight: 700; cursor: pointer; }
.iac-choice-options button:hover, .iac-choice-options button:focus-visible { background: #ffffff36; outline-color: white; }
.iac-chooser .iac-disclosure { margin-top: 20px; color: #ffffffb8; font-size: 12px; }
.iac-country-back { position: absolute; top: max(18px, env(safe-area-inset-top)); left: 18px; padding: 9px 14px; border: 1px solid #ffffff88; border-radius: 20px; color: white; background: #ffffff20; cursor: pointer; }
.iac-widget [hidden] { display: none !important; }
.iac-widget button, .iac-widget input { font-family: inherit; }
.iac-shell { position: relative; height: 650px; overflow: hidden; border: 1px solid #e9dfe7; border-radius: 25px; background: #fff; box-shadow: 0 22px 70px #20132c24; }
.iac-loader { display: flex; height: 100%; flex-direction: column; align-items: center; justify-content: center; padding: 48px 26px; background: radial-gradient(circle at 50% 28%, #75506e, #3d2a4c 43%, #191b35 100%); color: #fff; text-align: center; }
.iac-loader .iac-brand { position: absolute; top: 28px; left: 28px; margin: 0; color: #fff9; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.iac-loader .iac-brand::before { display: inline-block; width: 9px; height: 9px; margin-right: 10px; border-radius: 50%; background: #ff9cbb; box-shadow: 0 0 12px #ff9cbb; content: ''; }
.iac-orbit { display: grid; width: 180px; height: 180px; place-items: center; margin: 12px 0 36px; border: 1px solid #ffffff78; border-radius: 50%; background: radial-gradient(circle, #f39abb40, transparent 70%); box-shadow: 0 0 0 19px #ffffff11, 0 0 0 38px #ffffff0b; animation: iac-float 3.5s ease-in-out infinite; }
.iac-avatar { display: grid; flex: none; place-items: center; overflow: hidden; border-radius: 50%; background: linear-gradient(145deg, #ed7da7, #8874c6); color: #fff; font-weight: 800; }
.iac-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.iac-preview-avatar { width: 116px; height: 116px; border: 4px solid #ffffffd9; box-shadow: 0 10px 30px #0004; font-size: 40px; }
.iac-loader .iac-eyebrow { margin: 0 0 10px; color: #ffc2d7; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.iac-loader h2 { margin: 0; color: #fff; font-size: clamp(27px, 6vw, 34px); font-weight: 750; line-height: 1.22; letter-spacing: -.03em; }
.iac-loader h2 em { color: #ffb4cc; font-style: normal; }
.iac-loader .iac-subline { margin: 17px 0 23px; color: #eee0eb; font-size: 13px; line-height: 1.5; }
.iac-progress { width: 250px; max-width: 85%; height: 5px; overflow: hidden; border-radius: 12px; background: #ffffff3d; }
.iac-progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; border-radius: 12px; background: linear-gradient(90deg, #fc82ae, #ffe1eb); animation: iac-load 3.2s linear forwards; }
.iac-loader .iac-disclosure { position: absolute; bottom: 25px; left: 10px; right: 10px; margin: 0; color: #ffffffb8; font-size: 11px; }
.iac-match { display: flex; height: 100%; flex-direction: column; align-items: center; justify-content: center; padding: 30px; background: radial-gradient(circle at 50% 37%, #b974a0 0, #633a70 41%, #1b1d38 100%); color: #fff; text-align: center; }
.iac-match-label { margin: 0 0 30px; padding: 7px 13px; border: 1px solid #ffffff78; border-radius: 20px; background: #ffffff20; color: #ffe1ec; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.iac-match-avatar { width: 190px; height: 190px; margin-bottom: 29px; border: 5px solid #fff; box-shadow: 0 0 0 14px #ffffff1c, 0 14px 48px #1710277a; font-size: 62px; }
.iac-match-heading { max-width: 350px; margin: 0; color: #fff; font-size: clamp(28px, 7vw, 37px); font-weight: 800; line-height: 1.17; letter-spacing: -.035em; }
.iac-match-subline { margin: 15px 0 0; color: #ffe4ec; font-size: 13px; }
.iac-chat { display: flex; height: 100%; flex-direction: column; background: #fcfafb; }
.iac-header { display: flex; flex: none; align-items: center; gap: 12px; min-height: 83px; padding: 15px 20px; border-bottom: 1px solid #f0e8ed; background: #fff; }
.iac-header-avatar { width: 47px; height: 47px; font-size: 18px; }
.iac-header-info { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.iac-header-info strong { color: #272437; font-size: 17px; line-height: 1.2; }
.iac-header-info small { color: #89808c; font-size: 11px; }
.iac-status { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: #6cb18e; }
.iac-sponsor { display: flex; flex: none; flex-direction: column; align-items: center; gap: 5px; min-height: 0; padding: 8px 12px 10px; border-bottom: 1px solid #eee8ed; background: #fff; text-align: center; }
.iac-sponsor > span { color: #76717b; font-size: 10px; line-height: 1.1; letter-spacing: .04em; }
.iac-sponsor a { display: block; width: min(100%, 728px); }
.iac-sponsor img { display: block; width: 100%; max-height: 90px; object-fit: contain; }
.iac-badge { margin-left: auto; padding: 5px 9px; border-radius: 8px; color: #aa4069; background: #fff0f5; font-size: 10px; font-weight: 800; }
.iac-messages { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 13px; overflow-y: auto; padding: 22px 18px; scrollbar-color: #e8d6df transparent; }
.iac-bubble { max-width: 84%; padding: 11px 14px; border-radius: 17px; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.iac-bubble-ai { align-self: flex-start; border-bottom-left-radius: 5px; background: #fff; color: #383242; box-shadow: 0 4px 15px #26172a0b; }
.iac-bubble-user { align-self: flex-end; border-bottom-right-radius: 5px; background: var(--iac-accent); color: #fff; }
.iac-typing { display: flex; align-self: flex-start; gap: 5px; margin: 0 18px 10px; padding: 12px 14px; border-radius: 16px; background: #fff; }
.iac-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--iac-accent); animation: iac-bounce 1s ease-in-out infinite; }
.iac-typing span:nth-child(2) { animation-delay: .14s; }
.iac-typing span:nth-child(3) { animation-delay: .28s; }
.iac-suggestions { display: flex; gap: 7px; overflow-x: auto; flex: none; padding: 6px 15px 12px; white-space: nowrap; scrollbar-width: thin; }
.iac-suggestion { flex: none; padding: 8px 12px; border: 1px solid #ebcbd8; border-radius: 18px; color: #9c4769; background: #fff; font-size: 12px; line-height: 1.2; cursor: pointer; }
.iac-suggestion:hover { border-color: var(--iac-accent); background: #fff5f8; }
.iac-error { margin: 0 18px 10px; color: #aa3453; font-size: 12px; }
.iac-form { display: flex; flex: none; gap: 9px; padding: 11px 13px 0; border-top: 1px solid #f0e7eb; background: #fff; }
.iac-input { width: 100%; min-width: 0; height: 45px; flex: 1; padding: 0 15px; border: 1px solid #e9e2e7 !important; border-radius: 13px !important; outline: 0; background: #fcfafb !important; color: #26243a; font-size: 13px; }
.iac-input:focus { border-color: var(--iac-accent) !important; box-shadow: 0 0 0 3px #bf527d22; }
.iac-send { width: 45px; height: 45px; flex: none; border: 0; border-radius: 13px; background: var(--iac-accent); color: #fff; font-size: 21px; cursor: pointer; }
.iac-send:disabled { cursor: wait; opacity: .55; }
.iac-footnote { margin: 0; padding: 9px 10px 12px; background: #fff; color: #948c96; font-size: 10px; text-align: center; }
.iac-widget[data-mode="popup"] { position: fixed; inset: 0; z-index: 999999; display: grid; width: 100vw; height: var(--iac-mobile-height, 100dvh); max-width: none; place-items: center; margin: 0; padding: 18px; border-radius: 0; background: #172657; }
.iac-widget[data-mode="popup"] .iac-shell { width: min(480px, calc(100vw - 36px)) !important; max-width: 480px !important; height: min(680px, calc(var(--iac-mobile-height, 100dvh) - 36px)); }
.iac-widget .iac-close { position: absolute; top: 15px; right: 16px; z-index: 2; display: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #ffffffdf; color: #675c66; font-size: 23px; line-height: 1; cursor: pointer; }
.iac-widget[data-mode="popup"] .iac-close { display: grid; place-items: center; }
.iac-widget[data-mode="popup"] .iac-header { padding-right: 56px; }
.iac-widget[data-mode="popup"].iac-closed { pointer-events: none; background: transparent; backdrop-filter: none; }
.iac-widget[data-mode="popup"].iac-closed .iac-shell { display: none; }
.iac-launch { position: fixed; right: 20px; bottom: 20px; pointer-events: auto; padding: 13px 17px; border: 0; border-radius: 24px; background: var(--iac-accent); box-shadow: 0 10px 30px #0005; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.iac-standalone-ad { width: 100%; max-width: 720px; min-height: 250px; margin: 28px auto; text-align: center; }
.iac-standalone-ad > span { display: block; margin-bottom: 9px; color: #737373; font: 11px/1.2 system-ui, sans-serif; letter-spacing: .05em; }
.iac-standalone-ad ins { min-height: 230px; }
@keyframes iac-load { to { transform: scaleX(1); } }
@keyframes iac-float { 50% { transform: translateY(-7px); } }
@keyframes iac-bounce { 50% { transform: translateY(-4px); opacity: .45; } }
@media (max-width: 520px) {
  .iac-widget { width: 100%; margin: 14px auto; padding: 8px; border-radius: 25px; }
  .iac-widget .iac-shell { height: min(680px, calc(var(--iac-mobile-height, 100dvh) - 44px)); border-radius: 20px; }
  .iac-widget[data-mode="popup"] { padding: 12px; }
  .iac-widget[data-mode="popup"] .iac-shell { width: calc(100vw - 24px) !important; height: calc(var(--iac-mobile-height, 100dvh) - 24px); }
  .iac-header { padding-top: max(15px, env(safe-area-inset-top)); }
  .iac-loader, .iac-match { overflow-y: auto; padding-bottom: max(40px, env(safe-area-inset-bottom)); }
  .iac-footnote { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .iac-suggestions { padding-bottom: 10px; }
  .iac-sponsor { padding: 5px 10px 7px; }
  .iac-sponsor img { max-height: 84px; }
  .iac-standalone-ad { max-width: 100%; padding: 0 12px; }
}
@media (max-width: 520px) { .iac-choice-options { gap: 10px; } .iac-chooser { padding-bottom: max(32px, env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) {
  .iac-widget *, .iac-widget *::before, .iac-widget *::after { animation-duration: .01ms !important; }
}
