/* ============================================
   MAWKOST — Design System & Global Styles
   Palette derived from mawkost paw logo
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

/* ---------- CSS Variables (Design Tokens) ---------- */
:root {
  /* Brand Colors — from logo */
  --primary: #8B5E3C;
  --primary-light: #DEB8A0;
  --primary-lighter: #F5E6DB;
  --primary-dark: #5C3D2E;
  --primary-rgb: 139, 94, 60;

  /* CTA */
  --cta: #E8734A;
  --cta-hover: #D4622E;
  --cta-rgb: 232, 115, 74;

  /* Neutrals */
  --bg: #FFF9F5;
  --surface: #FFFFFF;
  --text: #3D2B1F;
  --text-muted: #8C7A6E;
  --text-light: #B09A8D;
  --border: #E8DDD5;
  --border-light: #F0E8E1;

  /* Semantic */
  --danger: #DC3545;
  --success: #28A745;
  --warning: #FFC107;
  --info: #17A2B8;

  /* Layout */
  --max-w: 1280px;
  --nav-h: 72px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(92, 61, 46, .06);
  --shadow: 0 4px 12px rgba(92, 61, 46, .08);
  --shadow-md: 0 8px 24px rgba(92, 61, 46, .1);
  --shadow-lg: 0 16px 48px rgba(92, 61, 46, .12);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(232, 221, 213, 0.5);
  --glass-blur: blur(16px);

  /* Transitions */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --dur: 200ms;
  --dur-md: 300ms;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--primary-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

main {
  background: var(--bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-dark);
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h3 {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
}

h4 {
  font-size: 1.125rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

a:hover {
  color: var(--cta);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
  border: none;
  background: none;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header p {
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  border: 2px solid transparent;
  line-height: 1.4;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-cta {
  background: var(--cta);
  color: #fff;
  border-color: var(--cta);
}

.btn-cta:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(var(--cta-rgb), .3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-surface {
  background: var(--surface);
  color: var(--primary-dark);
  border-color: var(--border);
}

.btn-outline-surface:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: none;
  padding: 8px 16px;
}

.btn-ghost:hover {
  background: var(--primary-lighter);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 8px 18px;
  font-size: .85rem;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------- Cards (Glass) ---------- */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
  transition: all var(--dur-md) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  letter-spacing: .02em;
}

.badge-primary {
  background: var(--primary-lighter);
  color: var(--primary-dark);
}

.badge-cta {
  background: rgba(var(--cta-rgb), .12);
  color: var(--cta-hover);
}

.badge-success {
  background: #28a745;
  color: #ffffff;
}

.badge-unavailable {
  background: #6c757d;
  color: #ffffff;
}

.badge-danger {
  background: #DC3545;
  color: #ffffff;
}

.badge-featured {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.badge-recommended {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.badge-kost-type,
.badge-putra,
.badge-putri,
.badge-campur {
  background: #e8734a;
  color: #ffffff;
}

/* Featured card glow effect */
.listing-card.card-featured {
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.1), var(--shadow);
  position: relative;
}

.listing-card.card-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #F59E0B, #D97706);
  border-radius: var(--radius) var(--radius) 0 0;
  z-index: 2;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  height: 72px;
  display: flex;
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: all var(--dur-md) var(--ease);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--primary-dark);
}

.nav-brand img {
  width: 50px;
  height: 50px;
  padding: 6px;
  background: #8b5e3c;
  border-radius: 50%;
  object-fit: contain;
}

/* -- Nav Menu (full nav container) -- */
.nav-menu {
  display: flex;
  align-items: center;
  flex: 1;
  margin: 0 24px;
}

/* -- Centered Text Links -- */
.nav-links-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex: 1;
}

.nav-links-center a {
  font-weight: 500;
  color: var(--text);
  font-size: .95rem;
  padding: 8px 0;
  position: relative;
  transition: color var(--dur) var(--ease);
}

.nav-links-center a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--dur) var(--ease);
}

.nav-links-center a:hover {
  color: var(--primary);
}

.nav-links-center a:hover::after,
.nav-links-center a.active::after {
  width: 100%;
}

.nav-links-center a.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
}

.nav-dropdown-arrow {
  font-size: .55rem;
  margin-left: 3px;
  transition: transform 200ms ease;
}

.nav-dropdown:hover .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 200ms ease;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  transition: all 150ms ease;
}

.nav-dropdown-menu a:hover {
  background: var(--primary-lighter);
  color: var(--primary-dark);
}

.nav-dropdown-menu a::after {
  display: none;
}

/* -- Nav Actions Button Group -- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn.nav-cta {
  padding: 10px 24px;
  background: var(--primary-dark);
  color: #fff;
  border-radius: var(--radius-full);
  border-color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(92, 61, 46, 0.15);
  letter-spacing: 0.02em;
}

.btn.nav-cta:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(139, 94, 60, 0.3);
  transform: translateY(-2px);
  color: #fff;
}

.btn.nav-ai-chat {
  padding: 9px 20px;
  background: transparent;
  color: var(--primary-dark);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-full);
  font-weight: 600;
  letter-spacing: 0.01em;
  gap: 5px;
}

.btn.nav-ai-chat:hover,
.btn.nav-ai-chat.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(139, 94, 60, 0.25);
  transform: translateY(-1px);
}

.btn.nav-auth {
  padding: 9px 18px;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-weight: 500;
  gap: 5px;
}

.btn.nav-auth:hover {
  border-color: var(--primary-light);
  color: var(--primary-dark);
  background: var(--primary-lighter);
}

.btn.nav-auth-icon {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  gap: 0;
  font-size: 0.95rem;
}

.btn.nav-auth-solid {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn.nav-auth-solid:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  box-shadow: 0 4px 12px rgba(92, 61, 46, 0.2);
  transform: translateY(-1px);
}

/* Mobile menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--dur) var(--ease);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-text h1 {
  margin-bottom: 16px;
  color: var(--primary-dark);
}

.hero-text h1 span {
  color: var(--cta);
}

.hero-text p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.7;
}

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

/* Hero Search Component */
.hero-search-container {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-top: 32px;
  overflow: hidden;
}

