@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ════════════════════════════════════════════════════════
   DESIGN TOKENS
════════════════════════════════════════════════════════ */
:root {
  /* Gold palette */
  --gold-100: #f5e9c5;
  --gold-300: #dbb96a;
  --gold-500: #c09a35;
  --gold-700: #8a6b1e;
  --gold-glow: rgba(192, 154, 53, 0.20);

  /* Dark palette */
  --ink-950: #080705;
  --ink-900: #100e09;
  --ink-800: #1a1710;
  --ink-700: #252018;
  --ink-600: #302a1f;
  --ink-500: #3d3628;
  --ink-400: #524a38;

  /* Neutral */
  --stone-100: #f7f3ec;
  --stone-200: #ede6d8;
  --stone-300: #d6ccba;
  --stone-400: #b0a48e;
  --stone-500: #8c806a;
  --stone-600: #6b5f4a;

  /* Semantic */
  --danger: #c0392b;
  --success: #1e7a4e;
  --info: #1a5f8a;

  /* Spacing */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 32px;

  /* Shadows */
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.12);
  --shadow-md: 0 6px 30px rgba(0,0,0,0.20);
  --shadow-lg: 0 16px 60px rgba(0,0,0,0.32);
  --shadow-gold: 0 4px 24px rgba(192,154,53,0.28);

  /* Border */
  --border-gold: 1px solid rgba(192,154,53,0.25);
  --border-light: 1px solid rgba(255,255,255,0.07);
  --border-stone: 1px solid #e0d8c8;
}

/* ════════════════════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--stone-100);
  color: var(--ink-800);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { font-family: 'Cormorant', serif; line-height: 1.1; }
img { display: block; max-width: 100%; }
button { font-family: 'Outfit', sans-serif; }

/* ════════════════════════════════════════════════════════
   PAGE SYSTEM
════════════════════════════════════════════════════════ */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }

.page-dark.active { display: flex; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.anim-fade-up { animation: fadeUp 0.5s cubic-bezier(.22,.68,0,1.2) both; }
.anim-fade-up-2 { animation: fadeUp 0.5s cubic-bezier(.22,.68,0,1.2) 0.1s both; }
.anim-fade-up-3 { animation: fadeUp 0.5s cubic-bezier(.22,.68,0,1.2) 0.2s both; }
.anim-fade-up-4 { animation: fadeUp 0.5s cubic-bezier(.22,.68,0,1.2) 0.3s both; }

/* ════════════════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════════════════ */
#main-nav {
  position: sticky; top: 0; z-index: 300;
  background: rgba(16, 14, 9, 0.96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(20px);
  border-bottom: var(--border-gold);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 36px; height: 68px;
}
.nav-brand {
  display: flex; align-items: center; gap: 14px;
  cursor: pointer; text-decoration: none;
}
.nav-logo-wrap {
  width: 38px; height: 38px;
  border: var(--border-gold); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--ink-700);
}
.nav-logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
.nav-brand-text { display: flex; flex-direction: column; gap: 1px; }
.nav-brand-name {
  font-family: 'Cormorant', serif; font-size: 1.15rem; font-weight: 600;
  color: var(--gold-300); letter-spacing: 0.04em;
}
.nav-brand-sub { font-size: 0.62rem; color: var(--stone-500); letter-spacing: 0.2em; text-transform: uppercase; }
.nav-center { display: flex; align-items: center; gap: 2px; }
.nav-link {
  background: none; border: none; cursor: pointer;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--stone-400); padding: 8px 16px; border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--gold-300); background: rgba(192,154,53,0.06); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-divider { width: 1px; height: 22px; background: rgba(192,154,53,0.2); }
.nav-user-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--ink-700); border: var(--border-gold);
  border-radius: 40px; padding: 6px 14px;
}
.nav-user-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold-500); display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; color: var(--ink-900);
}
.nav-user-name { font-size: 0.8rem; color: var(--stone-300); font-weight: 500; }

