.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   AI HERO ADVISOR SECTION (FULL-WIDTH HERO REPLACING SLIDER)
   ========================================================================== */
.ai-hero-section {
  width: 100%;
  position: relative;
  background: radial-gradient(circle at 85% 20%, #291a70 0%, #150d42 45%, #0c0724 100%);
  color: #ffffff;
  padding: clamp(40px, 5vw, 70px) clamp(20px, 4vw, 50px);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Glowing background ambient lights */
.ai-hero-section::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(34, 178, 232, 0.15) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  border-radius: 50%;
}

.ai-hero-section::after {
  content: "";
  position: absolute;
  bottom: -20%;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200, 242, 75, 0.15) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  border-radius: 50%;
}

.ai-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 40px 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.ai-hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(200, 242, 75, 0.35);
  padding: 6px 14px;
  border-radius: 50px;
  width: fit-content;
  backdrop-filter: blur(8px);
}

.ai-spark-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #100b31;
  background: linear-gradient(135deg, #c8f24b, #22b2e8);
  font-size: 13px;
  font-weight: 900;
}

.ai-hero-badge span:last-child {
  color: #c8f24b;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  font-size: 11px;
}

.ai-hero-content h1 {
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 0;
  font-weight: 800;
  color: #ffffff;
}

.ai-hero-content h1 .highlight-text {
  background: linear-gradient(135deg, #ffffff 30%, #c8f24b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ai-hero-subtitle {
  margin: 0;
  color: #d1cced;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.55;
  max-width: 620px;
}

/* Form & Search Box */
.ai-hero-search-form {
  margin-top: 6px;
  width: 100%;
}

.ai-search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  border: 4px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 6px 6px 6px 18px;
  box-shadow: 0 16px 44px rgba(8, 5, 28, 0.5);
  transition: all 0.25s ease;
}

.ai-search-box:focus-within {
  border-color: #c8f24b;
  box-shadow: 0 18px 50px rgba(200, 242, 75, 0.3);
  transform: translateY(-1px);
}

.ai-search-icon {
  color: #5d5978;
  flex-shrink: 0;
  margin-right: 10px;
}

.ai-search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 12px 0;
  font: inherit;
  font-size: 15px;
  color: #17192b;
  background: transparent;
}

.ai-search-box input::placeholder {
  color: #7b7894;
}

.ai-submit-btn {
  border: 0;
  padding: 14px 26px;
  border-radius: 12px;
  background: linear-gradient(135deg, #c8f24b 0%, #aee325 100%);
  color: #100b31;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(200, 242, 75, 0.4);
  transition: all 0.2s ease;
}

.ai-submit-btn:hover {
  background: linear-gradient(135deg, #d3f766 0%, #bbf034 100%);
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(200, 242, 75, 0.5);
}

.ai-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Suggestions Chips */
.ai-hero-suggestions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.suggestions-label {
  font-size: 12px;
  color: #a49fc4;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.suggestions-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.suggestions-chips button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 99px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #eae7f8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.suggestions-chips button:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #c8f24b;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Right Side Card Visual */
.ai-hero-card-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.ai-hero-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  padding: 30px 20px;
  backdrop-filter: blur(16px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}

.ai-card-glow {
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle, rgba(200, 242, 75, 0.2) 0%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.ai-hero-phone-img {
  width: 100%;
  max-height: 290px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
  transition: transform 0.4s ease;
  position: relative;
  z-index: 1;
}

.ai-hero-card:hover .ai-hero-phone-img {
  transform: translateY(-6px) scale(1.03);
}

.ai-hero-floating-badge {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 11, 49, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 9px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

.ai-hero-floating-badge.badge-top {
  top: -14px;
  left: -14px;
}

.ai-hero-floating-badge.badge-bottom {
  bottom: -14px;
  right: -14px;
}

.badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c8f24b;
  box-shadow: 0 0 10px #c8f24b;
  animation: pulse-dot 1.5s infinite;
}

.badge-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #c8f24b;
  color: #100b31;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ==========================================================================
   AI DIALOG & CHAT MODAL (PRESERVED)
   ========================================================================== */
.ai-dialog {
  width: min(1000px, calc(100% - 28px));
  height: min(780px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 100px rgba(8, 5, 28, 0.6);
}

.ai-dialog::backdrop {
  background: rgba(8, 5, 28, 0.72);
  backdrop-filter: blur(6px);
}

.ai-dialog-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  background: #f5f6fa;
}

.ai-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: #100b31;
  color: white;
}

.ai-dialog header > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-dialog header .ai-spark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #100b31;
  background: linear-gradient(135deg, #c8f24b, #22b2e8);
  font-size: 18px;
  font-weight: 900;
}

.ai-dialog small {
  color: #c8f24b;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 900;
  font-size: 10px;
}

.ai-dialog h2 {
  margin: 1px 0 0;
  font-size: 19px;
}

.ai-dialog header > button {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 25px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ai-dialog header > button:hover {
  background: rgba(255, 255, 255, 0.25);
}

.ai-conversation {
  padding: 24px;
  overflow: auto;
}

.ai-message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 0 18px;
}

.ai-message.user {
  align-items: flex-end;
}

.ai-bubble {
  max-width: min(680px, 85%);
  padding: 12px 15px;
  background: #fff;
  border: 1px solid #e3e4eb;
  border-radius: 4px 15px 15px;
  box-shadow: 0 4px 14px rgba(23, 25, 43, 0.05);
  white-space: pre-wrap;
}

.ai-message.user .ai-bubble {
  background: #242060;
  color: #fff;
  border: 0;
  border-radius: 15px 4px 15px;
}

.ai-message.error .ai-bubble {
  background: #fff1ef;
  color: #a12a1e;
  border-color: #ffc9c1;
}

.ai-results {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 10px;
}

.ai-result {
  display: grid;
  grid-template-rows: 100px 1fr;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e0e2e9;
  border-radius: 11px;
  overflow: hidden;
  transition: 0.18s;
}

.ai-result:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(23, 25, 43, 0.08);
}

.ai-result > img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  padding: 7px;
  background: #fafafa;
}

.ai-result > div {
  padding: 10px;
}

.ai-result small {
  color: #6c6783;
  letter-spacing: 0;
  text-transform: none;
}

.ai-result h3 {
  font-size: 15px;
  margin: 1px 0 2px;
}

.ai-result strong {
  color: #ef523c;
  font-size: 17px;
}

.ai-result p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 6px 0;
  font-size: 11px;
  color: #666b78;
  line-height: 1.35;
}

