
:root {
  --bg: #fafafa;
  --card: #ffffff;
  --primary: #d946a6;
  --primary-soft: #f8bfd2;
  --accent: #ff8fb8;
  --text-main: #1f1f1f;
  --text-soft: #6b6b6b;
  --border-soft: rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.1);
  --radius-xl: 16px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --transition-fast: 0.2s ease;
  /* Affiliate link colors - readable on dark chat bubbles */
  --affiliate-link: #ff9ac7;
  --affiliate-link-hover: #ffb0d4;
  --affiliate-link-bg-hover: rgba(255, 154, 199, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
}

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

header.site-header {
  width: 100%;
  border-bottom: 1px solid var(--border-soft);
  background: var(--card);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: var(--shadow-soft);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav a {
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--text-soft);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.nav a:hover {
  color: var(--primary);
  background: rgba(217, 70, 166, 0.08);
}

.nav .pill-cta {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

.nav .pill-cta:hover {
  background: #c23a95;
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

/* Hero Section */
.hero {
  text-align: center;
  max-width: 700px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--text-main);
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-disclaimer {
  font-size: 0.875rem;
  color: var(--text-soft);
  margin: 0;
}

.ai-helper-text {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  opacity: 0.9;
  color: var(--text-soft);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: #c23a95;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Info Section Styles */
.info-section {
  max-width: 1100px;
  margin: 2.5rem auto;
  padding: 1.75rem 1.5rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.info-section h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  font-weight: 700;
}

.info-section p {
  margin-bottom: 1rem;
  max-width: 52rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.steps-list {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.steps-list li {
  line-height: 1.5;
  color: var(--text-main);
}

.reasons-list {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.reasons-list li {
  line-height: 1.5;
  color: var(--text-main);
}

/* Info Cards */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.info-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}

.info-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
}

.info-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-soft);
}

/* Category Navigation */
.category-nav {
  max-width: 1200px;
  margin: 3rem auto 2rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}

.category-nav-title {
  font-size: 1.25rem;
  margin: 0 0 1rem 0;
  font-weight: 700;
  color: var(--text-main);
}

.category-nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.category-nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border-soft);
  background: var(--card);
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.category-nav-pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  border-color: var(--primary);
  color: var(--primary);
}

/* Category Sections */
.category-section {
  max-width: 1200px;
  margin: 2.5rem auto;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}

.category-section h2 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-icon {
  font-size: 1.5rem;
}

.category-section p {
  margin: 0 0 1.5rem 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 500;
  background: var(--bg);
  text-decoration: none;
  border: 1px solid var(--border-soft);
  transition: all var(--transition-fast);
  color: var(--text-main);
}

.brand-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: var(--primary);
  color: var(--primary);
  background: var(--card);
}

/* Featured Partner Deals Section */
.featured-deals-section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(217, 70, 166, 0.03), rgba(255, 143, 184, 0.03));
  border: 1px solid var(--border-soft);
}

.featured-deals-section h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.75rem;
  text-align: center;
}

.featured-deals-section > p {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.featured-deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.featured-deal-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.featured-deal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(217, 70, 166, 0.3);
}

.featured-deal-card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.featured-deal-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-soft);
  flex: 1;
}

.featured-deal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-soft);
  border: none;
  cursor: pointer;
}

.featured-deal-button:hover {
  background: #c23a95;
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--card);
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-soft);
  text-align: center;
}

.footer-brand {
  font-size: 1rem;
}

.footer-disclaimer {
  line-height: 1.6;
}

.footer-contact a {
  color: var(--primary);
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.875rem 1rem;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .main {
    padding: 1.5rem 1rem 3rem;
  }

  .hero {
    margin: 2rem auto;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .info-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .info-card {
    padding: 1.5rem;
  }

  .category-nav {
    padding: 1.25rem;
  }

  .category-nav-title {
    font-size: 1.125rem;
  }

  .category-nav-pill {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }

  .category-section {
    padding: 1.5rem;
    margin: 1.5rem auto;
  }

  .category-section h2 {
    font-size: 1.5rem;
  }

  .brand-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.625rem;
  }

  .brand-chip {
    font-size: 0.875rem;
    padding: 0.625rem 0.875rem;
  }

  .featured-deals-section {
    padding: 2rem 1.5rem;
  }

  .featured-deals-section h2 {
    font-size: 1.5rem;
  }

  .featured-deals-section > p {
    font-size: 1rem;
  }

  .featured-deals-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .featured-deal-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .brand-chip {
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
  }

  .category-nav-pill {
    flex: 1 1 auto;
    min-width: calc(50% - 0.375rem);
  }
}