/* ════════════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font-family: 'Outfit', sans-serif;
  font-weight: 600; letter-spacing: 0.04em; border-radius: var(--r-md);
  transition: all 0.22s cubic-bezier(.22,.68,0,1.2);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-gold {
  background: var(--gold-500); color: var(--ink-900);
  padding: 11px 26px; font-size: 0.88rem;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { background: var(--gold-300); box-shadow: 0 6px 28px rgba(192,154,53,0.4); }

.btn-gold-outline {
  background: transparent; color: var(--gold-500);
  border: 1.5px solid var(--gold-500);
  padding: 10px 24px; font-size: 0.88rem;
}
.btn-gold-outline:hover { background: var(--gold-500); color: var(--ink-900); }

.btn-ghost {
  background: transparent; color: var(--stone-400);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px 22px; font-size: 0.85rem;
}
.btn-ghost:hover { color: var(--stone-200); border-color: rgba(255,255,255,0.2); }

.btn-danger { background: var(--danger); color: #fff; padding: 9px 20px; font-size: 0.85rem; }
.btn-danger:hover { background: #a93226; }

.btn-success { background: var(--success); color: #fff; padding: 9px 20px; font-size: 0.85rem; }
.btn-success:hover { background: #175e3b; }

.btn-neutral {
  background: var(--ink-600); color: var(--stone-300);
  border: var(--border-light); padding: 9px 20px; font-size: 0.85rem;
}
.btn-neutral:hover { background: var(--ink-500); color: var(--stone-200); }

.page-back-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 12px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink-900);
  color: var(--gold-300);
  border: var(--border-gold);
  border-radius: var(--r-md);
  padding: 10px 18px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn-back:hover {
  background: var(--gold-500);
  color: var(--ink-900);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.btn-back:active {
  transform: scale(0.98);
}

.btn-sm { padding: 5px 13px !important; font-size: 0.76rem !important; border-radius: var(--r-sm) !important; }
.btn-lg { padding: 14px 34px !important; font-size: 0.95rem !important; }
.btn-xl { padding: 16px 40px !important; font-size: 1rem !important; }
.btn-full { width: 100%; }

/* ════════════════════════════════════════════════════════
   FORMS
════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 6px;
}
.form-label-dark { color: var(--stone-400); }
.form-label-light { color: var(--stone-600); }

.form-input {
  width: 100%; border-radius: var(--r-md); font-family: 'Outfit', sans-serif;
  font-size: 0.92rem; transition: all 0.2s; outline: none;
  padding: 11px 15px;
}
.form-input-dark {
  background: rgba(255,255,255,0.05); color: var(--stone-200);
  border: 1px solid rgba(255,255,255,0.1);
}
.form-input-dark::placeholder { color: rgba(255,255,255,0.22); }
.form-input-dark:focus { border-color: var(--gold-500); background: rgba(255,255,255,0.08); }

.form-input-light {
  background: #fff; color: var(--ink-800);
  border: 1.5px solid var(--stone-300);
}
.form-input-light::placeholder { color: var(--stone-400); }
.form-input-light:focus { border-color: var(--gold-500); box-shadow: 0 0 0 3px var(--gold-glow); }

.form-input-dark option { background: var(--ink-800); color: var(--stone-200); }
.form-input-light option { background: #fff; color: var(--ink-800); }

textarea.form-input { resize: vertical; min-height: 90px; }

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

/* API Key input with show/hide */
.api-input-wrap { position: relative; }
.api-input-wrap .form-input { padding-right: 42px; font-family: monospace; font-size: 0.85rem; }
.api-eye-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--stone-500);
  font-size: 1rem; padding: 2px;
  transition: color 0.2s;
}
.api-eye-btn:hover { color: var(--gold-500); }

