/* DigiNom — lavender + mint + sunset palette
 * Inter body + Lobster Two brand + Caveat accent
 */
:root {
  --bg: #FAF5FF;
  --bg-alt: #F3E8FF;
  --card: #FFFFFF;
  --ink: #1F1B2E;
  --ink-muted: rgba(31, 27, 46, 0.62);
  --lavender: #A78BFA;
  --lavender-deep: #7C3AED;
  --lavender-darker: #5B21B6;
  --lavender-soft: #DDD6FE;
  --mint: #6EE7B7;
  --mint-deep: #10B981;
  --coral: #FB7185;
  --sun: #FCA5A5;
  --border: rgba(167, 139, 250, 0.22);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--lavender-deep); text-decoration: none; }
a:hover { color: var(--ink); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 4px;
  font-weight: 600;
  color: var(--lavender-deep);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.caveat { font-family: 'Caveat', cursive; font-weight: 600; color: var(--lavender-deep); }

/* HEADER */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: rgba(250, 245, 255, 0.85);
  backdrop-filter: blur(14px);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  height: 44px; width: 44px;
  border-radius: 50%;
  display: block;
  transition: transform 0.3s;
}
.brand-logo:hover { transform: rotate(-8deg) scale(1.08); }
.brand-name {
  font-family: 'Lobster Two', cursive;
  font-style: italic;
  font-weight: 700;
  font-size: 28px;
  color: var(--lavender-deep);
  letter-spacing: -0.5px;
}
.site-header nav { display: flex; gap: 24px; align-items: center; }
.site-header nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
}
.site-header nav a:hover { color: var(--lavender-deep); }
.lang-picker {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}
.lang-picker:focus { outline: 1px solid var(--lavender); }

.cta-nav {
  background: var(--lavender-deep);
  color: white !important;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
}
.cta-nav:hover { background: var(--lavender-darker); color: white !important; }

/* HERO */
.hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/hero-bg.png') center/cover;
  filter: saturate(1.1);
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(250,245,255,0.92) 0%, rgba(243,232,255,0.78) 55%, rgba(243,232,255,0.4) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-left { animation: slide-up 0.7s ease-out; }
.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 5px;
  font-weight: 700;
  color: var(--lavender-deep);
  background: rgba(255, 255, 255, 0.7);
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  margin-bottom: 28px;
}
.hero h1 {
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 0.95;
  margin-bottom: 22px;
  color: var(--ink);
}
.hero h1 .accent {
  color: var(--lavender-deep);
  font-style: italic;
  font-weight: 800;
}
.hero .lede {
  font-size: 19px;
  color: var(--ink-muted);
  max-width: 560px;
  margin-bottom: 40px;
}
.hero .lede b { color: var(--ink); font-weight: 600; }

.search-bar {
  display: flex;
  gap: 8px;
  background: var(--card);
  padding: 8px;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(124, 58, 237, 0.18);
  border: 1px solid var(--border);
  max-width: 600px;
  flex-wrap: wrap;
}
.search-bar select {
  flex: 1;
  min-width: 140px;
  padding: 14px 16px;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  background: transparent;
  color: var(--ink);
}
.search-bar button {
  padding: 14px 28px;
  background: var(--lavender-deep);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}
.search-bar button:hover { background: var(--lavender-darker); transform: translateY(-1px); }
.hero-microcopy {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-muted);
  font-style: italic;
}

