@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  --cream: #f8f6f2;
  --cream-dark: #eeeae3;
  --white: #ffffff;
  --ink: #171717;
  --muted: #686868;
  --brown: #9a6037;
  --brown-dark: #70401f;
  --border: #e5e0d8;
  --radius: 14px;
}

/* body{
  zoom: 0.85;
} */


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}

button,
a {
  font-family: inherit;
}

button {
  border: 0;
}

.app-shell {
  min-height: 100vh;
  background: var(--cream);
}

/* ---------------- NAVIGATION ---------------- */

.navbar-wrap {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #ebe7e0;
  backdrop-filter: blur(14px);
  /* zoom: 80%; */
}

.closetly-nav {
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  min-width: 290px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  font-family: "Playfair Display", serif;
  font-size: 31px;
  line-height: 1;
  font-weight: 700;
}

.brand-tagline {
  margin-top: 5px;
  color: #777;
  font-size: 11px;
  letter-spacing: .02em;
}

.main-nav {
  display: flex;
  align-items: stretch;
  gap: 8px;
  height: 78px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  background: transparent;
  color: #303030;
  font-size: 17px;
  font-weight: 500;
  transition: .2s ease;
}

.nav-item i {
  font-size: 25px;
}

.nav-item::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  background: transparent;
}

.nav-item:hover {
  color: var(--brown);
}

.nav-item.active {
  color: var(--brown-dark);
}

.nav-item.active::after {
  background: var(--brown);
}

.profile-button {
  display: flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  padding: 0 4px 0 20px;
  color: #222;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid #e8e3dc;
  display: grid;
  place-items: center;
  background: #2c3942;
  color: white;
  font-weight: 600;
}

.navbar-toggler {
  border: 0;
  font-size: 28px;
  color: var(--ink);
}

/* ---------------- PAGES ---------------- */

.page {
  display: none;
}

.page.active-page {
  display: block;
}

/* ---------------- HERO ---------------- */

.hero-section {
  min-height: 415px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f4f0ea;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 55px 7vw 55px 6vw;
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brown);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
}

.hero-content h1 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(44px, 4.2vw, 66px);
  line-height: .98;
  letter-spacing: -.035em;
  font-weight: 600;
}

.hero-content h1 span {
  color: var(--brown);
}

.hero-copy {
  max-width: 610px;
  color: #676767;
  font-size: 17px;
  line-height: 1.6;
  margin: 24px 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.btn-primary-custom,
.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 53px;
  padding: 0 23px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-primary-custom {
  background: var(--brown);
  color: white;
}

.btn-primary-custom:hover {
  background: var(--brown-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 9px 25px rgba(112,64,31,.18);
}

.btn-outline-custom {
  background: transparent;
  border: 1px solid var(--brown);
  color: var(--brown);
}

.btn-outline-custom:hover {
  background: white;
  transform: translateY(-2px);
}

.hero-image {
  position: relative;
  min-height: 415px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 73% 51%;
  display: block;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(244,240,234,.18), transparent 24%);
  pointer-events: none;
}

/* ---------------- FEATURES ---------------- */

.features-section {
  padding: 28px 5.5vw 18px;
  background: var(--white);
}

.section-heading {
  text-align: center;
  margin-bottom: 24px;
}

.section-heading h2,
.section-title-row h2 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  margin: 0;
}

.section-heading h2 {
  font-size: 23px;
}

.heading-line {
  width: 43px;
  height: 1px;
  background: #766d64;
  margin: 10px auto 0;
}

/* CENTER FEATURE CARDS */
.feature-grid {
  max-width: 1100px;
  margin: 0 auto;
  justify-content: center;
}

.feature-grid > div {
  flex: 0 0 auto;
  width: 345px;
}

.feature-card {
  min-height: 190px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px;
  background: #fff;
  display: flex;
  gap: 18px;
  transition: .2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 13px 30px rgba(35,27,18,.06);
}

.feature-icon {
  width: 69px;
  height: 69px;
  flex: 0 0 69px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 27px;
}