/* ════════════════════════════════════════════════════════
   ALERTS
════════════════════════════════════════════════════════ */
.alert {
  padding: 12px 16px; border-radius: var(--r-md); font-size: 0.86rem;
  font-weight: 500; margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.alert-error { background: rgba(192,57,43,0.15); color: #e57373; border-left: 3px solid var(--danger); }
.alert-success { background: rgba(30,122,78,0.15); color: #6fcfa0; border-left: 3px solid var(--success); }
.alert-info { background: rgba(26,95,138,0.15); color: #7bc8f0; border-left: 3px solid var(--info); }
.alert-warn { background: rgba(192,154,53,0.12); color: var(--gold-300); border-left: 3px solid var(--gold-500); }

/* ════════════════════════════════════════════════════════
   CONTAINERS
════════════════════════════════════════════════════════ */
.container { max-width: 1280px; margin: 0 auto; padding: 40px 36px; }
.container-md { max-width: 900px; margin: 0 auto; padding: 40px 36px; }
.container-sm { max-width: 600px; margin: 0 auto; padding: 40px 36px; }

/* ════════════════════════════════════════════════════════
   AUTH PAGES (login / register)
════════════════════════════════════════════════════════ */
.page-dark {
  background: var(--ink-950);
  background-image:
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(192,154,53,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 90% 10%, rgba(192,154,53,0.05) 0%, transparent 60%);
  align-items: stretch;
}
.auth-split {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 100vh; width: 100%;
}
.auth-left {
  background: var(--ink-900);
  border-right: var(--border-gold);
  display: flex; flex-direction: column;
  justify-content: space-between; padding: 48px;
  position: relative; overflow: hidden;
}
.auth-left-pattern {
  position: absolute; inset: 0; opacity: 0.03;
  background-image: repeating-linear-gradient(45deg, var(--gold-500) 0, var(--gold-500) 1px, transparent 0, transparent 50%);
  background-size: 20px 20px;
}
.auth-left-logo { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.auth-left-logo-box {
  width: 48px; height: 48px; border: var(--border-gold);
  border-radius: 10px; overflow: hidden; background: var(--ink-700);
  display: flex; align-items: center; justify-content: center;
}
.auth-left-logo-box img { width: 100%; height: 100%; object-fit: contain; }
.auth-left-logo-text { font-family: 'Cormorant', serif; font-size: 1.3rem; color: var(--gold-300); }
.auth-left-content { position: relative; z-index: 1; }
.auth-left-content h2 {
  font-size: 3.2rem; font-weight: 300; color: var(--stone-100);
  line-height: 1.1; margin-bottom: 16px;
}
.auth-left-content h2 em { font-style: italic; color: var(--gold-300); }
.auth-left-content p { color: var(--stone-500); font-size: 0.95rem; line-height: 1.7; max-width: 340px; }
.auth-left-footer { position: relative; z-index: 1; }
.auth-left-footer p { font-size: 0.78rem; color: var(--stone-600); }
.auth-left-img {
  width: 100%; height: 240px; object-fit: cover; border-radius: var(--r-xl);
  opacity: 0.5; margin-top: 32px; border: var(--border-gold);
}
.auth-right {
  display: flex; align-items: center; justify-content: center;
  padding: 48px 64px;
}
.auth-form-wrap { width: 100%; max-width: 380px; }
.auth-form-wrap h3 {
  font-size: 2.2rem; font-weight: 400; color: var(--stone-100);
  margin-bottom: 8px;
}
.auth-form-wrap .auth-sub {
  color: var(--stone-500); font-size: 0.88rem; margin-bottom: 32px;
}
.btn-auth {
  width: 100%; padding: 13px; background: var(--gold-500);
  color: var(--ink-900); border: none; border-radius: var(--r-md);
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 0.9rem;
  cursor: pointer; letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: var(--shadow-gold); transition: all 0.22s;
}
.btn-auth:hover { background: var(--gold-300); box-shadow: 0 6px 28px rgba(192,154,53,0.4); }
.auth-link {
  display: block; text-align: center; margin-top: 16px;
  color: var(--stone-500); font-size: 0.84rem; cursor: pointer;
  transition: color 0.2s;
}
.auth-link span { color: var(--gold-500); font-weight: 600; }
.auth-link:hover { color: var(--stone-300); }
.auth-divider {
  display: flex; align-items: center; gap: 14px; margin: 20px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.08);
}
.auth-divider span { color: var(--stone-600); font-size: 0.76rem; }

/* ════════════════════════════════════════════════════════
   HERO (home)
════════════════════════════════════════════════════════ */
.hero {
  position: relative; border-radius: var(--r-2xl);
  overflow: hidden; margin-bottom: 56px;
  min-height: 520px; display: flex; align-items: flex-end;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(8,7,5,0.94) 0%,
    rgba(8,7,5,0.7) 50%,
    rgba(8,7,5,0.2) 100%
  );
}
.hero-gradient-bottom {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,7,5,0.8) 0%, transparent 50%);
}
.hero-body {
  position: relative; z-index: 2;
  padding: 60px 64px; max-width: 680px;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  border: var(--border-gold); border-radius: 40px;
  padding: 5px 16px; margin-bottom: 20px;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-300);
}
.hero-tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-500); animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.hero-body h1 {
  font-size: 4.2rem; font-weight: 300; color: var(--stone-100);
  line-height: 1.05; margin-bottom: 18px;
}
.hero-body h1 em { font-style: italic; color: var(--gold-300); }
.hero-body p {
  color: var(--stone-400); font-size: 1rem; line-height: 1.75;
  margin-bottom: 32px; max-width: 440px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  position: absolute; right: 48px; bottom: 48px; z-index: 2;
  display: flex; flex-direction: column; gap: 14px;
}
.hero-stat-card {
   background: rgba(16,14,9,0.85);
   border: var(--border-gold); border-radius: var(--r-lg);
   padding: 16px 20px; min-width: 130px; text-align: center;
   -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
 }
.hero-stat-num {
  font-family: 'Cormorant', serif; font-size: 2rem;
  color: var(--gold-300); font-weight: 600;
}
.hero-stat-label { font-size: 0.7rem; color: var(--stone-500); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; }

/* ════════════════════════════════════════════════════════
   SECTION TITLES
════════════════════════════════════════════════════════ */
.section-head { margin-bottom: 40px; display: flex; align-items: flex-end; justify-content: space-between; }
.section-head-left { margin-right: auto; }
.section-kicker {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-500); font-weight: 600; margin-bottom: 6px;
}
.section-title { font-size: 2.4rem; font-weight: 400; color: var(--ink-800); }
.section-sub { color: var(--stone-500); font-size: 0.92rem; margin-top: 6px; }