.hero-right { text-align: center; animation: float-in 1.2s ease-out; }
.hero-logo {
  width: 360px;
  max-width: 100%;
  border-radius: 50%;
  filter: drop-shadow(0 24px 56px rgba(124, 58, 237, 0.25));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float-in {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* STATS */
.stats {
  background: var(--ink);
  color: white;
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat-num {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--lavender) 0%, var(--mint) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* HOW */
.how { padding: 96px 0; background: var(--bg); }
.how h2 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 56px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.how-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: all 0.3s;
}
.how-step:hover {
  transform: translateY(-6px);
  border-color: var(--lavender);
  box-shadow: 0 24px 48px rgba(124, 58, 237, 0.12);
}
.step-num {
  font-size: 14px;
  font-weight: 800;
  color: var(--lavender-deep);
  letter-spacing: 3px;
  margin-bottom: 18px;
  font-family: 'Inter', monospace;
}
.how-step h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
}
.how-step p { color: var(--ink-muted); font-size: 14px; }

/* CITIES */
.cities { padding: 96px 0; background: var(--bg-alt); }
.cities h2 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 48px;
}
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.city-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 22px;
  text-align: left;
  transition: all 0.3s;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.city-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lavender-soft) 0%, transparent 70%);
  transition: transform 0.4s;
}
.city-card:hover {
  transform: translateY(-6px);
  border-color: var(--lavender);
  box-shadow: 0 24px 48px rgba(124, 58, 237, 0.18);
}
.city-card:hover::before { transform: scale(1.6); }
.city-card .flag { font-size: 28px; display: block; margin-bottom: 12px; position: relative; }
.city-card .city-name {
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 4px;
  position: relative;
}
.city-card .city-meta {
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
  position: relative;
}
.city-card .city-tags { display: flex; gap: 6px; flex-wrap: wrap; position: relative; }
.city-card .city-count {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  background: var(--mint);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.3px;
  position: relative;
}
.city-card .city-count-empty {
  background: var(--lavender-soft);
  color: var(--lavender-deep);
  font-weight: 600;
  font-style: italic;
}
.tag {
  font-size: 10px;
  background: var(--lavender-soft);
  color: var(--lavender-deep);
  padding: 4px 9px;
  border-radius: 8px;
  letter-spacing: 0.3px;
  font-weight: 600;
}
.tag.mint { background: rgba(16, 185, 129, 0.14); color: var(--mint-deep); }

/* LISTINGS */
.listings { padding: 96px 0; background: var(--card); }
.listings-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}
.listings h2 { font-size: 48px; font-weight: 800; letter-spacing: -1.5px; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-muted); }
.sort select {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  background: var(--bg);
  font-weight: 500;
}
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.listing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.listing-card:hover {
  transform: translateY(-6px) rotate(-0.4deg);
  box-shadow: 0 24px 48px rgba(124, 58, 237, 0.18);
  border-color: var(--lavender);
}
.listing-card .image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--lavender-soft) 0%, var(--mint) 100%);
  background-size: cover;
  background-position: center;
  position: relative;
}
.listing-card .image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
}
.listing-card .source-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  font-size: 10px;
  color: var(--lavender-deep);
  padding: 4px 9px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  z-index: 2;
}
.listing-card .city-badge {
  position: absolute;
  bottom: 12px; left: 14px;
  font-size: 12px;
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
  z-index: 2;
}
.listing-card .body { padding: 18px 20px; }
.listing-card .title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}
.listing-card .meta { font-size: 13px; color: var(--ink-muted); margin-bottom: 12px; }
.listing-card .price {
  font-size: 22px;
  font-weight: 800;
  color: var(--lavender-deep);
}
.listing-card .price .period { font-size: 13px; font-weight: 400; color: var(--ink-muted); }
.listing-card .contact {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--ink-subtle, rgba(0,0,0,0.08));
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-muted);
}
.listing-card .contact-phone {
  color: var(--lavender-deep);
  font-weight: 600;
  text-decoration: none;
}
.listing-card .contact-phone:hover { text-decoration: underline; }
.listing-card .contact-name { color: var(--ink-muted); }
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--ink-muted);
  background: var(--bg);
  border-radius: 16px;
  margin-top: 20px;
}