.search-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid var(--border-light);
}

.search-tab {
  flex: 1;
  padding: 12px 16px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  border-bottom: 2px solid transparent;
}

.search-tab:hover {
  background: rgba(255, 255, 255, 0.6);
  color: var(--primary);
}

.search-tab.active {
  color: var(--primary-dark);
  background: var(--surface);
  border-bottom: 2px solid var(--cta);
}

.hero-search {
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-search .search-group {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  padding: 8px 16px;
  border-right: 1px solid var(--border-light);
}

.hero-search .search-group:last-of-type {
  border-right: none;
}

.hero-search .search-group label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
}

.hero-search .search-group select,
.hero-search .search-group input {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-dark);
  width: 100%;
  cursor: pointer;
  padding: 0;
}

.hero-search .search-group select:focus,
.hero-search .search-group input:focus {
  color: var(--primary);
}

.hero-search .btn-search {
  width: 100%;
  padding: 16px 32px;
  border-radius: var(--radius);
  justify-content: center;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-stat strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.hero-stat span {
  font-size: .85rem;
  color: var(--text-muted);
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: -16px;
  background: var(--primary-lighter);
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: .5;
}

/* Floating badge on hero image */
.hero-float-badge {
  position: absolute;
  top: 24px;
  left: -30px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floatBadge1 4s ease-in-out infinite;
}

@keyframes floatBadge1 {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(-1deg);
  }
}

@keyframes floatBadge2 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  40% {
    transform: translate(5px, -8px) rotate(1.5deg);
  }

  80% {
    transform: translate(-3px, 2px) rotate(-0.5deg);
  }
}

@keyframes floatBadge3 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  30% {
    transform: translate(-6px, -5px) rotate(-1deg);
  }

  70% {
    transform: translate(4px, -10px) rotate(1deg);
  }
}

.hero-float-badge svg {
  width: 28px;
  height: 28px;
  color: var(--cta);
}

.hero-float-badge--top {
  top: auto;
  bottom: 32px;
  left: -36px;
  right: auto;
  animation: floatBadge2 5s ease-in-out 0.7s infinite;
}

.hero-float-badge--right {
  top: 50%;
  right: -44px;
  bottom: auto;
  left: auto;
  transform: translateY(-50%);
  animation: floatBadge3 4.5s ease-in-out 1.3s infinite;
}

.hero-float-badge .count {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-dark);
}

.hero-float-badge .label {
  font-size: .8rem;
  color: var(--text-muted);
}

/* Decorative blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .3;
  pointer-events: none;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: var(--primary-light);
  top: -100px;
  right: -100px;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: var(--cta);
  bottom: -50px;
  left: -80px;
  opacity: .15;
}

/* ---------- City Cards ---------- */
.city-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.city-grid > * {
  width: calc((100% - 48px) / 3);
}

.city-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 260px;
  cursor: pointer;
  text-decoration: none;
}

.city-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.city-card:hover img {
  transform: scale(1.08);
}

.city-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
}

.city-card-overlay h3 {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.city-card-overlay p {
  font-size: .9rem;
  opacity: .85;
}

/* ---------- Listing Grid ---------- */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.listing-card {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.listing-card .card-img {
  height: 200px;
  position: relative;
}

.listing-card .card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
}

.listing-card .listing-price {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary-dark);
}

.listing-card .listing-price span {
  font-weight: 400;
  font-size: .85rem;
  color: var(--text-muted);
}

.listing-card .listing-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 8px;
  color: var(--text);
}

.listing-card .listing-area {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: .88rem;
  color: var(--text-muted);
}

.listing-card .listing-area svg {
  width: 14px;
  height: 14px;
  color: var(--cta);
  flex-shrink: 0;
}

.listing-card .listing-facilities {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.listing-card .facility-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .82rem;
  color: var(--text-muted);
}

.listing-card .facility-item svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

/* ---------- How It Works (Premium) ---------- */
.steps-section {
  position: relative;
  background: radial-gradient(ellipse at 50% 0%, rgba(var(--primary-rgb), .04) 0%, transparent 70%);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--primary-lighter);
  color: var(--primary-dark);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .03em;
  margin-bottom: 16px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.step-card-inner {
  text-align: center;
  padding: 36px 28px 32px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  position: relative;
  transition: transform var(--dur-md) var(--ease), box-shadow var(--dur-md) var(--ease);
}

.step-card-inner:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Step badge (Langkah N) */
.step-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: var(--primary-dark);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .7rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(92, 61, 46, .2);
}

.step-badge--success {
  background: var(--success);
  box-shadow: 0 2px 8px rgba(40, 167, 69, .25);
}

/* Icon wrap — icon + floating number */
.step-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 12px auto 20px;
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--primary-lighter), var(--primary-light));
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), .15);
  transition: transform var(--dur-md) var(--ease), box-shadow var(--dur-md) var(--ease);
}

.step-card-inner:hover .step-icon {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(var(--primary-rgb), .25);
}

.step-icon svg {
  width: 30px;
  height: 30px;
  color: var(--primary-dark);
}

.step-icon--accent {
  background: linear-gradient(145deg, rgba(var(--cta-rgb), .15), rgba(var(--cta-rgb), .3));
  box-shadow: 0 4px 16px rgba(var(--cta-rgb), .12);
}

.step-icon--accent svg {
  color: var(--cta-hover);
}

.step-icon--success {
  background: linear-gradient(145deg, rgba(40, 167, 69, .1), rgba(40, 167, 69, .22));
  box-shadow: 0 4px 16px rgba(40, 167, 69, .12);
}

.step-icon--success svg {
  color: #1e7e34;
}

/* Floating step number */
.step-number {
  position: absolute;
  bottom: -6px;
  right: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-dark);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  box-shadow: 0 2px 8px rgba(92, 61, 46, .25);
  border: 2px solid var(--surface);
}