/* CHAT PAGE STYLES (for chat.html) */
.chat-page-wrap {
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(18px);
  background: linear-gradient(to right, rgba(255, 245, 248, 0.86), rgba(255, 255, 255, 0.96));
  position: sticky;
  top: 0;
  z-index: 20;
  transition: all 0.3s ease;
}

.chat-page-header.shrink {
  padding-top: 0;
  padding-bottom: 0;
}

.chat-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: all 0.3s ease;
}

.chat-page-header.shrink .chat-header-inner {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.chat-page-header.shrink .brand-logo {
  width: 24px;
  height: 24px;
}

.chat-page-header.shrink .brand-name {
  font-size: 0.85rem;
}

.chat-page-header.shrink .brand-tagline {
  font-size: 0.65rem;
}

.chat-page-header.shrink .nav a {
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
}

.chat-main-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

.chat-intro-banner {
  background: var(--chat-bg);
  padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: 0 4px 12px rgba(176, 68, 115, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.chat-intro-banner h1 {
  margin: 0;
  font-size: 1.5rem;
}

.chat-intro-banner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  background: radial-gradient(circle at top left, #ffe4f0 0, #ffeef6 40%, #ffe6f2 100%);
  padding: 1.5rem 1.25rem;
  min-height: 0;
}

.messages {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.msg {
  max-width: 75%;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.55;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.msg.user {
  margin-left: auto;
  border-bottom-right-radius: 4px;
  background: linear-gradient(135deg, #ff9ac7, #f35f9c);
  color: #fff;
  align-self: flex-end;
}

.msg.ai {
  margin-right: auto;
  border-bottom-left-radius: 4px;
  background: radial-gradient(circle at top left, #2a1838, #3d2347);
  color: #f7eaf4;
  border: 1px solid rgba(255,255,255,0.1);
  align-self: flex-start;
}

/* Beauty affiliate link styling - only within AI chat messages */
/* Uses CSS variables for consistency with site palette */
.msg.ai .beauty-affiliate-link {
  color: var(--affiliate-link);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(255, 154, 199, 0.5);
  transition: all var(--transition-fast);
  display: inline;
  padding: 0 2px;
  border-radius: 2px;
  /* Ensure adequate contrast for accessibility */
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
}

.msg.ai .beauty-affiliate-link:hover,
.msg.ai .beauty-affiliate-link:focus {
  color: var(--affiliate-link-hover);
  border-bottom-color: var(--affiliate-link-hover);
  border-bottom-width: 2px;
  background: var(--affiliate-link-bg-hover);
  text-decoration: none;
  outline: none;
}

/* Focus visible for keyboard navigation accessibility */
.msg.ai .beauty-affiliate-link:focus-visible {
  outline: 2px solid var(--affiliate-link);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Ensure link styling is distinct and clickable on mobile */
@media (max-width: 640px) {
  .msg.ai .beauty-affiliate-link {
    padding: 1px 4px;
    /* Slightly larger touch target on mobile */
  }
}

.chat-input-container {
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, rgba(255, 245, 248, 0.98) 0%, rgba(255, 245, 248, 0.95) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px);
  padding: 1rem 1.25rem;
  box-shadow: 0 -4px 12px rgba(176, 68, 115, 0.12);
}

.chat-input-form {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.chat-input-form input[type="text"] {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(180, 41, 91, 0.2);
  padding: 0.85rem 1.2rem;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(176, 68, 115, 0.1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input-form input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(176, 68, 115, 0.2);
}

.chat-input-form input::placeholder {
  color: rgba(122, 58, 85, 0.6);
}

.chat-input-form button {
  border-radius: 999px;
  border: none;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), #f35f9c);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(180, 41, 91, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.chat-input-form button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(180, 41, 91, 0.45);
}

.chat-input-form button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.chat-safety-section {
  background: rgba(255,255,255,0.97);
  padding: 1.5rem 1.25rem 2rem;
  font-size: 0.86rem;
  color: var(--text-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.chat-safety-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--text-main);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.chat-safety-section p,
.chat-safety-section ul {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.chat-safety-section ul {
  margin: 0.4rem auto 0.2rem;
  padding-left: 1.1rem;
}

.chat-safety-section li {
  margin-bottom: 0.25rem;
}

/* Category navigation */
.category-nav {
  max-width: 1100px;
  margin: 2rem auto 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.7);
}

.category-nav-title {
  font-size: 1.1rem;
  margin: 0 0 0.75rem 0;
  font-weight: 600;
  color: var(--text-main);
}

.category-nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.95);
  color: var(--text-soft);
  transition: background 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease, color 0.12s ease;
}

.category-nav-pill:hover,
.category-nav-pill:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  background: rgba(255,255,255,1);
  color: var(--primary);
}

/* Category sections - compact layout */
.category-section {
  max-width: 1100px;
  margin: 2.5rem auto;
  padding: 1.75rem 1.5rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.category-section h2 {
  font-size: 1.6rem;
  margin: 0 0 0.25rem 0;
  font-weight: 700;
  color: var(--text-main);
}

.category-section p {
  margin: 0 0 0.75rem 0;
  max-width: 60rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.category-section .brand-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  line-height: 1.2;
  background: rgba(255,255,255,0.9);
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  color: var(--text-main);
  box-shadow: none;
  font-weight: 500;
}

.category-section .brand-card:hover,
.category-section .brand-card:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  background: rgba(255,255,255,1);
}

.category-section .brand-card::before {
  display: none;
}

/* Legacy styles kept for other pages */
.chat-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.8rem 1.25rem 3rem;
}

.chat-hero {
  background: var(--chat-bg);
  border-radius: 26px;
  padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: 0 18px 40px rgba(176, 68, 115, 0.45);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.chat-hero h1 {
  margin: 0;
  font-size: 1.5rem;
}

.chat-hero p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.chat-layout {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.95fr);
  gap: 1.3rem;
}

.chat-window {
  background: rgba(10, 5, 18, 0.97);
  border-radius: 26px;
  padding: 1.1rem 1.05rem 1rem;
  color: #f7eaf4;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  max-height: 560px;
}

.chat-input-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
  align-items: center;
}

.chat-input-row input[type="text"] {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.65rem 0.9rem;
  font-size: 0.86rem;
  background: rgba(30, 18, 45, 0.95);
  color: #f7eaf4;
}

.chat-input-row input::placeholder {
  color: rgba(247,234,244,0.65);
}

.chat-input-row button {
  border-radius: 999px;
  border: none;
  padding: 0.7rem 1.1rem;
  background: linear-gradient(135deg, #f35f9c, #ffb0d4);
  color: #130712;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.chat-input-row button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.chat-helper {
  background: rgba(255,255,255,0.97);
  border-radius: 24px;
  padding: 1.1rem 1.1rem 1.2rem;
  box-shadow: 0 18px 36px rgba(212, 117, 153, 0.28);
  font-size: 0.86rem;
  color: var(--text-soft);
}

.chat-helper h2 {
  margin-top: 0;
  font-size: 1rem;
  color: var(--text-main);
}

.chat-helper ul {
  margin: 0.4rem 0 0.2rem;
  padding-left: 1.1rem;
}

.chat-helper li {
  margin-bottom: 0.25rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(244, 183, 203, 0.9);
  font-size: 0.73rem;
}

/* Makeup section - High-end beauty aesthetic */

.makeup-section,
.skincare-section,
.haircare-section,
.tools-section {
  margin-top: 3rem;
  padding: 2rem 0;
}

.section-icon {
  font-size: 1.4rem;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.makeup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.3rem;
}

.brand-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 253, 0.95));
  border-radius: 22px;
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: 0 8px 24px rgba(212, 99, 143, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.brand-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-soft));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(212, 99, 143, 0.28);
  border-color: rgba(180, 41, 91, 0.15);
}

.brand-card:hover::before {
  opacity: 1;
}

.brand-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.brand-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.brand-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #d14371);
  color: #fff;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(180, 41, 91, 0.25);
}