/* ════════════════════════════════════════════════════════
   ROOM CARDS
════════════════════════════════════════════════════════ */
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px,1fr)); gap: 28px; }
.room-card {
  background: #fff; border-radius: var(--r-xl);
  overflow: hidden; position: relative;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.3s;
  border: var(--border-stone);
}
.room-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.room-card-media { position: relative; height: 220px; overflow: hidden; }
.room-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.room-card:hover .room-card-media img { transform: scale(1.04); }
.room-card-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--ink-900); color: var(--gold-300);
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; padding: 4px 12px; border-radius: 40px;
  border: var(--border-gold);
}
.room-card-status {
  position: absolute;
  top: 14px;
  right: 14px;
}
.room-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.room-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.room-status-available {
  color: #1e9f5a;
  border: 1px solid rgba(30,159,90,0.24);
}
.room-status-occupied {
  color: #d4483b;
  border: 1px solid rgba(212,72,59,0.24);
}
.room-card-body { padding: 22px; }
.room-card-name { font-size: 1.3rem; font-weight: 600; color: var(--ink-800); margin-bottom: 6px; }
.room-card-desc { font-size: 0.84rem; color: var(--stone-500); line-height: 1.65; margin-bottom: 18px; }
.room-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: var(--border-stone);
}
.room-price { display: flex; flex-direction: column; }
.room-price-amount {
  font-family: 'Cormorant', serif; font-size: 1.5rem;
  font-weight: 600; color: var(--ink-800);
}
.room-price-unit { font-size: 0.72rem; color: var(--stone-500); letter-spacing: 0.06em; }

/* Full room rows (Rooms page) */
.room-rows { display: flex; flex-direction: column; gap: 32px; }
.room-row {
  display: grid; grid-template-columns: 1fr 1fr;
  border-radius: var(--r-2xl); overflow: hidden;
  box-shadow: var(--shadow-md); background: #fff;
  border: var(--border-stone);
}
.room-row:nth-child(even) .rr-img { order: 2; }
.room-row:nth-child(even) .rr-body { order: 1; }
.rr-img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.rr-body { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.rr-status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.rr-kicker { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-500); font-weight: 600; margin-bottom: 10px; }
.rr-status-line .rr-kicker { margin-bottom: 0; }
.rr-name { font-size: 2.1rem; font-weight: 400; color: var(--ink-800); margin-bottom: 12px; }
.rr-desc { color: var(--stone-500); font-size: 0.9rem; line-height: 1.75; margin-bottom: 24px; }
.rr-price {
  font-family: 'Cormorant', serif; font-size: 2rem; font-weight: 600;
  color: var(--ink-800); margin-bottom: 24px;
}
.rr-price small { font-family: 'Outfit', sans-serif; font-size: 0.85rem; font-weight: 400; color: var(--stone-500); margin-left: 4px; }
.rr-amenities { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.amenity-tag {
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--stone-100); color: var(--stone-600);
  padding: 4px 11px; border-radius: 40px; border: 1px solid var(--stone-200);
}

/* ════════════════════════════════════════════════════════
   TABLE
════════════════════════════════════════════════════════ */
.table-shell {
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-md); border: 1px solid rgba(0,0,0,0.06);
}
table { width: 100%; border-collapse: collapse; background: #fff; }
thead { background: var(--ink-800); }
th {
  padding: 14px 18px; text-align: left;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-300);
}
td { padding: 13px 18px; border-bottom: 1px solid var(--stone-200); font-size: 0.87rem; color: var(--ink-700); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #faf8f3; }
.thumb { width: 72px; height: 50px; object-fit: cover; border-radius: var(--r-sm); }

/* ════════════════════════════════════════════════════════
   BADGES
════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 11px; border-radius: 40px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
}
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.7; }
.badge-yes  { background: rgba(30,122,78,0.1);  color: #22a868; }
.badge-no   { background: rgba(192,57,43,0.1);  color: #e05a4b; }
.badge-admin{ background: rgba(192,154,53,0.12); color: var(--gold-500); }
.badge-user { background: rgba(0,0,0,0.05);      color: var(--stone-500); }

.my-booking-list { display: grid; gap: 14px; }
.my-booking-card {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: #fff; border: var(--border-stone); border-radius: var(--r-md);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.my-booking-card h3 { color: var(--ink-800); font-size: 1.35rem; margin-bottom: 6px; }
.my-booking-card p { color: var(--stone-500); font-size: 0.9rem; }
.my-booking-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.my-booking-side strong { color: var(--gold-700); font-size: 1.2rem; }
.empty-state {
  background: #fff; border: var(--border-stone); border-radius: var(--r-md);
  padding: 32px; text-align: center; box-shadow: var(--shadow-sm);
}
.empty-state h3 { color: var(--ink-800); font-size: 1.5rem; margin-bottom: 8px; }
.empty-state p { color: var(--stone-500); margin-bottom: 18px; }

/* ════════════════════════════════════════════════════════
   ADMIN PANEL
════════════════════════════════════════════════════════ */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.stat-card {
  background: #fff; border-radius: var(--r-xl);
  padding: 26px 24px; box-shadow: var(--shadow-sm); border: var(--border-stone);
  position: relative; overflow: hidden;
}
.stat-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, var(--gold-500), var(--gold-300));
}
.stat-icon { font-size: 1.6rem; margin-bottom: 12px; }
.stat-num { font-family: 'Cormorant', serif; font-size: 2.4rem; font-weight: 700; color: var(--ink-800); }
.stat-label { font-size: 0.74rem; color: var(--stone-500); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }
.stat-trend { font-size: 0.76rem; color: var(--success); margin-top: 6px; font-weight: 600; }