/* ABOUT */
.about { padding: 100px 0; background: var(--bg); }
.about-flex {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text h2 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 28px;
}
.about-text p {
  font-size: 17px;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
.about-list { list-style: none; margin-top: 24px; }
.about-list li {
  padding: 10px 0;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.about-list b { color: var(--lavender-deep); }

.about-image { text-align: center; }
.sunset-img {
  width: 100%;
  max-width: 460px;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(124, 58, 237, 0.25);
  transition: transform 0.4s;
}
.sunset-img:hover { transform: scale(1.03) rotate(1deg); }

/* CTA */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--lavender-deep) 0%, var(--lavender-darker) 100%);
  color: white;
  text-align: center;
}
.cta h2 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -2px;
  color: white;
  margin-bottom: 18px;
}
.cta .lede {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}
.cta-button {
  display: inline-block;
  background: white;
  color: var(--lavender-deep);
  padding: 16px 36px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.2s;
  letter-spacing: 0.3px;
}
.cta-button:hover { transform: translateY(-3px) scale(1.03); color: var(--lavender-darker); }

/* FOOTER */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.65);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 48px;
}
.footer-logo { width: 80px; height: 80px; border-radius: 50%; margin-bottom: 16px; }
.footer-brand {
  font-family: 'Lobster Two', cursive;
  font-style: italic;
  font-weight: 700;
  font-size: 28px;
  color: var(--lavender);
  margin-bottom: 6px;
}
.footer-tagline { font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-cols h4 {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: white;
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-cols a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  padding: 4px 0;
}
.footer-cols a:hover { color: var(--lavender); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom .footer-fine {
  margin-top: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
  font-style: italic;
}

/* Listing card wrap + translate button */
.listing-card-wrap {
  display: flex;
  flex-direction: column;
}
.translate-btn {
  margin-top: 8px;
  padding: 10px 14px;
  background: var(--lavender-soft);
  color: var(--lavender-darker);
  border: 1px solid var(--lavender);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: background 0.2s, transform 0.1s;
}
.translate-btn:hover:not(:disabled) {
  background: var(--lavender);
  color: white;
  transform: translateY(-1px);
}
.translate-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* Translation modal */
.translation-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.translation-modal .modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 21, 0.7);
  backdrop-filter: blur(4px);
}
.translation-modal .modal-content {
  position: relative;
  background: var(--card);
  max-width: 640px;
  max-height: 80vh;
  width: 90%;
  border-radius: 16px;
  padding: 28px 32px;
  overflow-y: auto;
  box-shadow: 0 20px 80px rgba(0,0,0,0.4);
}
.translation-modal h3 {
  font-family: 'Lobster Two', serif;
  font-style: italic;
  color: var(--lavender-darker);
  margin-bottom: 14px;
}
.translation-modal .modal-body {
  white-space: pre-wrap;
  line-height: 1.6;
  color: var(--ink);
}
.translation-modal .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--ink-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
}

/* Loading state inside translation modal */
.translate-loading, .translate-error {
  text-align: center;
  padding: 20px 10px 10px;
}
.translate-loading p, .translate-error p {
  margin: 12px 0;
  color: var(--ink);
}
.translate-loading-detail {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
  max-width: 440px;
  margin: 8px auto 0;
}
.translate-spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  border: 3px solid var(--lavender-soft);
  border-top-color: var(--lavender-deep);
  border-radius: 50%;
  animation: dgn-spin 1s linear infinite;
}
@keyframes dgn-spin {
  to { transform: rotate(360deg); }
}
.translate-error {
  color: var(--coral);
}

/* CHAT WIDGET */
.chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 1000; }
.chat-toggle {
  display: flex; align-items: center; gap: 10px;
  background: var(--lavender-deep); color: white;
  border: none; border-radius: 100px;
  padding: 14px 22px; font: 600 14px/1 'Inter', sans-serif;
  cursor: pointer; box-shadow: 0 12px 36px rgba(124, 58, 237, 0.4);
  transition: all 0.2s; letter-spacing: 0.3px;
}
.chat-toggle:hover { background: var(--lavender-darker); transform: translateY(-2px); }
.chat-toggle-icon { font-size: 18px; }