.brand-description {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 1rem;
  min-height: 3.2rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding: 0.5rem 0;
  transition: all 0.2s ease;
  position: relative;
}

.brand-link::after {
  content: '';
  position: absolute;
  bottom: 0.35rem;
  left: 0;
  right: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: right 0.3s ease;
}

.brand-link:hover::after {
  right: 0;
}

.brand-link:hover {
  color: #8f1d45;
  transform: translateX(2px);
}

/* Featured Partner Deals Section */

.featured-deals-section {
  margin-top: 3rem;
  padding: 2.5rem 0;
  background: radial-gradient(circle at top left, rgba(255, 247, 251, 0.98), rgba(255, 240, 248, 0.95));
  border-radius: var(--radius-xl);
}

.featured-deals-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.featured-deals-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.6rem;
  text-align: center;
  letter-spacing: -0.02em;
}

.featured-deals-intro {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 700px;
  margin: 0 auto 2rem;
  text-align: center;
}

.featured-deals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.featured-deal-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 253, 0.96));
  border-radius: 20px;
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: 0 8px 24px rgba(212, 99, 143, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.85);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.featured-deal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(212, 99, 143, 0.28);
  border-color: rgba(180, 41, 91, 0.15);
}

.featured-deal-brand {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.featured-deal-copy {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--text-soft);
  flex: 1;
}