.admin-quick-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.admin-quick-btn {
  background: #fff; border-radius: var(--r-xl); padding: 28px 22px;
  text-align: center; cursor: pointer; border: var(--border-stone);
  box-shadow: var(--shadow-sm);
  transition: all 0.24s cubic-bezier(.22,.68,0,1.2);
  border-top: 3px solid transparent;
}
.admin-quick-btn:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-md);
  border-top-color: var(--gold-500);
}
.admin-quick-icon { font-size: 2.4rem; margin-bottom: 12px; }
.admin-quick-label { font-family: 'Cormorant', serif; font-size: 1.2rem; color: var(--ink-800); margin-bottom: 4px; }
.admin-quick-sub { font-size: 0.78rem; color: var(--stone-500); }

/* ════════════════════════════════════════════════════════
   SETTINGS / API KEYS
════════════════════════════════════════════════════════ */
.settings-grid { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.settings-nav-list { display: flex; flex-direction: column; gap: 4px; }
.settings-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--r-md); cursor: pointer;
  font-size: 0.85rem; font-weight: 500; color: var(--stone-500);
  transition: all 0.18s; border: 1px solid transparent;
}
.settings-nav-item:hover { background: rgba(192,154,53,0.06); color: var(--ink-700); }
.settings-nav-item.active { background: rgba(192,154,53,0.1); color: var(--gold-700); border-color: rgba(192,154,53,0.2); font-weight: 600; }
.settings-nav-icon { font-size: 1.1rem; }

.settings-panel { display: none; }
.settings-panel.active { display: block; animation: fadeUp 0.3s ease; }