.chat-panel {
  display: none;
  position: absolute; bottom: 0; right: 0;
  width: 380px; max-width: calc(100vw - 24px);
  height: 560px; max-height: calc(100vh - 48px);
  background: var(--card); border-radius: 18px;
  box-shadow: 0 24px 80px rgba(124, 58, 237, 0.3);
  border: 1px solid var(--border);
  flex-direction: column; overflow: hidden;
}
.chat-panel.open { display: flex; }
.chat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--lavender-deep) 0%, var(--lavender-darker) 100%);
  color: white;
}
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; }
.chat-title { font-size: 15px; font-weight: 700; }
.chat-sub { font-size: 11px; opacity: 0.85; }
.chat-header > div:nth-child(2) { flex: 1; }
.chat-close {
  background: rgba(255,255,255,0.18); border: none; color: white;
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  font-size: 20px; line-height: 1;
}
.chat-close:hover { background: rgba(255,255,255,0.3); }

.chat-body {
  flex: 1; overflow-y: auto;
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
  background: var(--bg);
}
.chat-msg {
  max-width: 85%; padding: 11px 14px; border-radius: 14px;
  font-size: 14px; line-height: 1.5;
  word-wrap: break-word; white-space: pre-wrap;
}
.chat-msg-bot {
  background: white; border: 1px solid var(--border);
  align-self: flex-start; color: var(--ink);
}
.chat-msg-user {
  background: var(--lavender-deep); color: white;
  align-self: flex-end;
}
.chat-msg-loading {
  background: white; border: 1px solid var(--border);
  align-self: flex-start; color: var(--ink-muted);
  font-style: italic;
}

.chat-input {
  display: flex; gap: 8px; padding: 12px;
  border-top: 1px solid var(--border); background: white;
}
.chat-input input {
  flex: 1; border: 1px solid var(--border); border-radius: 100px;
  padding: 10px 16px; font: 400 14px 'Inter', sans-serif;
  background: var(--bg); color: var(--ink); outline: none;
}
.chat-input input:focus { border-color: var(--lavender); }
.chat-input button {
  background: var(--lavender-deep); color: white;
  border: none; border-radius: 100px;
  padding: 10px 18px; font: 600 14px 'Inter', sans-serif;
  cursor: pointer;
}
.chat-input button:hover { background: var(--lavender-darker); }
.chat-input button:disabled { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 520px) {
  .chat-toggle-label { display: none; }
  .chat-toggle { padding: 14px; }
  .chat-panel { width: calc(100vw - 24px); height: calc(100vh - 100px); }
}

/* MOBILE */
@media (max-width: 920px) {
  .hero { padding: 120px 0 60px; }
  .hero-content { grid-template-columns: 1fr; }
  .hero h1 { font-size: 44px; letter-spacing: -1px; }
  .hero-logo { width: 220px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-num { font-size: 36px; }
  .how h2, .cities h2, .listings h2, .about-text h2 { font-size: 32px; }
  .cta h2 { font-size: 36px; }
  .about-flex { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .site-header nav { gap: 14px; }
  .site-header nav a:not(.cta-nav) { display: none; }
}

/* PAGINATION */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 40px auto 0;
  padding: 24px 0;
}
.page-btn {
  min-width: 40px;
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border, rgba(0,0,0,.12));
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease, border-color .15s ease;
}
.page-btn:hover:not(:disabled):not(.is-active) {
  background: var(--bg-alt, #f5f5f5);
  border-color: var(--lavender, #888);
}
.page-btn:active:not(:disabled) { transform: scale(.97); }
.page-btn:disabled { opacity: .35; cursor: not-allowed; }
.page-btn.is-active {
  background: var(--lavender-deep, var(--ink));
  color: #fff;
  border-color: var(--lavender-deep, var(--ink));
  cursor: default;
}
.page-ellipsis {
  padding: 0 6px;
  color: var(--ink-muted);
  user-select: none;
}
.page-summary {
  flex-basis: 100%;
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-muted, #666);
}
@media (max-width: 520px) {
  .page-btn { min-width: 36px; padding: 7px 10px; font-size: 13px; }
  .page-nav { padding: 7px 12px; }
}