.feature-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.icon-brown { background: #f3e4d6; color: #8b4e25; }
.icon-green { background: #e9eee5; color: #343c32; }
.icon-purple { background: #eee9f4; color: #5e5270; }
.icon-blue { background: #e6edf6; color: #285f93; }

.feature-card h3 {
  margin: 3px 0 8px;
  font-family: "Playfair Display", serif;
  font-size: 16px;
  font-weight: 700;
}

.feature-card p {
  color: #626262;
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.feature-link {
  background: transparent;
  color: #9a6037;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
}

.feature-link i {
  margin-left: 7px;
  transition: margin .2s ease;
}

.feature-link:hover i {
  margin-left: 11px;
}

.green-link { color: #526d4a; }
.purple-link { color: #6653a1; }
.blue-link { color: #155c99; }

@media (max-width: 991px) {
  .feature-grid > div {
    width: 45%;
  }
}

@media (max-width: 575px) {
  .feature-grid > div {
    width: 100%;
  }
}

/* ---------------- OUTFITS ---------------- */

.outfits-section {
  padding: 18px 5.5vw 55px;
  background: white;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.section-title-row h2 {
  font-size: 22px;
}

.view-all {
  background: transparent;
  color: #47382e;
  font-size: 12px;
  font-weight: 600;
}

.view-all i {
  margin-left: 8px;
}

.outfit-card {
  overflow: hidden;
  border-radius: 10px;
  background: #f0ece5;
}

.outfit-image {
  position: relative;
  aspect-ratio: 1 / .93;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.outfit-menu {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 16px;
  letter-spacing: 2px;
  color: #222;
  text-shadow: 0 1px 5px rgba(255,255,255,.8);
}

.outfit-one {
  background:
    linear-gradient(145deg, transparent 30%, rgba(0,0,0,.04)),
    url("https://images.unsplash.com/photo-1551028719-00167b16eac5?auto=format&fit=crop&w=700&q=85");
}

.outfit-two {
  background:
    linear-gradient(145deg, transparent 30%, rgba(0,0,0,.04)),
    url("https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?auto=format&fit=crop&w=700&q=85");
}

.outfit-three {
  background:
    linear-gradient(145deg, transparent 30%, rgba(0,0,0,.04)),
    url("https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?auto=format&fit=crop&w=700&q=85");
}

.outfit-four {
  background:
    linear-gradient(145deg, transparent 30%, rgba(0,0,0,.04)),
    url("https://images.unsplash.com/photo-1496747611176-843222e1e57c?auto=format&fit=crop&w=700&q=85");
}

.outfit-five {
  background:
    linear-gradient(145deg, transparent 30%, rgba(0,0,0,.04)),
    url("https://images.unsplash.com/photo-1506629905607-d9eab6c1d3b4?auto=format&fit=crop&w=700&q=85");
}

.outfit-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 13px 13px;
  background: white;
}

.outfit-info strong {
  font-family: "Playfair Display", serif;
  font-size: 14px;
}

.outfit-info span {
  color: #777;
  font-size: 11px;
}

/* ---------------- PLACEHOLDER PAGES ---------------- */

.placeholder-page {
  min-height: calc(100vh - 97px);
  padding: 80px 20px;
  display: none;
  place-items: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(154,96,55,.08), transparent 30%),
    var(--cream);
}

.placeholder-page.active-page {
  display: grid;
}

.placeholder-inner {
  width: min(650px, 100%);
  text-align: center;
  padding: 60px 30px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(40,25,15,.06);
}

.placeholder-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f1e4d8;
  color: var(--brown);
  font-size: 31px;
}

.placeholder-inner h1 {
  font-family: "Playfair Display", serif;
  font-size: 45px;
  margin-bottom: 15px;
}

.placeholder-inner > p:not(.eyebrow) {
  max-width: 500px;
  margin: 0 auto 28px;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------------- FOOTER (shared, loaded by script/footer.js) ---------------- */

.site-footer {
  background: #f5f2ed;
  border-top: 1px solid var(--border);
  padding: 54px 5.5vw 0;
}

.sf-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.sf-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sf-brand-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.sf-brand-name {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.sf-desc {
  margin: 16px 0 0;
  max-width: 270px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.sf-tagline {
  margin: 8px 0 0;
  color: #999;
  font-size: 11px;
  letter-spacing: .02em;
}

.sf-title {
  font-family: "Playfair Display", serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 4px 0 16px;
}

.sf-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.sf-links.sf-links-wrap {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.sf-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  transition: color .18s ease;
}

.sf-links a:hover,
.sf-links a:focus-visible {
  color: var(--brown);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sf-bottom {
  max-width: 1240px;
  margin: 44px auto 0;
  border-top: 1px solid var(--border);
  padding: 18px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  flex-wrap: wrap;
  color: #858585;
  font-size: 11.5px;
}

.sf-bottom-links {
  display: flex;
  gap: 20px;
}

@media (max-width: 575px) {
  .site-footer {
    padding-top: 40px;
  }

  .sf-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 1199px) {
  .brand {
    min-width: 240px;
  }

  .nav-item {
    padding: 0 13px;
  }

  .nav-item::after {
    left: 10px;
    right: 10px;
  }

  .feature-card {
    min-height: 205px;
  }
}

@media (max-width: 991px) {
  .closetly-nav {
    min-height: 76px;
  }

  .main-nav {
    height: auto;
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
  }

  .nav-item {
    min-height: 50px;
    justify-content: flex-start;
  }

  .nav-item::after {
    display: none;
  }

  .profile-button {
    padding: 10px 0 16px;
  }

  .hero-section {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 58px 8vw 45px;
  }

  .hero-image {
    height: 330px;
    min-height: 330px;
  }

  .hero-image img {
    object-position: center 47%;
  }
}

@media (max-width: 575px) {
  .brand-name {
    font-size: 26px;
  }

  .brand-tagline {
    font-size: 9px;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
  }

  .hero-content {
    padding: 45px 24px 38px;
  }

  .hero-content h1 {
    font-size: 43px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary-custom,
  .btn-outline-custom {
    width: 100%;
  }

  .features-section,
  .outfits-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .feature-card {
    min-height: auto;
  }

  .outfit-col {
    width: 50%;
  }
}

.hero-image {
    position: relative;
    min-height: 415px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-image::before {
    content: "";
    position: absolute;
    z-index: 2;
    left: 0;
    top: 0;
    bottom: 0;
    width: 35%;
    background: linear-gradient(
        to right,
        #f4f0ea 0%,
        rgba(244, 240, 234, 0.95) 20%,
        rgba(244, 240, 234, 0.65) 50%,
        rgba(244, 240, 234, 0) 100%
    );
    pointer-events: none;
}

/* ---------------- PROFILE DROPDOWN ---------------- */

.profile-dropdown-wrap {
  position: relative;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(35,27,18,.1);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .2s ease;
  z-index: 1100;
}

.profile-dropdown-wrap.open .profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  font-size: 14px;
  color: #444;
  text-decoration: none;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  transition: background .15s ease;
}

.profile-dropdown .dropdown-item:hover {
  background: var(--cream);
  color: var(--brown-dark);
}

.profile-dropdown .dropdown-item i {
  font-size: 16px;
  color: var(--muted);
}

.profile-dropdown .dd-logout {
  color: #c0392b;
}

.profile-dropdown .dd-logout i {
  color: #c0392b;
}

.profile-dropdown .dd-logout:hover {
  background: #fdf2f2;
  color: #c0392b;
}

.profile-dropdown .dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.nav-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* ---------------- AUTH GATE ---------------- */

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: rgba(248,246,242,.92);
  backdrop-filter: blur(8px);
  padding: 20px;
}

.auth-gate-card {
  max-width: 480px;
  width: 100%;
  text-align: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 50px 40px;
  box-shadow: 0 20px 60px rgba(40,25,15,.08);
}

.auth-gate-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 20px;
}

.auth-gate-card h2 {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 12px;
}

.auth-gate-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 28px;
}

.auth-gate-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.auth-gate-actions .btn-primary-custom,
.auth-gate-actions .btn-outline-custom {
  text-decoration: none;
}

@media (max-width: 575px) {
  .auth-gate-card {
    padding: 36px 24px;
  }

  .auth-gate-actions {
    flex-direction: column;
  }

  .auth-gate-actions .btn-primary-custom,
  .auth-gate-actions .btn-outline-custom {
    width: 100%;
  }
}

/* =====================================================
   CLOSETLY AI ASSISTANT
===================================================== */

.ai-assistant {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 9999;
}


/* =====================================================
   FLOATING AI BUTTON
===================================================== */

.ai-assistant-button {
  width: 58px;
  height: 58px;
  border-radius: 50%;

  border: 2px solid var(--white);

  background: var(--brown);
  color: var(--white);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  cursor: pointer;

  box-shadow:
    0 8px 24px rgba(23, 23, 23, 0.18),
    0 0 0 5px rgba(154, 96, 55, 0.12);

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.ai-assistant-button:hover {
  transform: translateY(-3px) scale(1.04);

  background: var(--brown-dark);

  box-shadow:
    0 12px 28px rgba(23, 23, 23, 0.22),
    0 0 0 6px rgba(154, 96, 55, 0.14);
}

.ai-assistant-button.active {
  background: var(--brown-dark);
}

.ai-assistant-button i {
  transition: transform 0.25s ease;
}

.ai-assistant-button.active i {
  transform: rotate(90deg);
}


/* =====================================================
   CHAT BOX
===================================================== */

.ai-chatbox {
  position: absolute;
  right: 0;
  bottom: 72px;

  width: 360px;
  height: 520px;

  background: var(--white);

  border: 1px solid var(--border);
  border-radius: var(--radius);

  display: flex;
  flex-direction: column;
  overflow: hidden;

  box-shadow:
    0 20px 60px rgba(23, 23, 23, 0.16);

  opacity: 0;
  visibility: hidden;

  transform: translateY(15px) scale(0.96);
  transform-origin: bottom right;

  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
}

.ai-chatbox.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}


/* =====================================================
   CHAT HEADER
===================================================== */

.ai-chat-header {
  padding: 15px 17px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: var(--brown);
  color: var(--white);
}

.ai-chat-title {
  display: flex;
  align-items: center;
  gap: 11px;
}

.ai-chat-avatar {
  width: 38px;
  height: 38px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.16);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 17px;
}

.ai-chat-title strong {
  display: block;

  color: var(--white);

  font-size: 14px;
  font-weight: 600;
}

.ai-chat-title small {
  display: block;

  margin-top: 2px;

  color: rgba(255, 255, 255, 0.78);

  font-size: 11px;
}

.ai-chat-close {
  width: 32px;
  height: 32px;

  border: 0;
  border-radius: 50%;

  background: transparent;
  color: var(--white);

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  transition: background 0.2s ease;
}

.ai-chat-close:hover {
  background: rgba(255, 255, 255, 0.14);
}


/* =====================================================
   MESSAGES
===================================================== */

.ai-chat-messages {
  flex: 1;

  padding: 18px;

  overflow-y: auto;

  background: var(--cream);

  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ai-message {
  display: flex;
  align-items: flex-start;
  gap: 8px;

  max-width: 88%;
}

.ai-message-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ai-message-avatar {
  flex-shrink: 0;

  width: 27px;
  height: 27px;

  border-radius: 50%;

  background: var(--cream-dark);
  color: var(--brown);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 12px;
}

.ai-message-content {
  padding: 10px 13px;

  border-radius: 13px;

  background: var(--white);
  color: var(--ink);

  border: 1px solid var(--border);

  font-size: 13px;
  line-height: 1.45;

  box-shadow:
    0 2px 8px rgba(23, 23, 23, 0.035);
}

.ai-message-user .ai-message-content {
  background: var(--brown);
  color: var(--white);

  border-color: var(--brown);
}


/* =====================================================
   QUICK SUGGESTIONS
===================================================== */

.ai-chat-suggestions {
  padding: 9px 12px;

  display: flex;
  gap: 7px;

  overflow-x: auto;

  background: var(--white);

  border-top: 1px solid var(--border);
}

.ai-chat-suggestions::-webkit-scrollbar {
  display: none;
}

.ai-suggestion {
  flex-shrink: 0;

  padding: 7px 11px;

  border: 1px solid var(--border);
  border-radius: 20px;

  background: var(--cream);
  color: var(--brown-dark);

  font-size: 11px;

  cursor: pointer;

  transition: all 0.2s ease;
}

.ai-suggestion:hover {
  background: var(--cream-dark);

  border-color: var(--brown);

  color: var(--brown-dark);
}


/* =====================================================
   INPUT
===================================================== */

.ai-chat-input-area {
  padding: 11px;

  display: flex;
  gap: 8px;

  background: var(--white);

  border-top: 1px solid var(--border);
}

.ai-chat-input-area input {
  flex: 1;
  min-width: 0;

  padding: 10px 14px;

  border: 1px solid var(--border);
  border-radius: 22px;

  background: var(--cream);

  color: var(--ink);

  outline: none;

  font-size: 13px;

  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.ai-chat-input-area input::placeholder {
  color: var(--muted);
}

.ai-chat-input-area input:focus {
  background: var(--white);
  border-color: var(--brown);
}

.ai-chat-input-area button {
  width: 39px;
  height: 39px;

  flex-shrink: 0;

  border: 0;
  border-radius: 50%;

  background: var(--brown);
  color: var(--white);

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.ai-chat-input-area button:hover {
  background: var(--brown-dark);
  transform: scale(1.05);
}


/* =====================================================
   TYPING INDICATOR
===================================================== */

.ai-typing {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ai-typing span {
  width: 5px;
  height: 5px;

  background: var(--brown);

  border-radius: 50%;

  animation: aiTyping 1.2s infinite ease-in-out;
}

.ai-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.ai-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes aiTyping {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 576px) {

  .ai-assistant {
    right: 16px;
    bottom: 18px;
  }

  .ai-assistant-button {
    width: 54px;
    height: 54px;
  }

  .ai-chatbox {
    position: fixed;

    right: 12px;
    bottom: 82px;

    width: calc(100vw - 24px);
    height: min(520px, 70vh);

    border-radius: var(--radius);
  }
}