.settings-card {
  background: #fff; border-radius: var(--r-xl); padding: 32px;
  box-shadow: var(--shadow-sm); border: var(--border-stone); margin-bottom: 20px;
}
.settings-card-header { margin-bottom: 24px; padding-bottom: 18px; border-bottom: var(--border-stone); }
.settings-card-title { font-size: 1.3rem; color: var(--ink-800); margin-bottom: 4px; }
.settings-card-sub { font-size: 0.83rem; color: var(--stone-500); }
.settings-badge-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.74rem; font-weight: 600; padding: 4px 12px; border-radius: 40px;
  margin-left: 10px;
}
.status-configured { background: rgba(30,122,78,0.1); color: #22a868; }
.status-pending    { background: rgba(192,154,53,0.1); color: var(--gold-500); }
.status-unconfigured { background: rgba(192,57,43,0.1); color: #e05a4b; }

.api-help-link {
  font-size: 0.78rem; color: var(--gold-500); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px; margin-top: 5px;
}
.api-help-link:hover { color: var(--gold-300); }

.integration-logo {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.integration-logo .i-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.i-icon-wa  { background: #d4edda; }
.i-icon-gm  { background: #fce8e6; }
.i-icon-sms { background: #e8f0fe; }
.integration-logo h4 { font-size: 1.1rem; color: var(--ink-800); }
.integration-logo p  { font-size: 0.8rem; color: var(--stone-500); }

.toggle-wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: var(--border-stone); }
.toggle-wrap:last-child { border-bottom: none; }
.toggle-info h5 { font-size: 0.9rem; color: var(--ink-800); font-weight: 500; }
.toggle-info p  { font-size: 0.78rem; color: var(--stone-500); margin-top: 2px; }
.toggle-switch { position: relative; width: 42px; height: 24px; cursor: pointer; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; background: var(--stone-300);
  border-radius: 24px; transition: 0.3s;
}
.toggle-slider::after {
  content: ''; position: absolute; left: 3px; top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: 0.3s; box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--gold-500); }
.toggle-switch input:checked + .toggle-slider::after { transform: translateX(18px); }

.test-btn-row { display: flex; gap: 10px; align-items: center; margin-top: 18px; }
.test-result { font-size: 0.8rem; color: var(--stone-500); }
.test-result.ok  { color: var(--success); }
.test-result.err { color: var(--danger); }

/* ════════════════════════════════════════════════════════
   RESERVATION / PAYMENT / CONFIRM
════════════════════════════════════════════════════════ */
.booking-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.booking-card {
  background: #fff; border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm); border: var(--border-stone); overflow: hidden;
}
.booking-card-header {
  padding: 22px 26px; border-bottom: var(--border-stone);
  display: flex; align-items: center; gap: 12px;
}
.booking-card-header h3 { font-size: 1.2rem; color: var(--ink-800); }
.booking-card-step {
  width: 28px; height: 28px; border-radius: 50%; background: var(--gold-500);
  color: var(--ink-900); font-size: 0.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.booking-card-body { padding: 26px; }

.summary-card {
  background: var(--ink-900); border-radius: var(--r-xl);
  border: var(--border-gold); overflow: hidden;
  position: sticky; top: 84px;
}
.summary-card-img { width: 100%; height: 160px; object-fit: cover; opacity: 0.8; }
.summary-card-body { padding: 22px; }
.summary-card-name { font-family: 'Cormorant', serif; font-size: 1.4rem; color: var(--stone-100); margin-bottom: 4px; }
.summary-divider { height: 1px; background: rgba(192,154,53,0.2); margin: 14px 0; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; }
.summary-row .s-label { font-size: 0.8rem; color: var(--stone-500); }
.summary-row .s-val   { font-size: 0.85rem; color: var(--stone-200); font-weight: 600; }
.summary-total-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0 0; margin-top: 8px; border-top: var(--border-gold);
}
.summary-total-label { font-size: 0.78rem; color: var(--stone-400); letter-spacing: 0.1em; text-transform: uppercase; }
.summary-total-val { font-family: 'Cormorant', serif; font-size: 1.8rem; color: var(--gold-300); font-weight: 600; }

.pay-method-tabs { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.pay-tab {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--r-md);
  border: 1.5px solid var(--stone-300); cursor: pointer; background: #fff;
  font-size: 0.84rem; font-weight: 600; color: var(--stone-500);
  transition: all 0.2s;
}
.pay-tab:hover { border-color: var(--gold-500); color: var(--gold-700); }
.pay-tab.active { border-color: var(--gold-500); background: rgba(192,154,53,0.07); color: var(--gold-700); }
.pay-tab .tab-icon { font-size: 1.1rem; }
.pay-section { display: none; }
.pay-section.show { display: block; animation: fadeUp 0.25s ease; }

.confirm-hero {
  background: var(--ink-900);
  background-image: radial-gradient(ellipse at 50% 100%, rgba(192,154,53,0.15) 0%, transparent 60%);
  border-radius: var(--r-2xl); padding: 64px 48px; text-align: center;
  border: var(--border-gold); margin-bottom: 28px;
}
.confirm-icon-wrap {
  width: 90px; height: 90px; border-radius: 50%;
  background: rgba(192,154,53,0.15); border: var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem; margin: 0 auto 20px;
}
.confirm-hero h2 { font-size: 2.6rem; color: var(--stone-100); margin-bottom: 8px; }
.confirm-hero p { color: var(--stone-500); font-size: 0.95rem; margin-bottom: 24px; }
.confirm-notification-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.confirm-notif-badge {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.05); border: var(--border-gold);
  border-radius: 40px; padding: 6px 16px;
  font-size: 0.78rem; color: var(--stone-400);
}
.detail-card {
  background: #fff; border-radius: var(--r-xl); border: var(--border-stone);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.detail-card-header {
  background: var(--stone-100); padding: 16px 24px;
  border-bottom: var(--border-stone);
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--stone-600); font-weight: 600;
}
.detail-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 24px; border-bottom: var(--border-stone); }
.detail-row:last-child { border-bottom: none; }
.detail-label { font-size: 0.83rem; color: var(--stone-500); }
.detail-val { font-size: 0.88rem; font-weight: 600; color: var(--ink-800); }
.detail-val-gold { font-family: 'Cormorant', serif; font-size: 1.3rem; color: var(--gold-500); font-weight: 600; }

/* ════════════════════════════════════════════════════════
   MODAL
════════════════════════════════════════════════════════ */
.modal-overlay {
   display: none; position: fixed; inset: 0; z-index: 500;
   background: rgba(0,0,0,0.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
   align-items: center; justify-content: center;
 }
.modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }
.modal-box {
  background: var(--ink-800); border: var(--border-gold);
  border-radius: var(--r-2xl); padding: 36px;
  max-width: 540px; width: 94%; box-shadow: var(--shadow-lg);
  max-height: 90vh; overflow-y: auto;
}
.modal-box h3 { font-size: 1.5rem; color: var(--stone-100); margin-bottom: 20px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

/* ════════════════════════════════════════════════════════
   PAGE HEADER
════════════════════════════════════════════════════════ */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px; padding-bottom: 20px; border-bottom: var(--border-stone);
}
.page-header-left { flex: 1; }
.page-header h2 { font-size: 2rem; color: var(--ink-800); }
.page-breadcrumb { font-size: 0.78rem; color: var(--stone-500); margin-bottom: 4px; cursor: pointer; }
.page-breadcrumb:hover { color: var(--gold-500); }
.page-header-actions { display: flex; gap: 10px; }

/* ════════════════════════════════════════════════════════
   USER PAGE HEADER (logout en páginas de usuario)
════════════════════════════════════════════════════════ */
.page-header-user {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; margin-bottom: 8px;
}
.page-header-user-info { display: flex; flex-direction: column; gap: 1px; }
.page-header-user-name {
  font-family: 'Outfit', sans-serif; font-size: 0.95rem; font-weight: 600;
  color: var(--ink-800); letter-spacing: 0.01em;
}
.page-header-user-role {
  font-size: 0.76rem; color: var(--stone-500);
  letter-spacing: 0.04em; text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════ */
footer {
  background: var(--ink-900); border-top: var(--border-gold);
  padding: 28px 36px; margin-top: 72px;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand-name { font-family: 'Cormorant', serif; font-size: 1rem; color: var(--gold-300); }
.footer-copy { font-size: 0.78rem; color: var(--stone-600); }
.footer-links { display: flex; gap: 20px; }
.footer-link { font-size: 0.78rem; color: var(--stone-600); cursor: pointer; transition: color 0.2s; }
.footer-link:hover { color: var(--gold-300); }

/* ════════════════════════════════════════════════════════
   MISC UTILITIES
════════════════════════════════════════════════════════ */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px;  }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-8  { margin-top: 8px;  }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.mt-28 { margin-top: 28px; }
.mt-40 { margin-top: 40px; }
.mb-8  { margin-bottom: 8px;  }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.text-center { text-align: center; }
.text-gold { color: var(--gold-500); }
.text-muted { color: var(--stone-500); }
.text-sm { font-size: 0.82rem; }
.w-100 { width: 100%; }
.separator { height: 1px; background: var(--border-stone); margin: 24px 0; }

/* ════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .admin-quick-grid { grid-template-columns: repeat(2,1fr); }
  .booking-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .settings-grid { grid-template-columns: 1fr; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { padding: 48px 28px; }
}
@media (max-width: 768px) {
  .hero-body { padding: 36px 32px; }
  .hero-body h1 { font-size: 2.8rem; }
  .hero-stats { display: none; }
  .room-row { grid-template-columns: 1fr; }
  .room-row:nth-child(even) .rr-img,
  .room-row:nth-child(even) .rr-body { order: unset; }
  .rooms-grid { grid-template-columns: 1fr; }
  .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
}
.ml-auto { margin-left: auto; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-28 { margin-bottom: 28px; }
.mb-32 { margin-bottom: 32px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-muted { color: var(--stone-500); }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.w-full { width: 100%; }
.max-w-xs { max-width: 20rem; }
.separator { height: 1px; background: var(--border-stone); margin: 20px 0; }
.settings-nav-list { display: flex; flex-direction: column; gap: 4px; }
.settings-nav-item { padding: 10px 14px; cursor: pointer; border-radius: var(--r-md); transition: background 0.2s; }
.settings-nav-item:hover { background: var(--ink-800); }
.settings-nav-item.active { background: var(--ink-800); }
.settings-nav-icon { margin-right: 8px; }
.settings-badge-status { font-size: 0.75rem; padding: 2px 8px; border-radius: 999px; }
.status-unconfigured { background: var(--ink-700); color: var(--stone-500); }
.integration-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.i-icon { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--ink-700); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.i-icon-wa { background: rgba(37, 211, 102, 0.2); }
.i-icon-gm { background: rgba(234, 67, 53, 0.2); }
.toggle-wrap { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.toggle-info h5 { margin: 0 0 2px 0; }
.toggle-info p { margin: 0; font-size: 0.85rem; color: var(--stone-500); }
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: var(--ink-600); border-radius: 24px; transition: 0.2s; }
.toggle-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background: var(--stone-200); border-radius: 50%; transition: 0.2s; }
.toggle-switch input:checked + .toggle-slider { background: var(--gold-500); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(20px); }
.api-input-wrap { position: relative; }
.api-eye-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--stone-500); cursor: pointer; }
.api-help-link { font-size: 0.75rem; color: var(--gold-500); text-decoration: none; }
.api-help-link:hover { text-decoration: underline; }
.test-btn-row { display: flex; gap: 10px; align-items: center; margin-top: 16px; }
.test-result { font-size: 0.85rem; }
.settings-panel { display: none; }
.settings-panel.active { display: block; }
.alert-warn { background: rgba(229, 115, 115, 0.15); border: 1px solid rgba(229, 115, 115, 0.3); color: #e57373; padding: 12px 16px; border-radius: var(--r-md); }
.alert-info { background: rgba(66, 133, 244, 0.15); border: 1px solid rgba(66, 133, 244, 0.3); color: #4285f4; padding: 12px 16px; border-radius: var(--r-md); }
.font-bold { font-weight: 600; }
.booking-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }
@media (max-width: 900px) { .booking-layout { grid-template-columns: 1fr; } }
.summary-card { background: var(--ink-900); border: var(--border-stone); border-radius: var(--r-xl); padding: 20px; align-self: start; }
.checkbox-wrapper { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.checkbox-wrapper input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--gold-500); }
.justify-center { justify-content: center; }
.title-reset { border: none; margin: 0; padding: 0; }
.stat-num-lg { font-size: 1.6rem; }
.hidden { display: none; }
.form-hint { font-size: 0.75rem; color: var(--stone-500); margin-top: 4px; display: block; }
.text-normal { text-transform: none; font-weight: 400; }
.modal-box-sm { max-width: 400px; }
.text-6xl { font-size: 60px; }

.text-danger { color: #e57373; font-family: 'Cormorant', serif; }

/* ════════════════════════════════════════════════════════
   SGNIA CHATBOT — BUBBLE (trigger) + WINDOW
════════════════════════════════════════════════════════ */
#sgnia-bubble {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: linear-gradient(145deg, var(--gold-300), var(--gold-500));
  box-shadow: 0 14px 36px rgba(16,14,9,0.32), var(--shadow-gold);
  transition: transform 0.2s, box-shadow 0.2s;
}
#sgnia-bubble:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 42px rgba(16,14,9,0.36), 0 6px 28px rgba(192,154,53,0.45);
}
.sgnia-bubble-ring {
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(192,154,53,0.38);
  border-radius: 50%;
}
.sgnia-bubble-inner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink-900);
  color: var(--gold-300);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245,233,197,0.18);
}
.sgnia-bubble-icon {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}
.sgnia-bubble-ping {
  position: absolute;
  right: 7px;
  top: 8px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #34c759;
  border: 2px solid var(--ink-900);
}
.sgnia-bubble-ping::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: rgba(52,199,89,0.35);
  animation: sgniaPulse 2s ease-in-out infinite;
}