.step-number--accent {
  background: var(--cta);
  box-shadow: 0 2px 8px rgba(var(--cta-rgb), .3);
}

.step-number--success {
  background: var(--success);
  box-shadow: 0 2px 8px rgba(40, 167, 69, .3);
}

/* Card headings + text */
.step-card-inner h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.step-card-inner p {
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 280px;
  margin: 0 auto;
}

/* Step tags (Aman & Terproteksi, etc.) */
.step-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(var(--cta-rgb), .08);
  color: var(--cta-hover);
  font-size: .78rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.step-tag svg {
  flex-shrink: 0;
}

.step-tag--success {
  background: rgba(40, 167, 69, .08);
  color: #1e7e34;
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.testimonial-card .stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}

.testimonial-card .stars svg {
  width: 16px;
  height: 16px;
  color: #FBBF24;
  fill: #FBBF24;
}

.testimonial-card p {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--primary-dark);
  font-size: .85rem;
}

.testimonial-info strong {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .9rem;
}

.testimonial-info span {
  display: block;
  font-size: .8rem;
  color: var(--text-muted);
}

/* ---------- Blur Section (Detail Page) ---------- */
.blur-section {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--cta);
  background: linear-gradient(135deg, rgba(var(--cta-rgb), .05), rgba(var(--primary-rgb), .05));
}

.blur-content {
  padding: 28px;
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
}

.blur-content p {
  color: var(--text-muted);
  margin-bottom: 8px;
}

.blur-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 249, 245, .6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  gap: 16px;
  padding: 24px;
  text-align: center;
}

.blur-overlay .lock-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cta);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(var(--cta-rgb), .3);
  flex-shrink: 0;
}

.blur-overlay .lock-icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.blur-overlay h4 {
  font-size: 1.1rem;
  color: var(--primary-dark);
}

.blur-overlay .blur-price {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cta);
}

.blur-overlay .social-proof {
  font-size: .85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.blur-overlay .social-proof svg {
  width: 14px;
  height: 14px;
  color: var(--success);
}

/* ---------- Filter Bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 160px;
}

.filter-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.filter-group select,
.filter-group input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: .95rem;
  transition: border-color var(--dur) var(--ease);
}

.filter-group select:focus,
.filter-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .1);
}

.filter-label-group {
  display: flex;
  gap: 8px;
  height: 46px;
  align-items: center;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: all 200ms ease;
  font-family: 'Poppins', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  user-select: none;
}

.filter-chip i {
  font-size: .6rem;
}

.filter-chip:hover {
  border-color: var(--primary-light);
  background: var(--primary-lighter);
  color: var(--primary-dark);
}

.filter-chip input[type="checkbox"] {
  display: none;
}

.filter-chip.chip-featured.active {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.filter-chip.chip-rekomendasi.active {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

/* ---------- Detail Page — Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 420px;
}

.gallery-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-side {
  display: grid;
  gap: 8px;
}

.gallery-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Detail Info Grid ---------- */
.kost-title {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  margin-bottom: 8px;
}

.share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.share-label {
  font-size: .85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-right: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 200ms ease;
  text-decoration: none;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.share-wa:hover { background: #25D366; color: #fff; border-color: #25D366; }
.share-twitter:hover { background: #000; color: #fff; border-color: #000; }
.share-fb:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.share-copy:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.share-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--primary-dark);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: .9rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  opacity: 0;
  transition: all 300ms ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.kost-price {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
}

.kost-price span {
  font-size: clamp(0.85rem, 3vw, 1rem);
  font-weight: 500;
}

.info-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-top: 32px;
}

.info-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.info-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-block {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-light);
}

.info-block h3 {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-block h3 svg {
  width: 20px;
  height: 20px;
  color: var(--cta);
}

/* Building stats */
.building-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--primary-lighter);
  border-radius: var(--radius);
}

.stat-item svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
  flex-shrink: 0;
}

.stat-item .stat-value {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  color: var(--primary-dark);
}

.stat-item .stat-label {
  font-size: .8rem;
  color: var(--text-muted);
}

/* Facilities */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.facility-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  color: var(--text);
}

.facility-tag svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

/* Strategic Location */
.location-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: .92rem;
  color: var(--text);
}

.location-list li svg {
  width: 16px;
  height: 16px;
  color: var(--cta);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ---------- Checkout ---------- */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  margin-top: 32px;
}

.checkout-form {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-light);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group label .required {
  color: var(--danger);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 1rem;
  transition: all var(--dur) var(--ease);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .12);
  background: var(--surface);
}

.form-control::placeholder {
  color: var(--text-light);
}

/* Payment methods */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.payment-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.payment-method svg {
  width: 28px;
  height: 28px;
}

.payment-method:hover,
.payment-method.active {
  border-color: var(--primary);
  background: var(--primary-lighter);
  color: var(--primary-dark);
}

/* Order Summary */
.order-summary {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.order-summary h3 {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.order-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.order-item img {
  width: 80px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.order-item-info h4 {
  font-size: .95rem;
  margin-bottom: 4px;
}

.order-item-info p {
  font-size: .82rem;
  color: var(--text-muted);
}

.order-divider {
  border: none;
  border-top: 1px dashed var(--border);
  margin: 16px 0;
}

.order-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: .92rem;
}

.order-row.total {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-dark);
  padding-top: 12px;
  border-top: 2px solid var(--border);
  margin-top: 12px;
}

/* ---------- Success Page ---------- */
.success-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) 24px 60px;
}

.success-card {
  max-width: 560px;
  width: 100%;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.success-checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #28A745, #20c997);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: successPop .5s var(--ease) both;
}

@keyframes successPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  60% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-checkmark svg {
  width: 36px;
  height: 36px;
  color: #fff;
  animation: checkDraw .4s .3s var(--ease) both;
}