.featured-deal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--primary), #f35f9c);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(180, 41, 91, 0.25);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.featured-deal-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(180, 41, 91, 0.35);
}

.featured-deal-button:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Responsive */

@media (max-width: 880px) {
  .hero-grid,
  .columns-2,
  .chat-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-aside {
    order: -1;
  }

  .chat-window {
    min-height: 380px;
  }

  .makeup-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.1rem;
  }

  .brand-card {
    padding: 1.3rem 1.2rem 1.4rem;
  }

  .featured-deals-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .featured-deals-section {
    padding: 2rem 0;
  }

  .featured-deals-title {
    font-size: 1.4rem;
  }

  .featured-deals-intro {
    font-size: 0.9rem;
  }

  /* ChatGPT-style layout mobile adjustments */
  .chat-intro-banner {
    padding: 1rem 1rem 0.9rem;
  }

  .chat-intro-banner h1 {
    font-size: 1.25rem;
  }

  .chat-intro-banner p {
    font-size: 0.85rem;
  }

  .chat-messages-container {
    padding: 1rem;
  }

  .msg {
    max-width: 85%;
    font-size: 0.88rem;
  }

  .chat-input-container {
    padding: 0.85rem 1rem;
  }

  .chat-input-form input[type="text"] {
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
  }

  .chat-input-form button {
    padding: 0.75rem 1.2rem;
    font-size: 0.88rem;
  }

  .chat-safety-section {
    padding: 1.25rem 1rem 1.5rem;
  }

  /* Category navigation mobile */
  .category-nav {
    padding: 1rem;
    margin: 1.5rem auto 1rem;
  }

  .category-section {
    margin: 1.5rem auto;
    padding: 1.5rem 1.25rem;
  }

  .brand-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.65rem;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .chat-header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1rem;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-card {
    padding: 1.5rem 1.35rem;
  }

  .main {
    padding-inline: 1rem;
  }

  .chat-shell {
    padding-inline: 1rem;
  }

  .makeup-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .brand-card {
    padding: 1.2rem 1.1rem 1.3rem;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-badge {
    font-size: 0.68rem;
    padding: 0.25rem 0.65rem;
  }

  .brand-description {
    font-size: 0.86rem;
    min-height: auto;
  }

  .featured-deals-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .featured-deals-section {
    margin-top: 2rem;
    padding: 1.5rem 0;
  }

  .featured-deals-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .featured-deals-intro {
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
  }

  .featured-deal-card {
    padding: 1.3rem 1.2rem 1.4rem;
  }

  .featured-deal-brand {
    font-size: 1.08rem;
  }

  .featured-deal-copy {
    font-size: 0.85rem;
  }

  .featured-deal-button {
    padding: 0.6rem 1.1rem;
    font-size: 0.84rem;
  }

  /* More compact mobile layout */
  .chat-intro-banner {
    padding: 0.85rem 0.85rem 0.75rem;
  }

  .chat-intro-banner h1 {
    font-size: 1.15rem;
  }

  .chat-intro-banner p {
    font-size: 0.82rem;
  }

  .badge-pill {
    font-size: 0.68rem;
    padding: 0.15rem 0.6rem;
  }

  .chat-messages-container {
    padding: 0.85rem;
  }

  .msg {
    max-width: 90%;
    padding: 0.7rem 0.85rem;
    font-size: 0.86rem;
  }

  .chat-input-container {
    padding: 0.75rem 0.85rem;
  }

  .chat-input-form {
    gap: 0.6rem;
  }

  .chat-input-form input[type="text"] {
    padding: 0.7rem 0.95rem;
    font-size: 0.86rem;
  }

  .chat-input-form button {
    padding: 0.7rem 1rem;
    font-size: 0.86rem;
  }

  /* Category navigation mobile */
  .category-nav {
    padding: 0.9rem 0.85rem;
    margin: 1rem auto 0.75rem;
  }

  .category-nav-title {
    font-size: 1rem;
    margin-bottom: 0.6rem;
  }

  .category-nav-pill {
    flex: 1 1 auto;
    justify-content: center;
    font-size: 0.82rem;
    padding: 0.4rem 0.75rem;
  }

  .category-section {
    margin: 1.25rem auto;
    padding: 1.25rem 1rem;
  }

  .category-section h2 {
    font-size: 1.35rem;
  }

  .brand-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .category-section .brand-card {
    font-size: 0.85rem;
    padding: 0.5rem 0.65rem;
  }
}