#sgnia-window {
  position: fixed;
  right: 24px;
  bottom: 102px;
  z-index: 899;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 130px));
  background: #fff;
  border: var(--border-stone);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  flex-direction: column;
}
#sgnia-window:not(.hidden) {
  display: flex;
  animation: sgniaWindowOpen 0.25s cubic-bezier(.22,.68,0,1.2) both;
}
.sgnia-header {
  background: var(--ink-900);
  color: var(--stone-100);
  padding: 15px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: var(--border-gold);
}
.sgnia-header-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.sgnia-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.86rem;
  font-weight: 800;
  flex-shrink: 0;
}
.sgnia-header-name {
  font-weight: 700;
  letter-spacing: 0;
}
.sgnia-header-status {
  color: var(--stone-400);
  font-size: 0.75rem;
  margin-top: 2px;
}
.sgnia-status-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: #34c759;
  margin-right: 5px;
}
.sgnia-close {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--stone-200);
  cursor: pointer;
}
.sgnia-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--stone-100);
}
.sgnia-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sgnia-msg {
  max-width: 84%;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.45;
}
.sgnia-msg-bot {
  align-self: flex-start;
  background: #fff;
  color: var(--ink-800);
  border: var(--border-stone);
  border-bottom-left-radius: 5px;
}
.sgnia-msg-user {
  align-self: flex-end;
  background: var(--gold-500);
  color: var(--ink-900);
  border-bottom-right-radius: 5px;
}
.sgnia-quick-replies {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 16px 14px;
}
.sgnia-qr {
  border: 1px solid rgba(192,154,53,0.35);
  background: #fff;
  color: var(--gold-700);
  border-radius: 999px;
  padding: 7px 11px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
}
.sgnia-footer {
  padding: 12px;
  background: #fff;
  border-top: var(--border-stone);
}
.sgnia-input-row {
  display: flex;
  gap: 8px;
}
.sgnia-input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid var(--stone-300);
  border-radius: 999px;
  padding: 10px 13px;
  font-family: 'Outfit', sans-serif;
  outline: none;
}
.sgnia-input:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.sgnia-send {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--ink-900);
  cursor: pointer;
  font-weight: 800;
}
.sgnia-typing {
  display: flex;
  gap: 4px;
  align-items: center;
}
.sgnia-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--stone-500);
  animation: sgniaTyping 1s ease-in-out infinite;
}
.sgnia-dot:nth-child(2) { animation-delay: 0.12s; }
.sgnia-dot:nth-child(3) { animation-delay: 0.24s; }

@keyframes sgniaPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(1.8); }
}

@keyframes sgniaTyping {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

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

@media (max-width: 480px) {
  #sgnia-bubble {
    right: 16px;
    bottom: 16px;
    width: 58px;
    height: 58px;
  }
  #sgnia-window {
    right: 12px;
    bottom: 86px;
    width: calc(100vw - 24px);
    height: min(520px, calc(100vh - 104px));
  }
}