@keyframes checkDraw {
  0% {
    opacity: 0;
    transform: scale(0);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.success-card h2 {
  margin-bottom: 12px;
  color: #28A745;
}

.success-card>p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.success-info {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px;
  text-align: left;
  margin-bottom: 28px;
}

.success-info h4 {
  margin-bottom: 12px;
  font-size: .95rem;
}

.success-info .info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: .9rem;
  border-bottom: 1px solid var(--border-light);
}

.success-info .info-row:last-child {
  border-bottom: none;
}

.success-info .info-row .label {
  color: var(--text-muted);
}

.success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 12px;
  height: 460px;
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s var(--ease), filter .4s var(--ease);
}

.gallery-main {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.gallery-main:hover img {
  transform: scale(1.03);
}

.gallery-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 100%;
  min-height: 0;
}

.gallery-thumb {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-height: 0;
}

.gallery-thumb:first-child {
  border-radius: 0 var(--radius-lg) 0 0;
}

.gallery-thumb:last-child {
  border-radius: 0 0 var(--radius-lg) 0;
}

.gallery-thumb:hover img {
  transform: scale(1.05);
}

.gallery-more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  transition: background .3s var(--ease);
}

.gallery-more-overlay i {
  font-size: 1.6rem;
}

.gallery-more:hover .gallery-more-overlay {
  background: rgba(0, 0, 0, 0.6);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 85vw;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  object-fit: contain;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  animation: lightboxZoomIn .3s var(--ease);
}

@keyframes lightboxZoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, .15);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, .3);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .15);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 10;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, .3);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .55);
  color: #fff;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .05em;
}


/* ---------- Footer ---------- */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, .8);
  padding: 60px 0 24px;
  overflow-x: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
}

.footer-brand span {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
}

.footer-desc {
  font-size: .9rem;
  line-height: 1.65;
  max-width: 320px;
}

.footer h4 {
  color: #fff;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer ul a {
  color: rgba(255, 255, 255, .7);
  font-size: .9rem;
  transition: color var(--dur) var(--ease);
}

.footer ul a:hover {
  color: var(--primary-light);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur) var(--ease);
}

.footer-social a:hover {
  background: var(--cta);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  text-align: center;
  font-size: .85rem;
  color: rgba(255, 255, 255, .5);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.footer-links a:hover {
  color: var(--primary-light);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(var(--nav-h) + 24px) 0 16px;
  font-size: .88rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .sep {
  color: var(--text-light);
}

.breadcrumb .current {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 4px;
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  transition: all var(--dur) var(--ease);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  user-select: none;
}

.pagination a {
  cursor: pointer;
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-lighter);
  box-shadow: var(--shadow-sm);
}

.pagination .active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), .25);
  cursor: default;
}

.pagination .disabled {
  color: var(--border);
  border-color: var(--border-light);
  background: var(--bg);
  cursor: not-allowed;
  opacity: 0.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    height: 300px;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-search {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }

  .hero-search .search-group {
    min-width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding: 8px 4px;
  }

  .hero-search .search-group:nth-child(even),
  .hero-search .search-group:nth-child(odd) {
    border-right: none;
  }

  .hero-search .search-group:last-of-type {
    border-bottom: none;
  }

  .hero-search .btn-search {
    margin-top: 8px;
  }

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

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-float-badge {
    left: 16px;
    top: 16px;
  }

  .hero-float-badge--top {
    left: 16px;
    bottom: 16px;
    top: auto;
  }

  .hero-float-badge--right {
    right: 16px;
    bottom: 16px;
    top: auto;
    left: auto;
    transform: none;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    margin: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu.open {
    display: flex;
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    flex-direction: column;
    background: rgba(255, 249, 245, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 16px;
    gap: 4px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    z-index: 100;
  }

  .nav-links-center {
    flex-direction: column;
    gap: 0;
  }

  .nav-links-center a {
    width: 100%;
    text-align: center;
    padding: 12px 0;
    border-radius: var(--radius-sm);
  }

  .nav-links-center a:hover {
    background: var(--primary-lighter);
  }

  .nav-links-center a::after {
    display: none;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    border-radius: 0;
    min-width: unset;
    padding: 0;
    display: none;
    background: var(--primary-lighter);
    border-radius: var(--radius-sm);
    margin-top: 2px;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown.open .nav-dropdown-arrow {
    transform: rotate(180deg);
  }

  .nav-dropdown-menu a {
    text-align: center;
    padding: 10px 16px;
    font-size: .88rem;
  }

  .nav-actions {
    flex-direction: column;
    width: 100%;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
    gap: 6px;
  }

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

  .btn.nav-auth-icon {
    width: 100%;
    min-width: unset;
  }

  .city-grid > * {
    width: 100%;
  }

  .listing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
    height: auto;
  }

  .gallery-main {
    height: 280px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .gallery-side {
    grid-template-rows: none;
    grid-template-columns: 1fr 1fr;
    height: 160px;
  }

  .gallery-thumb:first-child {
    border-radius: 0 0 0 var(--radius-lg);
  }

  .gallery-thumb:last-child {
    border-radius: 0 0 var(--radius-lg) 0;
  }

  .building-stats {
    grid-template-columns: 1fr 1fr;
  }

  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .payment-methods {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }
}

@media (max-width: 480px) {
  .info-block {
    padding: 16px;
  }

  .blur-content {
    padding: 16px;
  }

  .blur-overlay {
    padding: 16px;
  }

  .blur-overlay h4 {
    font-size: 1rem;
  }

  .blur-overlay .blur-price {
    font-size: 1.25rem;
  }

  .blur-overlay .lock-icon {
    width: 40px;
    height: 40px;
  }

  .blur-overlay .lock-icon svg {
    width: 18px;
    height: 18px;
  }

  .listing-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 20px;
  }

  .hero-float-badge {
    padding: 8px 12px;
    gap: 8px;
    left: 12px;
    top: 12px;
  }

  .hero-float-badge--top {
    left: 12px;
    bottom: 12px;
    top: auto;
  }

  .hero-float-badge--right {
    right: 12px;
    bottom: 12px;
    top: auto;
    left: auto;
    transform: none;
  }

  .hero-float-badge svg {
    width: 20px;
    height: 20px;
  }

  .hero-float-badge .count {
    font-size: .95rem;
  }

  .hero-float-badge .label {
    font-size: .7rem;
  }

  .filter-bar {
    flex-direction: column;
  }

  .hero-search {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }

  .hero-search .search-group {
    border-right: none !important;
    border-bottom: 1px solid var(--border-light);
    padding: 8px 4px;
    min-width: unset;
  }

  .hero-search .search-group:last-of-type {
    border-bottom: none;
    margin-bottom: 8px;
  }


  .filter-group {
    min-width: 100%;
  }

  .building-stats {
    grid-template-columns: 1fr;
  }

  .facilities-grid {
    grid-template-columns: 1fr;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }
}

/* ---------- Xendit style Checkout ---------- */
.xendit-checkout-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 16px;
}

.xendit-card {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.xendit-header {
  background: #fff;
  padding: 32px 32px 24px;
  border-bottom: 2px dashed var(--border-light);
  text-align: center;
}

.xendit-merchant {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-dark);
}

.xendit-merchant img {
  width: 40px;
  height: 40px;
}

.xendit-amount-box p {
  font-size: .95rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.xendit-amount-box h2 {
  font-size: 2.25rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.xendit-order-id {
  font-size: .85rem;
  color: var(--text-muted);
  background: #F4F7F9;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  display: inline-block;
  letter-spacing: .05em;
}

.xendit-body {
  padding: 32px;
  background: #F9FBFC;
}

.xendit-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 16px;
  border-left: 3px solid var(--cta);
  padding-left: 12px;
}

.xendit-input {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  transition: all var(--dur) var(--ease);
}

.xendit-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.1);
}

