.aicall-login-overlay,
.aicall-login-overlay * { box-sizing: border-box; }

.aicall-login-overlay[hidden],
.aicall-login-step[hidden] { display: none !important; }
.aicall-login-open { overflow: hidden; }

.aicall-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(28, 15, 58, .58);
  backdrop-filter: blur(5px);
}

.aicall-login-card {
  position: relative;
  width: min(100%, 450px);
  max-height: min(720px, calc(100dvh - 40px));
  overflow-y: auto;
  padding: 42px 40px 40px;
  border: 1px solid rgba(113, 66, 208, .12);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(22, 10, 54, .28);
  color: #29223a;
  text-align: center;
  font-family: Manrope, Arial, sans-serif;
}

.aicall-login-close {
  position: absolute;
  top: 17px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f3effa;
  color: #604297;
  font: 28px/1 Arial, sans-serif;
  cursor: pointer;
}
.aicall-login-close:hover { background: #e9defb; }

.aicall-login-brand { min-height: 50px; margin-bottom: 24px; }
.aicall-login-brand img { display: block; width: 178px; max-width: 100%; height: auto; margin: 0 auto; }
.aicall-login-wordmark { color: #532da8; font-size: 34px; font-weight: 800; }

.aicall-login-card h2 {
  margin: 0 0 7px;
  color: #5425af;
  font-size: clamp(27px, 5vw, 31px);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -.03em;
}
.aicall-login-card p#aicall-login-subtitle {
  margin: 0 0 32px;
  color: #766d86;
  font-size: 15px;
  line-height: 1.6;
}

.aicall-login-label {
  display: block;
  margin: 0 0 9px;
  color: #2f2740;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
}
.aicall-login-card .aicall-login-phone {
  display: block;
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid #dcd4eb;
  border-radius: 12px;
  outline: none;
  background: #fff;
  box-shadow: none;
  color: #2d2441;
  font: 500 15px/1.4 Manrope, Arial, sans-serif;
}
.aicall-login-card .aicall-login-phone::placeholder { color: #9f97ae; }
.aicall-login-card .aicall-login-phone:focus { border-color: #7951d6; box-shadow: 0 0 0 3px rgba(121, 81, 214, .14); }
.aicall-login-card .aicall-login-app-reminder {
  margin: 10px 0 0;
  color: #6333c4;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.aicall-login-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 24px;
  color: #62596f;
  text-align: left;
  font-size: 13px;
  line-height: 1.55;
  cursor: pointer;
}
.aicall-login-consent input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #7441d5;
  cursor: pointer;
}
.aicall-login-consent a { color: #6333c4; font-weight: 700; text-decoration: underline; }
.aicall-login-consent a:hover { color: #49209f; }

.aicall-login-card .aicall-login-otp-sent {
  margin: 0 0 22px;
  color: #62596f;
  font-size: 14px;
  line-height: 1.55;
}
.aicall-login-card .aicall-login-otp-sent strong { color: #402b69; white-space: nowrap; }
.aicall-login-otp-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.aicall-login-otp-fieldset legend {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  color: #2f2740;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}
.aicall-login-otp { display: flex; justify-content: center; gap: 10px; }
.aicall-login-card .aicall-login-otp input {
  width: 54px;
  height: 60px;
  margin: 0;
  padding: 0;
  border: 1px solid #dcd4eb;
  border-radius: 12px;
  outline: none;
  background: #fff;
  box-shadow: none;
  color: #3c246d;
  text-align: center;
  font: 800 24px/1 Manrope, Arial, sans-serif;
  caret-color: #7441d5;
}
.aicall-login-card .aicall-login-otp input:focus { border-color: #7951d6; box-shadow: 0 0 0 3px rgba(121, 81, 214, .14); }
.aicall-login-otp-actions { display: flex; justify-content: space-between; gap: 14px; margin: 20px 0 24px; }
.aicall-login-card .aicall-login-link {
  min-height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #6333c4;
  font: 700 13px/1.4 Manrope, Arial, sans-serif;
  text-decoration: underline;
  cursor: pointer;
}
.aicall-login-card .aicall-login-link:disabled { color: #9d96a9; cursor: not-allowed; text-decoration: none; }

.aicall-login-card .aicall-login-status {
  margin: -3px 0 17px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #fff2f2;
  color: #9b3342;
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
}
.aicall-login-card .aicall-login-status[hidden] { display: none !important; }
.aicall-login-card .aicall-login-status[data-kind="success"] { background: #edf8f1; color: #246a40; }

.aicall-login-card .aicall-login-submit,
.aicall-report-card .aicall-login-submit {
  display: block;
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(105deg, #6730c9, #8d54e6);
  box-shadow: 0 12px 24px rgba(99, 48, 201, .22);
  color: #fff;
  font: 800 16px/1.2 Manrope, Arial, sans-serif;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.aicall-login-card .aicall-login-submit:not(:disabled):hover,
.aicall-report-card .aicall-login-submit:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 15px 28px rgba(99, 48, 201, .3); }
.aicall-login-card .aicall-login-submit:disabled,
.aicall-report-card .aicall-login-submit:disabled { background: #d9d4e0; box-shadow: none; color: #f8f6fb; cursor: not-allowed; }
.aicall-login-card :focus-visible,
.aicall-report-card :focus-visible,
.aicall-report-alert-card :focus-visible { outline: 3px solid rgba(103, 48, 201, .5); outline-offset: 2px; }
.btn-login.aicall-user-menu > a { white-space: nowrap; }
.btn-login.aicall-session-loading > a,
.btn-report.aicall-session-loading > a {
  opacity: .72;
  cursor: wait;
  pointer-events: none;
  white-space: nowrap;
}

.site-header .btn-login { position: relative; }
.site-header .main-navigation .navbar-nav > li.btn-report { margin-left: 5px; }
.site-header .main-navigation .navbar-nav > li.btn-report > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 19px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: linear-gradient(115deg, #6130c7 0%, #8a55e5 100%);
  box-shadow: 0 9px 22px rgba(97, 48, 199, .25);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.site-header .main-navigation .navbar-nav > li.btn-report > a::before { display: none; }
.site-header .main-navigation .navbar-nav > li.btn-report > a:hover {
  background: linear-gradient(115deg, #5225b6 0%, #7641d5 100%);
  box-shadow: 0 12px 27px rgba(97, 48, 199, .34);
  color: #fff;
  transform: translateY(-2px);
}
.aicall-report-menu-icon {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}
.aicall-report-menu-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.aicall-account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1000000;
  width: 245px;
  padding: 18px;
  border: 1px solid #e5deef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(29, 14, 61, .18);
  color: #332744;
  text-align: left;
  font-family: Manrope, Arial, sans-serif;
}
.aicall-account-dropdown[hidden] { display: none !important; }
.aicall-account-name,
.aicall-account-phone { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aicall-account-name { margin-bottom: 5px; color: #412879; font-size: 15px; font-weight: 800; }
.aicall-account-phone { color: #756c82; font-size: 13px; }
.aicall-account-dropdown hr { height: 1px; margin: 14px 0; border: 0; background: #ece6f3; }
.aicall-account-dropdown .aicall-account-logout {
  width: 100%;
  margin: 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #b03148;
  text-align: left;
  font: 700 14px/1.4 Manrope, Arial, sans-serif;
  cursor: pointer;
}
.aicall-account-dropdown .aicall-account-logout:disabled { opacity: .65; cursor: wait; }
.aicall-account-dropdown .aicall-account-logout:focus,
.aicall-account-dropdown .aicall-account-logout:focus-visible {
  outline: none;
  box-shadow: none;
}
.aicall-account-status { margin: 8px 0 0; color: #9b3342; font-size: 12px; line-height: 1.4; }
.aicall-account-status[hidden] { display: none !important; }

.aicall-report-alert-card,
.aicall-report-card {
  position: relative;
  width: min(100%, 560px);
  max-height: min(780px, calc(100dvh - 40px));
  overflow-y: auto;
  padding: 42px 40px 40px;
  border: 1px solid rgba(113, 66, 208, .12);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(22, 10, 54, .28);
  color: #30263e;
  font-family: Manrope, Arial, sans-serif;
}
.aicall-report-alert-card { width: min(100%, 475px); text-align: center; }
.aicall-report-warning-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #fff4df;
  color: #e08a12;
}
.aicall-report-alert-card h2,
.aicall-report-card h2 {
  margin: 0 0 10px;
  color: #5425af;
  font-size: 27px;
  line-height: 1.3;
  font-weight: 800;
}
.aicall-report-alert-card > p,
.aicall-report-intro { margin: 0 0 26px; color: #6f667b; font-size: 14px; line-height: 1.65; }
.aicall-report-alert-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.aicall-report-primary-button,
.aicall-report-secondary-button {
  height: 48px;
  margin: 0;
  padding: 0 16px;
  border-radius: 11px;
  font: 800 14px/1 Manrope, Arial, sans-serif;
  cursor: pointer;
}
.aicall-report-primary-button { border: 0; background: linear-gradient(105deg, #6730c9, #8d54e6); color: #fff; }
.aicall-report-secondary-button { border: 1px solid #d8cfe8; background: #fff; color: #5d476f; }

.aicall-report-label {
  display: block;
  margin: 17px 0 8px;
  color: #302640;
  font-size: 14px;
  font-weight: 800;
}
.aicall-report-card input[type="tel"],
.aicall-report-card select,
.aicall-report-card textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #dcd4eb;
  border-radius: 11px;
  outline: none;
  background: #fff;
  color: #2d2441;
  font: 500 14px/1.5 Manrope, Arial, sans-serif;
}
.aicall-report-card input[type="tel"],
.aicall-report-card select { height: 49px; }
.aicall-report-card textarea { min-height: 110px; padding-top: 12px; resize: vertical; }
.aicall-report-card input[type="tel"]:focus,
.aicall-report-card select:focus,
.aicall-report-card textarea:focus { border-color: #7951d6; box-shadow: 0 0 0 3px rgba(121, 81, 214, .14); }
.aicall-report-upload {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 76px;
  padding: 14px;
  border: 1px dashed #9d83d2;
  border-radius: 12px;
  background: #faf8fe;
  color: #6333c4;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.aicall-report-upload:hover { border-color: #7441d5; background: #f6f1fd; }
.aicall-report-upload input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); pointer-events: none; }
.aicall-report-upload-icon { font-size: 25px; font-weight: 400; }
.aicall-report-note { margin: 7px 0 0; color: #847b90; font-size: 12px; line-height: 1.5; }
.aicall-report-file-list { margin: 9px 0 0; padding: 0; color: #5f526e; font-size: 12px; line-height: 1.45; list-style: none; }
.aicall-report-file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  padding: 8px 9px 8px 12px;
  border: 1px solid #e7e0f0;
  border-radius: 9px;
  background: #faf8fd;
}
.aicall-report-file-list li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aicall-report-file-remove {
  display: grid;
  flex: 0 0 26px;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eee7f8;
  color: #7651a7;
  font: 20px/1 Arial, sans-serif;
  cursor: pointer;
}
.aicall-report-file-remove:hover { background: #f6e2e7; color: #b03148; }
.aicall-report-status { margin: 17px 0; padding: 10px 12px; border-radius: 9px; background: #fff2f2; color: #9b3342; font-size: 13px; line-height: 1.5; }
.aicall-report-status[hidden] { display: none !important; }
.aicall-report-status[data-kind="success"] { background: #edf8f1; color: #246a40; }
.aicall-report-card .aicall-login-submit { margin-top: 22px; }

@media (max-width: 520px) {
  .aicall-login-overlay { padding: 14px; }
  .aicall-login-card { width: 100%; max-height: calc(100dvh - 28px); padding: 40px 24px 28px; border-radius: 20px; }
  .aicall-login-brand { margin-bottom: 19px; }
  .aicall-login-card p#aicall-login-subtitle { margin-bottom: 27px; }
  .aicall-login-otp { gap: 7px; }
  .aicall-login-card .aicall-login-otp input { width: min(48px, calc((100vw - 84px) / 5)); height: 56px; font-size: 22px; }
  .aicall-report-alert-card,
  .aicall-report-card { width: 100%; max-height: calc(100dvh - 28px); padding: 40px 22px 26px; border-radius: 20px; }
  .aicall-report-alert-actions { grid-template-columns: 1fr; }
  .aicall-account-dropdown { position: static; width: 100%; margin: 8px 0; box-shadow: none; }
}

@media (max-width: 991px) {
  .site-header .slicknav_nav li.btn-report > a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 14px;
    padding: 13px 16px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(115deg, #6130c7 0%, #8a55e5 100%);
    box-shadow: 0 8px 20px rgba(97, 48, 199, .2);
    color: #fff;
    font-weight: 800;
  }
  .site-header .slicknav_nav li.btn-report > a:hover { background: linear-gradient(115deg, #5225b6 0%, #7641d5 100%); color: #fff; }
}