.ai-result span {
  color: #4940b7;
  font-size: 11px;
  font-weight: 850;
}

.ai-chat-form {
  display: flex;
  margin: 0 20px;
  border: 1px solid #d9dbe4;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(23, 25, 43, 0.05);
}

.ai-chat-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 14px 16px;
  font: inherit;
}

.ai-chat-form button {
  width: 48px;
  border: 0;
  background: #c8f24b;
  color: #100b31;
  font-size: 20px;
  cursor: pointer;
}

.ai-disclaimer {
  text-align: center;
  color: #777b88;
  font-size: 10px;
  margin: 8px 15px 10px;
}

.ai-bubble.is-typing:after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -2px;
  background: #4e47b4;
  animation: ai-caret 0.65s steps(1) infinite;
}

.ai-message.follow-up .ai-bubble {
  border-color: #c9c4ed;
  background: #f4f2ff;
  color: #302967;
}

.ai-grade-options {
  margin: 7px 0;
  padding: 6px 8px;
  border-radius: 7px;
  background: #f5f6fa;
}

.ai-grade-options > b {
  display: block;
  margin-bottom: 2px;
  color: #69657c;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ai-grade-options > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
  color: #656978;
  font-size: 10px;
  border-top: 1px solid #e4e5eb;
}

.ai-grade-options > div.selected {
  color: #242060;
  font-weight: 800;
}

.ai-grade-options strong {
  color: inherit;
  font-size: 10px;
}

.loading i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 2px;
  border-radius: 50%;
  background: #69657c;
  animation: ai-pulse 1s infinite alternate;
}

.loading i:nth-child(2) { animation-delay: 0.2s; }
.loading i:nth-child(3) { animation-delay: 0.4s; }

@keyframes ai-pulse {
  to { opacity: 0.25; transform: translateY(-3px); }
}

@keyframes ai-caret {
  50% { opacity: 0; }
}

/* Responsive Media Queries */
@media (max-width: 990px) {
  .ai-hero-inner {
    grid-template-columns: 1fr;
  }
  .ai-hero-card-wrapper {
    display: none;
  }
}

@media (max-width: 640px) {
  .ai-hero-section {
    padding: 32px 16px;
  }
  .ai-search-box {
    flex-direction: column;
    padding: 12px;
    gap: 10px;
  }
  .ai-search-icon {
    display: none;
  }
  .ai-search-box input {
    width: 100%;
    padding: 4px 6px;
  }
  .ai-submit-btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
  }
  .suggestions-chips {
    flex-wrap: wrap;
  }
  .ai-results {
    grid-template-columns: 1fr;
  }
  .ai-result {
    grid-template-columns: 90px 1fr;
    grid-template-rows: 1fr;
  }
  .ai-result > img {
    width: 90px;
    height: 100%;
    min-height: 110px;
  }
  .ai-dialog {
    height: calc(100% - 16px);
    width: calc(100% - 16px);
  }
  .ai-conversation {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .ai-hero-badge {
    padding: 4px 10px;
  }
  .ai-hero-badge span:last-child {
    font-size: 10px;
  }
  .ai-dialog header {
    padding: 13px 14px;
  }
  .ai-bubble {
    max-width: 92%;
  }
}

/* ==========================================================================
   AI CONFIRMATION CLOSE MODAL
   ========================================================================== */
.ai-confirm-dialog {
  width: min(440px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(8, 5, 28, 0.7);
  background: #100b31;
  color: #ffffff;
}

.ai-confirm-dialog::backdrop {
  background: rgba(8, 5, 28, 0.75);
  backdrop-filter: blur(8px);
}

.ai-confirm-shell {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, #251860 0%, #100b31 80%);
}

.ai-confirm-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 92, 67, 0.15);
  border: 1px solid rgba(255, 92, 67, 0.4);
  color: #ff5c43;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 14px;
}

.ai-confirm-shell h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.ai-confirm-shell p {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.5;
  color: #c4c0e0;
}

.ai-confirm-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}

.ai-confirm-actions button {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  border: 0;
  transition: all 0.2s ease;
}

.ai-confirm-actions .btn-cancel {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ai-confirm-actions .btn-cancel:hover {
  background: rgba(255, 255, 255, 0.22);
}

.ai-confirm-actions .btn-exit {
  background: linear-gradient(135deg, #ff5b41 0%, #d82c16 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 91, 65, 0.4);
}

.ai-confirm-actions .btn-exit:hover {
  background: linear-gradient(135deg, #ff6c54 0%, #e9341e 100%);
  transform: translateY(-1px);
}