.xendit-payment-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.xendit-payment-option {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.xendit-payment-option:hover {
  border-color: var(--primary);
  background: #FFF9F5;
}

.xendit-payment-option.active {
  border-color: var(--primary-dark);
  background: #FFF9F5;
  box-shadow: 0 2px 8px rgba(92, 61, 46, 0.08);
}

.xendit-payment-icon {
  width: 40px;
  height: 40px;
  background: #F4F7F9;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  margin-right: 16px;
}

.xendit-payment-icon svg {
  width: 20px;
  height: 20px;
}

.xendit-payment-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.xendit-payment-name {
  font-weight: 600;
  color: var(--text);
  font-size: .95rem;
}

.xendit-payment-desc {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.xendit-radio-circle {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  position: relative;
}

.xendit-payment-option.active .xendit-radio-circle {
  border-color: var(--primary-dark);
}

.xendit-payment-option.active .xendit-radio-circle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--primary-dark);
  border-radius: 50%;
}

.xendit-btn-pay {
  background: var(--cta);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 16px;
  border-radius: var(--radius);
  transition: all var(--dur) var(--ease);
}

.xendit-btn-pay:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(232, 115, 74, 0.3);
}

.xendit-footer {
  background: #fff;
  padding: 16px;
  text-align: center;
  font-size: .85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--border-light);
}

/* ---------- Steps Responsive ---------- */
@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .step-card-inner {
    padding: 32px 20px 28px;
  }
}

/* ---------- Layanan Kami ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--dur-md) var(--ease);
  border: 1px solid var(--border-light);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cta);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-lighter);
  color: var(--primary-dark);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.service-icon svg {
  width: 32px;
  height: 32px;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: var(--primary-dark);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
  }

  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Premium Dual Range Slider ---------- */
/* Price range wrapper */
.price-range-wrapper {
  flex: 1.5;
  min-width: 180px;
  gap: 0;
}

.range-values {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
}

.range-values span {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Dual range — container IS the track (gradient-based) */
.multi-range {
  --min-pct: 0%;
  --max-pct: 100%;
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: linear-gradient(to right,
    var(--border) 0%, var(--border) var(--min-pct),
    var(--cta) var(--min-pct), var(--cta) var(--max-pct),
    var(--border) var(--max-pct), var(--border) 100%);
  margin: 8px 0 8px;
}

/* Range inputs — full width, stacked, transparent */
.multi-range input[type=range] {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 8px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  outline: none;
  pointer-events: none;
  z-index: 2;
}

/* Webkit track — invisible */
.multi-range input[type=range]::-webkit-slider-runnable-track {
  height: 8px;
  background: transparent;
  border: none;
}

/* Webkit thumb */
.multi-range input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: all;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cta);
  border: 3px solid #fff;
  cursor: grab;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
  margin-top: -6px;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}

.multi-range input[type=range]::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(232, 115, 74, .5);
}

/* Firefox thumb */
.multi-range input[type=range]::-moz-range-thumb {
  pointer-events: all;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cta);
  border: 3px solid #fff;
  cursor: grab;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}

.multi-range input[type=range]::-moz-range-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(232, 115, 74, .5);
}

/* Firefox track — invisible */
.multi-range input[type=range]::-moz-range-track {
  background: transparent;
  border: none;
  height: 8px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0 12px;
  font-size: .9rem;
}

.breadcrumb a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--dur) var(--ease);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .sep {
  color: var(--text-light);
  font-size: .8rem;
}

.breadcrumb .current {
  color: var(--primary-dark);
  font-weight: 600;
}

/* ---------- About Page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: var(--primary-lighter);
  padding: 24px 20px;
  border-radius: var(--radius);
  text-align: center;
  transition: all var(--dur-md) var(--ease);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-card h3 {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.stat-card p {
  font-size: .9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------- Responsive: Steps & About ---------- */
@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Form Elements ---------- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .1);
}

.form-control::placeholder {
  color: var(--text-light);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238C7A6E' d='M6 8.825L.375 3.2l.85-.85L6 7.125l4.775-4.775.85.85z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  align-items: start;
}

.contact-card {
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-icon {
  background: var(--primary-lighter);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  font-size: .95rem;
}

.contact-info-item h4 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.contact-info-item p {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.5;
}

.contact-info-item a {
  color: var(--text-muted);
  text-decoration: none;
}

.contact-info-item a:hover {
  color: var(--primary);
}

/* ---------- Alerts ---------- */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.alert-success {
  background: #e6f4ea;
  border: 1px solid var(--success);
  color: #1b7a34;
}

/* ---------- Visi Misi ---------- */
.visi-misi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.visi-misi-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--dur-md) var(--ease);
}

.visi-misi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.visi-misi-card h3 {
  margin-bottom: 16px;
}

.visi-misi-card p,
.visi-misi-card li {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: .95rem;
}

.visi-misi-card ul {
  padding-left: 0;
  list-style: none;
}

.visi-misi-card ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
}

.visi-misi-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cta);
}

/* ---------- Team Grid ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--dur-md) var(--ease);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.team-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--primary-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 2rem;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

.team-avatar-img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--primary-lighter);
  box-shadow: 0 4px 12px rgba(139, 94, 60, 0.12);
}

.team-card h4 {
  margin-bottom: 6px;
  color: var(--primary-dark);
}

.team-card p {
  color: var(--text-muted);
  font-size: .85rem;
  line-height: 1.5;
}

/* ---------- Nilai Inti (Redesigned) ---------- */
.nilai-inti-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.nilai-inti-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 200ms ease;
}

.nilai-inti-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.nilai-inti-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
}

.nilai-inti-body h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.nilai-inti-body p {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .visi-misi-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .nilai-inti-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 200ms ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card-img {
  height: 200px;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}

.blog-card-placeholder {
  width: 100%;
  height: 100%;
  background: var(--primary-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-light);
}

.blog-card-body {
  padding: 20px;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.blog-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-card-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-dark);
  line-height: 1.4;
  margin-bottom: 8px;
}

.blog-card-excerpt {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.blog-article {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 32px;
}

.blog-sidebar {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.blog-article-header h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.3;
  margin-bottom: 16px;
}

.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.blog-article-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-article-thumbnail {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}

.blog-article-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

.blog-article-content h2 {
  font-size: 1.5rem;
  margin: 32px 0 16px;
  color: var(--primary-dark);
}

.blog-article-content h3 {
  font-size: 1.2rem;
  margin: 24px 0 12px;
  color: var(--primary-dark);
}

.blog-article-content p {
  margin-bottom: 16px;
}

.blog-article-content ul,
.blog-article-content ol {
  margin: 0 0 16px 24px;
}

.blog-article-content li {
  margin-bottom: 8px;
}

.blog-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 16px 0;
}

.blog-article-content a {
  color: var(--cta);
  text-decoration: underline;
}

.blog-article-content a:hover {
  color: var(--cta-hover);
}

.blog-article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--primary-lighter);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--primary-dark);
}

.blog-article-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.blog-sidebar-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  margin-bottom: 12px;
  text-decoration: none;
  transition: all 200ms ease;
}

.blog-sidebar-card:hover {
  background: var(--primary-lighter);
  border-color: var(--primary-light);
}

.blog-sidebar-card img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.blog-sidebar-card h5 {
  font-family: 'Poppins', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.4;
  margin-bottom: 4px;
}

.blog-sidebar-card span {
  font-size: .72rem;
  color: var(--text-muted);
}

.blog-inline-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--primary-lighter);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 32px;
}

.blog-inline-cta-icon {
  width: 52px;
  height: 52px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.blog-inline-cta-body h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: .95rem;
  margin-bottom: 4px;
}

.blog-inline-cta-body p {
  color: var(--text-muted);
  font-size: .82rem;
  line-height: 1.5;
  margin: 0;
}

.blog-inline-cta-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cta);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .82rem;
  transition: all 200ms ease;
  white-space: nowrap;
}

.blog-inline-cta-btn:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(232, 115, 74, 0.3);
}

@media (max-width: 768px) {
  .blog-inline-cta {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
}

.blog-cta-ai {
  position: relative;
  background: linear-gradient(135deg, #5C3D2E 0%, #8B5E3C 50%, #E8734A 100%);
  background-size: 200% 200%;
  animation: ctaGradient 4s ease infinite;
  border-radius: 16px 16px 12px 12px;
  padding: 28px 24px;
  margin: -24px -24px 20px;
  text-align: center;
  overflow: hidden;
}

@keyframes ctaGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.blog-cta-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  background: rgba(232, 115, 74, 0.3);
  border-radius: 50%;
  filter: blur(40px);
  top: -30px;
  right: -20px;
  animation: ctaGlowMove 3s ease-in-out infinite alternate;
}

@keyframes ctaGlowMove {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-20px, 20px) scale(1.2); }
}

.blog-cta-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blog-cta-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: ctaFloat 6s ease-in-out infinite;
}

.blog-cta-particles span:nth-child(1) { left: 15%; top: 20%; animation-delay: 0s; }
.blog-cta-particles span:nth-child(2) { left: 75%; top: 15%; animation-delay: 1.2s; animation-duration: 5s; }
.blog-cta-particles span:nth-child(3) { left: 40%; top: 70%; animation-delay: 2.4s; animation-duration: 7s; }
.blog-cta-particles span:nth-child(4) { left: 85%; top: 60%; animation-delay: 0.8s; animation-duration: 4.5s; }
.blog-cta-particles span:nth-child(5) { left: 25%; top: 80%; animation-delay: 3s; animation-duration: 5.5s; }

@keyframes ctaFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-15px) scale(1.5); opacity: 0.7; }
}

.blog-cta-icon {
  position: relative;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.5rem;
  color: #fff;
  animation: ctaIconBounce 2s ease-in-out infinite;
}

@keyframes ctaIconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.blog-cta-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  animation: ctaPulseRing 2s ease-out infinite;
}

@keyframes ctaPulseRing {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 0; }
}

.blog-cta-ai h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 6px;
  position: relative;
}

.blog-cta-ai p {
  color: rgba(255, 255, 255, 0.8);
  font-size: .82rem;
  line-height: 1.5;
  margin-bottom: 18px;
  position: relative;
}

.blog-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: #fff;
  color: #5C3D2E;
  padding: 11px 14px 11px 20px;
  border-radius: 9999px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  position: relative;
  overflow: hidden;
  transition: all 300ms ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.blog-cta-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.blog-cta-btn-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-cta-btn-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #E8734A;
  color: #fff;
  border-radius: 50%;
  margin-left: 10px;
  font-size: .7rem;
  transition: transform 300ms ease;
}

.blog-cta-btn:hover .blog-cta-btn-arrow {
  transform: translateX(3px);
}

.blog-cta-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: ctaBadgePop 3s ease-in-out infinite;
}

@keyframes ctaBadgePop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .blog-article-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .blog-article {
    padding: 20px;
  }

  .blog-sidebar {
    position: static;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Terms of Service ---------- */
.tos-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

.tos-intro {
  background: var(--primary-lighter);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 40px;
  border-left: 4px solid var(--primary);
}

.tos-intro p {
  color: var(--text);
  line-height: 1.8;
  font-size: 1.05rem;
}

.tos-section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--dur-md) var(--ease);
}

.tos-section:hover {
  box-shadow: var(--shadow);
}

.tos-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.tos-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cta);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  flex-shrink: 0;
}

.tos-section h3 {
  margin-bottom: 0;
  font-size: 1.15rem;
}

.tos-section p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: .95rem;
}

.tos-list {
  padding-left: 0;
  margin-top: 12px;
  list-style: none;
}

.tos-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: .95rem;
}

.tos-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-light);
}

.tos-list li:last-child {
  margin-bottom: 0;
}

.tos-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.tos-footer p {
  color: var(--text-muted);
  font-size: .95rem;
  margin-bottom: 8px;
}

/* ============================================
   AI CHAT / KONSULTASI PAGE
   ============================================ */

/* -- Layout: Full-height chat app -- */
.chat-wrapper {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  overflow: hidden;
}

/* -- Decorative Blobs (matches homepage hero) -- */
.chat-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.chat-blob-1 {
  width: 420px;
  height: 420px;
  background: var(--primary-light);
  opacity: 0.18;
  filter: blur(100px);
  top: -80px;
  right: -120px;
}

.chat-blob-2 {
  width: 320px;
  height: 320px;
  background: var(--cta);
  opacity: 0.08;
  filter: blur(90px);
  bottom: 60px;
  left: -100px;
}

/* -- Chat Messages Area -- */
.chat-messages-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 0;
  scroll-behavior: smooth;
  position: relative;
  z-index: 1;
}

.chat-messages-container > .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 860px;
}

/* -- Welcome State (centered hero-style) -- */
.chat-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px 24px;
  min-height: 320px;
}

.chat-welcome-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  animation: floatBadge1 3s ease-in-out infinite;
}

.chat-welcome-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(139, 94, 60, 0.18));
}

.chat-welcome-badge {
  margin-bottom: 16px;
}

.chat-welcome-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 10px;
  line-height: 1.25;
}

.chat-welcome-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* -- Chat Bubbles -- */
.chat-bubble {
  display: flex;
  gap: 10px;
  max-width: 85%;
  animation: chatFadeIn 0.3s var(--ease);
}

@keyframes chatFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-bubble-ai {
  align-self: flex-start;
}

.chat-bubble-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-bubble-avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  margin-top: 4px;
}

.chat-bubble-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.chat-bubble-content {
  flex: 1;
  min-width: 0;
}

.chat-bubble-text {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-family: 'Open Sans', sans-serif;
}

.chat-bubble-ai .chat-bubble-text {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-light);
  border-top-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.chat-bubble-user .chat-bubble-text {
  background: var(--primary);
  color: #fff;
  border-top-right-radius: 4px;
  box-shadow: var(--shadow);
}

.chat-bubble-user .chat-bubble-text a {
  color: #fff;
  text-decoration: underline;
}

/* -- Chat Bubble Typography (AI responses) -- */
.chat-bubble-ai .chat-bubble-text h1,
.chat-bubble-ai .chat-bubble-text h2,
.chat-bubble-ai .chat-bubble-text h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.35;
  margin: 0;
  padding: 0;
}

.chat-bubble-ai .chat-bubble-text h1 { font-size: 1.05em; margin-top: 1em; margin-bottom: 0.35em; }
.chat-bubble-ai .chat-bubble-text h2 { font-size: 1em; margin-top: 0.9em; margin-bottom: 0.3em; }
.chat-bubble-ai .chat-bubble-text h3 { font-size: 0.95em; margin-top: 0.8em; margin-bottom: 0.25em; }

.chat-bubble-ai .chat-bubble-text > h1:first-child,
.chat-bubble-ai .chat-bubble-text > h2:first-child,
.chat-bubble-ai .chat-bubble-text > h3:first-child {
  margin-top: 0;
}

.chat-bubble-ai .chat-bubble-text p {
  margin: 0.45em 0;
  line-height: 1.7;
}

.chat-bubble-ai .chat-bubble-text p:first-child { margin-top: 0; }
.chat-bubble-ai .chat-bubble-text p:last-child { margin-bottom: 0; }

.chat-bubble-ai .chat-bubble-text strong {
  font-weight: 700;
  color: var(--primary-dark);
}

.chat-bubble-ai .chat-bubble-text em {
  font-style: italic;
}

.chat-bubble-ai .chat-bubble-text a {
  color: var(--cta);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  transition: color var(--dur) var(--ease);
}

.chat-bubble-ai .chat-bubble-text a:hover {
  color: var(--cta-hover);
}

.chat-bubble-ai .chat-bubble-text code {
  background: rgba(139, 94, 60, 0.07);
  padding: 0.15em 0.45em;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: 'Courier New', Courier, monospace;
}

.chat-bubble-ai .chat-bubble-text hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 0.8em 0;
}

/* Tables */
.chat-bubble-ai .chat-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.6em 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.chat-bubble-ai .chat-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: nowrap;
}

.chat-bubble-ai .chat-table-wrap thead {
  background: var(--primary-lighter);
}

.chat-bubble-ai .chat-table-wrap th {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--primary-dark);
  padding: 8px 12px;
  border-bottom: 2px solid var(--primary-light);
  white-space: nowrap;
}

.chat-bubble-ai .chat-table-wrap td {
  padding: 7px 12px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  white-space: normal;
  min-width: 80px;
}

.chat-bubble-ai .chat-table-wrap tbody tr:nth-child(even) {
  background: rgba(245, 230, 219, 0.3);
}

.chat-bubble-ai .chat-table-wrap tbody tr:hover {
  background: var(--primary-lighter);
}

.chat-bubble-ai .chat-table-wrap tbody tr:last-child td {
  border-bottom: none;
}

.chat-bubble-ai .chat-table-wrap td strong,
.chat-bubble-ai .chat-table-wrap th strong {
  color: var(--primary-dark);
}

.chat-bubble-ai .chat-table-wrap td a {
  color: var(--cta);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.chat-bubble-ai .chat-table-wrap td a:hover {
  color: var(--cta-hover);
}

/* Lists */
.chat-bubble-ai .chat-bubble-text ul,
.chat-bubble-ai .chat-bubble-text ol {
  margin: 0.5em 0;
  padding-left: 1.4em;
  line-height: 1.65;
}

.chat-bubble-ai .chat-bubble-text ul { list-style-type: disc; }
.chat-bubble-ai .chat-bubble-text ol { list-style-type: decimal; }

.chat-bubble-ai .chat-bubble-text li {
  margin: 0.3em 0;
  padding-left: 0.2em;
  line-height: 1.6;
}

.chat-bubble-ai .chat-bubble-text li strong {
  color: var(--primary-dark);
}

.chat-bubble-ai .chat-bubble-text li ul,
.chat-bubble-ai .chat-bubble-text li ol {
  margin: 0.2em 0;
}

.chat-bubble-ai .chat-bubble-text h1 + ul,
.chat-bubble-ai .chat-bubble-text h1 + ol,
.chat-bubble-ai .chat-bubble-text h2 + ul,
.chat-bubble-ai .chat-bubble-text h2 + ol,
.chat-bubble-ai .chat-bubble-text h3 + ul,
.chat-bubble-ai .chat-bubble-text h3 + ol {
  margin-top: 0.2em;
}

.chat-bubble-ai .chat-bubble-text {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* -- Typing Indicator -- */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-light);
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* -- Suggestion Chips -- */
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0;
}

.suggestion-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.84rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.suggestion-chip i {
  color: var(--cta);
  font-size: 0.82rem;
}

.suggestion-chip:hover {
  background: var(--primary-lighter);
  border-color: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* -- AI Disabled Notice -- */
.chat-disabled-notice {
  padding: 0;
  position: relative;
  z-index: 1;
}

.chat-disabled-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--warning);
  border-radius: var(--radius);
  font-size: 0.9rem;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.chat-disabled-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 193, 7, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-disabled-icon i {
  font-size: 1.2rem;
  color: var(--warning);
}

.chat-disabled-card strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 2px;
}

.chat-disabled-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.chat-disabled-card a {
  color: var(--cta);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* -- Chat Input Area -- */
.chat-input-wrapper {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
  padding: 14px 24px max(14px, env(safe-area-inset-bottom));
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.chat-input-form {
  max-width: 680px;
  margin: 0 auto;
}

.chat-input-group {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px 6px 6px 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.chat-input-group:focus-within {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.08), var(--shadow);
}

.chat-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  resize: none;
  line-height: 1.5;
  padding: 8px 0;
  max-height: 150px;
}

.chat-input::placeholder {
  color: var(--text-light);
}

.chat-reset-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  flex-shrink: 0;
  transition: all var(--dur) var(--ease);
}

.chat-reset-btn:hover {
  background: var(--primary-lighter);
  color: var(--primary-dark);
  border-color: var(--primary-light);
}

.chat-send-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  border: none;
  background: var(--cta);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: all var(--dur) var(--ease);
  box-shadow: 0 2px 8px rgba(232, 115, 74, 0.3);
}

.chat-send-btn:hover:not(:disabled) {
  background: var(--cta-hover);
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(232, 115, 74, 0.35);
}

.chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.chat-input-hint {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 8px;
  text-align: center;
}

/* -- Responsive -- */
@media (max-width: 768px) {
  .chat-blob-1 {
    width: 260px;
    height: 260px;
    top: -60px;
    right: -80px;
  }

  .chat-blob-2 {
    width: 200px;
    height: 200px;
    bottom: 40px;
    left: -60px;
  }

  .chat-welcome {
    padding: 32px 12px 16px;
    min-height: 240px;
  }

  .chat-welcome-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
  }

  .chat-welcome-subtitle {
    font-size: 0.88rem;
    margin-bottom: 20px;
  }

  .chat-bubble {
    max-width: 92%;
  }

  .chat-bubble-avatar {
    width: 28px;
    height: 28px;
  }

  .chat-bubble-text {
    padding: 10px 14px;
    font-size: 0.88rem;
  }

  .suggestion-chip {
    font-size: 0.78rem;
    padding: 7px 13px;
  }

  .chat-input-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 10px 12px max(10px, env(safe-area-inset-bottom));
  }

  .chat-messages-container {
    padding-bottom: 80px;
  }

  .chat-input-form {
    max-width: 100%;
  }

  .chat-input-hint {
    display: none;
  }

  .chat-bubble-ai .chat-table-wrap table {
    font-size: 0.8rem;
  }
  .chat-bubble-ai .chat-table-wrap th {
    padding: 6px 8px;
    font-size: 0.78rem;
  }
  .chat-bubble-ai .chat-table-wrap td {
    padding: 5px 8px;
  }
}

@media (max-width: 480px) {
  .chat-suggestions {
    gap: 6px;
  }

  .suggestion-chip {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .chat-bubble-avatar {
    display: none;
  }

  .chat-bubble {
    max-width: 95%;
  }

  .chat-welcome-icon {
    width: 48px;
    height: 48px;
  }

  .chat-welcome-title {
    font-size: 1.2rem;
  }

  .chat-reset-btn {
    width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }

  .chat-send-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
}