/* ── TOKENS ── */
:root {
  --bg:         #0A0A0F;
  --surface:    #13131A;
  --surface-2:  #1C1C26;
  --border:     #2A2A38;
  --border-2:   #363648;

  --text:       #F0EDE8;
  --text-2:     #9896A4;
  --text-3:     #55546A;

  --gold:       #C9A96E;
  --gold-dim:   rgba(201,169,110,0.12);
  --gold-glow:  rgba(201,169,110,0.25);

  --danger:     #E05252;

  --r:          14px;
  --r-sm:       8px;
  --r-lg:       20px;
  --r-full:     999px;

  --nav-h:      72px;
  --ease:       0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100dvh;
  overflow: hidden;
}

img { display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ── APP SHELL ── */
.app {
  position: relative;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── SCREENS ── */
.screen {
  position: absolute;
  inset: 0;
  bottom: var(--nav-h);
  overflow-y: auto;
  overflow-x: hidden;
  display: none;
  scroll-behavior: smooth;
}

.screen::-webkit-scrollbar { width: 0; }

.screen.active {
  display: block;
  animation: screenIn var(--ease) both;
}

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

/* ── BOTTOM NAV ── */
.bottom-nav {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px env(safe-area-inset-bottom);
  z-index: 100;
  backdrop-filter: blur(20px);
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: var(--r-sm);
  transition: color var(--ease);
  position: relative;
  letter-spacing: 0.3px;
}

.nav-btn svg { width: 20px; height: 20px; }

.nav-btn.active {
  color: var(--gold);
}

.nav-dot {
  position: absolute;
  top: 4px; right: 12px;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* ── HERO ── */
.hero {
  position: relative;
  height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 6s ease;
}

.hero:hover .hero-img { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,15,0.2) 0%,
    rgba(10,10,15,0.5) 50%,
    rgba(10,10,15,0.92) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px 20px;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 42px;
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.5px;
}

/* ── SEARCH FLOAT ── */
.search-float {
  position: relative;
  z-index: 10;
  margin: 0 16px;
  transform: translateY(-50%);
  background: rgba(28, 28, 38, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.search-row {
  display: flex;
  align-items: stretch;
}

.search-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  cursor: pointer;
  transition: background var(--ease);
  gap: 3px;
}

.search-field:hover { background: rgba(255,255,255,0.04); }

.sf-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
}

.sf-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.search-divider {
  width: 1px;
  background: var(--border);
  margin: 12px 0;
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: var(--gold);
  color: #0A0A0F;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background var(--ease), opacity var(--ease);
  border-top: 1px solid var(--border);
}

.search-btn:hover { background: #d4b47a; }
.search-btn svg { width: 15px; height: 15px; }

/* ── LISTING AREA ── */
.listing-area {
  padding: 0 16px 24px;
  margin-top: -24px;
}

.listing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.listing-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.3px;
}

.filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.filter-chips::-webkit-scrollbar { display: none; }

.chip {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  transition: all var(--ease);
}

.chip.active, .chip:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

/* ── ROOM CARDS ── */
.room-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.room-card-guest {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--ease), transform var(--ease);
  display: flex;
  flex-direction: column;
}

.room-card-guest:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
}

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

.room-card-body {
  padding: 16px;
}

.rcb-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.rcb-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.rcb-type {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 3px 8px;
  border-radius: var(--r-full);
  white-space: nowrap;
  margin-left: 8px;
  margin-top: 2px;
}

.rcb-meta {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.rcb-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-2);
}

.rcb-meta-item svg { width: 12px; height: 12px; opacity: 0.6; }

.rcb-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.rcb-price {
  display: flex;
  flex-direction: column;
}

.rcb-price-val {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.5px;
}

.rcb-price-unit {
  font-size: 10px;
  color: var(--text-3);
}

.rcb-avail {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #5DB87A;
}

.rcb-avail-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #5DB87A;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.rcb-avail.unavailable { color: var(--danger); }
.rcb-avail.unavailable .rcb-avail-dot { background: var(--danger); animation: none; }

.btn-reserve-card {
  padding: 9px 18px;
  background: var(--gold);
  color: #0A0A0F;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background var(--ease);
}

.btn-reserve-card:hover { background: #d4b47a; }
.btn-reserve-card:disabled {
  background: var(--border);
  color: var(--text-3);
  cursor: not-allowed;
}

/* ── AMENITIES STRIP ── */
.amenities-strip {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 20px 16px 32px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.amenities-strip::-webkit-scrollbar { display: none; }

.amenity-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  color: var(--text-2);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.amenity-item:last-child { border-right: none; }
.amenity-item svg { width: 18px; height: 18px; color: var(--gold); }

/* ── SUBPAGE HEADER ── */
.subpage-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 10;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.back-btn {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: all var(--ease);
  flex-shrink: 0;
}

.back-btn:hover { border-color: var(--border-2); color: var(--text); }
.back-btn svg { width: 16px; height: 16px; }

/* ── ROOM DETAIL ── */
.room-detail-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.room-detail-body {
  padding: 24px 20px;
}

.rd-header {
  margin-bottom: 20px;
}

.rd-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 300;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.rd-type {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

.rd-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.rd-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rd-feature-label {
  font-size: 10px;
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rd-feature-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.rd-desc {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 24px;
}

.rd-amenities-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-3);
  margin-bottom: 12px;
}

.rd-amenities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.rd-amenity-tag {
  padding: 5px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 11.5px;
  color: var(--text-2);
}

.rd-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  margin-bottom: 16px;
}

.rd-price-val {
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -1px;
}

.rd-price-unit {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

/* ── BOOKING FLOW ── */
.book-flow {
  padding: 20px;
}

.booking-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 16px;
}

.bc-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.bc-info {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.bc-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
}

.bc-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: -0.5px;
}

.bc-dates {
  padding: 14px 16px;
  display: flex;
  gap: 20px;
}

.bc-date-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bc-date-label { font-size: 10px; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.bc-date-val   { font-size: 14px; font-weight: 600; color: var(--text); }

.book-section-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}

.price-breakdown {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  margin-bottom: 16px;
}

.pb-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 8px 0;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}

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

.pb-row.total {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  padding-top: 12px;
  margin-top: 4px;
}

.pb-row.total span:last-child { color: var(--gold); }

.guest-form { margin-bottom: 16px; }

/* ── PAYMENT STEP ── */
.pay-tabs {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 16px;
}

.pay-tab {
  flex: 1;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  transition: all var(--ease);
}

.pay-tab + .pay-tab { border-left: 1px solid var(--border); }

.pay-tab.active {
  color: var(--bg);
  background: var(--gold);
}

.pay-bank-details { margin-top: 4px; }

.pay-iban {
  font-family: 'SF Mono', 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: 0.3px;
}

.pay-hint {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
  margin: 10px 0 16px;
}

.pay-qr-wrap {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
  margin-bottom: 16px;
}

.pay-qr {
  width: 160px;
  height: 160px;
  color: var(--text);
  background: #fff;
  border-radius: var(--r-sm);
  padding: 10px;
}

.pay-qr-amount {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  margin-top: 14px;
}

.btn-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(10,10,15,0.3);
  border-top-color: var(--bg);
  border-radius: 50%;
  vertical-align: -2px;
  margin-right: 6px;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── STAYS SCREEN ── */
.screen-title-block {
  padding: 24px 20px 16px;
  border-bottom: 1px solid var(--border);
}

.screen-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.screen-sub {
  font-size: 13px;
  color: var(--text-2);
}

.stays-tabs {
  display: flex;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  gap: 0;
}

.stay-tab {
  flex: 1;
  padding: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  transition: all var(--ease);
  text-align: center;
}

.stay-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

#staysList { padding: 16px; display: flex; flex-direction: column; gap: 12px; }

.stay-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

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

.stay-card-body { padding: 16px; }

.stay-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.stay-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
}

.stay-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: var(--r-full);
  text-transform: uppercase;
}

.stay-badge.confirmed { background: rgba(93,184,122,0.12); color: #5DB87A; }
.stay-badge.past      { background: var(--surface-2); color: var(--text-3); }
.stay-badge.checkedin { background: var(--gold-dim); color: var(--gold); }

.stay-card-dates {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 12px;
}

.stay-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.stay-total {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.btn-stay-action {
  padding: 7px 14px;
  border: 1px solid var(--gold);
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  transition: all var(--ease);
}

.btn-stay-action:hover { background: var(--gold-dim); }

/* ── SERVICES ── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 20px 16px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  transition: all var(--ease);
  text-align: left;
}

.service-card:hover {
  border-color: var(--gold);
  background: var(--surface-2);
}

.service-icon {
  width: 36px; height: 36px;
  background: var(--gold-dim);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
}

.service-icon svg { width: 18px; height: 18px; color: var(--gold); }

.service-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.service-desc {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.4;
}

/* Service request panel */
.service-request-panel {
  margin: 0 16px 24px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  padding: 20px;
  animation: screenIn var(--ease) both;
}

.srp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.srp-close {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  border-radius: var(--r-sm);
  transition: color var(--ease);
}

.srp-close:hover { color: var(--text); }
.srp-close svg { width: 15px; height: 15px; }

/* ── PROFILE ── */
.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 28px;
  border-bottom: 1px solid var(--border);
}

.profile-avatar {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--gold) 0%, #9A7A4E 100%);
  color: #0A0A0F;
  border-radius: var(--r);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.profile-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 6px;
}

.profile-tier {
  font-size: 12px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.profile-sections {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 32px;
}

.profile-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.ps-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.ps-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  width: 100%;
  text-align: left;
  transition: background var(--ease);
}

.ps-item:last-child { border-bottom: none; }
.ps-item:hover:not(.ps-toggle-item) { background: var(--surface-2); }

.ps-value {
  font-size: 12px;
  color: var(--text-2);
}

.ps-item.danger { color: var(--danger); }

.ps-toggle-item { cursor: default; }

/* Toggle */
.toggle { position: relative; display: inline-block; width: 38px; height: 22px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--border-2);
  border-radius: var(--r-full);
  transition: background var(--ease);
  cursor: pointer;
}

.toggle-track::after {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: white;
  border-radius: 50%;
  transition: transform var(--ease);
}

.toggle input:checked + .toggle-track { background: var(--gold); }
.toggle input:checked + .toggle-track::after { transform: translateX(16px); }

/* Loyalty */
.loyalty-card {
  padding: 16px;
}

.lc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.lc-tier {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}

.lc-points {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.lc-bar-bg {
  height: 4px;
  background: var(--border-2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.lc-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, #d4b47a 100%);
  border-radius: 2px;
  transition: width 0.8s ease;
}

.lc-legend {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-3);
}

/* ── FORMS (dark) ── */
.field-dark {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field-dark label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-3);
}

.field-dark input,
.field-dark select,
.field-dark textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color var(--ease);
  color-scheme: dark;
}

.field-dark input:focus,
.field-dark select:focus,
.field-dark textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.field-dark input.err { border-color: var(--danger); }

.field-error-msg {
  font-size: 11px;
  color: var(--danger);
  margin-top: -8px;
  margin-bottom: 4px;
  display: none;
}

.field-error-msg.show { display: block; }

.field-dark textarea { resize: vertical; }

/* ── BUTTONS ── */
.btn-gold {
  width: 100%;
  padding: 14px;
  background: var(--gold);
  color: #0A0A0F;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background var(--ease), opacity var(--ease);
  margin-bottom: 10px;
}

.btn-gold:hover { background: #d4b47a; }
.btn-gold:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-ghost-sm {
  width: 100%;
  padding: 12px;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--ease);
}

.btn-ghost-sm:hover { border-color: var(--border-2); color: var(--text); }

.btn-gold-outline {
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--ease);
  margin-bottom: 10px;
}

.btn-gold-outline:hover { background: var(--gold-dim); }

/* ── MODALS ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 500;
  display: none;
  align-items: flex-end;
  backdrop-filter: blur(4px);
}

.modal-backdrop.open {
  display: flex;
  animation: bdIn 0.2s ease;
}

@keyframes bdIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-sheet {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-bottom: none;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 20px 20px 32px;
  animation: sheetUp 0.28s cubic-bezier(0.34,1.1,0.64,1);
  max-height: 90dvh;
  overflow-y: auto;
}

.modal-sheet::-webkit-scrollbar { display: none; }

@keyframes sheetUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.modal-handle {
  width: 36px; height: 4px;
  background: var(--border-2);
  border-radius: 2px;
  margin: 0 auto 20px;
}

.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.modal-sub {
  font-size: 13px;
  color: var(--text-2);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Nights preview */
.nights-preview {
  background: var(--gold-dim);
  border: 1px solid var(--gold-glow);
  border-radius: var(--r-sm);
  padding: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 16px;
}

/* Date inputs */
.date-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Guest counter */
.guest-counter {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.counter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

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

.counter-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

.counter-sub { font-size: 11px; color: var(--text-3); }

.counter-ctrl {
  display: flex;
  align-items: center;
  gap: 16px;
}

.counter-btn {
  width: 32px; height: 32px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease);
}

.counter-btn:hover { border-color: var(--gold); color: var(--gold); }
.counter-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.counter-val {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  min-width: 20px;
  text-align: center;
}

/* Confirm modal */
.confirm-check {
  width: 64px; height: 64px;
  background: rgba(93,184,122,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}

.confirm-check svg { width: 28px; height: 28px; color: #5DB87A; }

/* Empty state */
.empty-dark {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-3);
  font-size: 13px;
}

.empty-dark svg {
  width: 36px; height: 36px;
  margin: 0 auto 12px;
  opacity: 0.25;
}

.empty-dark .btn-gold-outline {
  margin-top: 18px;
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface);
  border: 1px solid var(--border-2);
  color: var(--text);
  padding: 11px 18px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
  white-space: nowrap;
}

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

.toast.success { border-color: rgba(93,184,122,0.4); color: #5DB87A; }
.toast.gold    { border-color: var(--gold-glow); color: var(--gold); }

/* ── UTIL ── */
.pb-0 { padding-bottom: 0; }
.mt-0 { margin-top: 0; }

/* ── RESPONSIVE ── */
@media (min-width: 480px) {
  .hero { height: 520px; }
  .hero-title { font-size: 52px; }
  .search-float { margin: 0 24px; }
}

@media (min-width: 768px) {
  .room-cards { display: grid; grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { height: 560px; }
}

@media (min-width: 1024px) {
  body { overflow: auto; }

  .app {
    max-width: 1280px;
    margin: 0 auto;
    height: auto;
    min-height: 100dvh;
  }

  .screen {
    position: relative;
    inset: auto;
    bottom: auto;
    overflow: visible;
    padding-bottom: calc(var(--nav-h) + 24px);
  }

  .hero { height: 620px; border-radius: 0 0 var(--r-lg) var(--r-lg); overflow: hidden; }
  .hero-title { font-size: 64px; }
  .hero-content { padding: 0 56px 32px; max-width: 900px; }
  .search-float { margin: 0 56px; }

  .room-cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .services-grid { grid-template-columns: repeat(4, 1fr); }

  .bottom-nav {
    position: sticky;
    bottom: 0;
    max-width: 720px;
    margin: 0 auto;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    margin-bottom: 16px;
  }
}

@media (min-width: 1440px) {
  .app { max-width: 1440px; }
}

/* ── i18n SELECTS ── */
.ps-select-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ps-select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  padding: 6px 10px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  min-width: 130px;
  text-align: right;
}

.ps-select:hover { border-color: var(--gold); }

.ps-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-dim);
}

.ps-select option {
  background: var(--surface);
  color: var(--text);
}

/* ── STARS ── */
.stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

.star { font-style: normal; line-height: 1; }
.star.full  { color: var(--gold); }
.star.half  { color: var(--gold); opacity: 0.6; }
.star.empty { color: var(--border-2); }

.stars-xs .star { font-size: 10px; }
.stars-sm .star { font-size: 13px; }
.stars-md .star { font-size: 16px; }

.star-val {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  margin-left: 4px;
}

.stars-xs .star-val { font-size: 10px; }
.stars-md .star-val { font-size: 14px; }

/* Stars in listing cards */
.room-card-body .stars {
  padding: 0 16px 4px;
}

/* ── REVIEWS SECTION (room detail) ── */
.rd-reviews {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.rd-reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.rd-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 16px;
}

.review-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.review-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.review-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.review-date {
  font-size: 10px;
  color: var(--text-3);
}

.review-text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
}

/* ── REVIEW MODAL ── */
.review-star-picker {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 20px;
}

.review-star-btn {
  font-size: 32px;
  color: var(--border-2);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--ease), transform var(--ease);
  line-height: 1;
}

.review-star-btn.active { color: var(--gold); }
.review-star-btn:hover  { transform: scale(1.15); }

/* Avaliar button in stays */
.btn-review {
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: var(--r-full);
  font-size: 12px;
  padding: 6px 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--ease);
}

.btn-review:hover { background: var(--gold-glow); }

/* ── GALLERY CAROUSEL ── */
.gallery {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: var(--surface);
}

.gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.gallery-slide {
  flex: 0 0 100%;
  position: relative;
  height: 100%;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 16px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.72), transparent);
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10,10,15,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background var(--ease), border-color var(--ease);
  z-index: 2;
}

.gallery-arrow:hover {
  background: rgba(201,169,110,0.25);
  border-color: var(--gold);
}

.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

.gallery-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}

.gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--ease), transform var(--ease);
}

.gallery-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

.gallery-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(10,10,15,0.6);
  color: rgba(255,255,255,0.75);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--r-full);
  backdrop-filter: blur(4px);
  z-index: 2;
}

.gallery-slide img { cursor: zoom-in; }

/* ── PHOTO COUNT BADGE (room cards) ── */
.room-card-img-wrap {
  position: relative;
}

.rcb-photo-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(10,10,15,0.62);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: var(--r-full);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.12);
  z-index: 2;
}

.rcb-photo-badge svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* ── GALLERY LIGHTBOX (fullscreen) ── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 900;
  display: none;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.lightbox-overlay.open {
  display: flex;
  opacity: 1;
}

.lightbox-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) 14px 14px;
  z-index: 3;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
}

.lightbox-counter {
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  letter-spacing: 0.02em;
  background: rgba(255,255,255,0.08);
  padding: 4px 10px;
  border-radius: var(--r-full);
}

.lightbox-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-close svg { width: 16px; height: 16px; }

.lightbox-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.lightbox-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lightbox-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  touch-action: pan-y;
}

.lightbox-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 32px 16px 64px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.lightbox-arrow {
  z-index: 3;
}

.lightbox-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

/* ── FAVORITE (WISHLIST) BUTTON ── */
.btn-favorite {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(10,10,15,0.55);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  z-index: 2;
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
}

.btn-favorite svg {
  width: 16px;
  height: 16px;
  transition: transform var(--ease);
}

.btn-favorite:hover {
  border-color: var(--gold);
}

.btn-favorite.active {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(10,10,15,0.7);
}

.btn-favorite.active svg {
  transform: scale(1.1);
}

.btn-favorite-detail {
  top: max(10px, env(safe-area-inset-top));
}

/* ── PWA Install Banner ────────────────────────────────────── */
.pwa-install-bar {
  position: fixed;
  bottom: calc(68px + env(safe-area-inset-bottom));
  left: 12px;
  right: 12px;
  background: linear-gradient(135deg, #1a1a1f 0%, #111118 100%);
  border: 1px solid rgba(201, 169, 110, 0.35);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(201,169,110,0.1);
  z-index: 999;
  animation: slideUpFade 0.4s var(--ease) both;
}

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

.pwa-install-text {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
}

.pwa-install-text svg {
  color: var(--gold);
  flex-shrink: 0;
}

.pwa-install-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.pwa-btn-dismiss {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color var(--ease), color var(--ease);
}

.pwa-btn-dismiss:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--text-primary);
}

.pwa-btn-install {
  background: var(--gold);
  border: none;
  color: #0a0a0a;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity var(--ease);
  letter-spacing: 0.03em;
}

.pwa-btn-install:hover {
  opacity: 0.88;
}

/* ── Edit Booking Modal ────────────────────────────────────── */
.stay-actions {
  display: flex;
  gap: 8px;
}

.btn-stay-edit {
  background: transparent;
  border: 1px solid rgba(201, 169, 110, 0.4);
  color: var(--gold);
}

.btn-stay-edit:hover {
  background: rgba(201, 169, 110, 0.08);
  border-color: var(--gold);
}

.edit-total-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(201, 169, 110, 0.07);
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 10px;
  margin: 4px 0 2px;
}

.etp-label {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.etp-value {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--gold);
  font-weight: 600;
}

.edit-conflict-msg {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(220, 80, 80, 0.1);
  border: 1px solid rgba(220, 80, 80, 0.3);
  border-radius: 8px;
  color: #e07070;
  font-family: var(--font-sans);
  font-size: 12px;
}

/* ============================================================
   AUTH GATE — Login · Cadastro · Recuperar senha
   Tela independente, fora do fluxo de .screen / bottom-nav
   ============================================================ */
.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.auth-gate::-webkit-scrollbar { width: 0; }
.auth-gate[hidden] { display: none; }

/* ── TOP VISUAL BAND ── */
.auth-visual {
  position: relative;
  flex: 0 0 auto;
  height: 34vh;
  min-height: 220px;
  max-height: 300px;
  overflow: hidden;
}

.auth-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.auth-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,15,0.35) 0%,
    rgba(10,10,15,0.55) 55%,
    var(--bg) 100%
  );
}

.auth-brand {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gold-glow);
  background: rgba(10,10,15,0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.auth-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.2px;
}

.auth-brand-sub {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

/* ── PANEL ── */
.auth-panel {
  flex: 1;
  padding: 28px 24px calc(40px + env(safe-area-inset-bottom));
  margin-top: -18px;
  position: relative;
  z-index: 2;
}

.auth-switcher {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 3px;
  margin-bottom: 28px;
}

.auth-switch-btn {
  flex: 1;
  padding: 10px 0;
  border-radius: var(--r-full);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--text-2);
  transition: background var(--ease), color var(--ease);
}

.auth-switch-btn.active {
  background: var(--gold);
  color: #0A0A0F;
}

/* ── VIEWS ── */
.auth-view { display: none; }

.auth-view.active {
  display: block;
  animation: authViewIn var(--ease) both;
}

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

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 18px;
  transition: color var(--ease);
}

.auth-back:hover { color: var(--gold); }
.auth-back svg { width: 14px; height: 14px; }

.auth-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.3px;
  margin-bottom: 8px;
  line-height: 1.15;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 26px;
}

.auth-subtitle strong { color: var(--text); font-weight: 600; }

/* ── FORM FIELDS ── */
.auth-form { display: flex; flex-direction: column; }

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.auth-field label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-3);
}

.auth-field input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 13px 14px;
  color: var(--text);
  font-size: 14.5px;
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
  color-scheme: dark;
  width: 100%;
}

.auth-field input::placeholder { color: var(--text-3); }

.auth-field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.auth-field input.err { border-color: var(--danger); }
.auth-field input.err:focus { box-shadow: 0 0 0 3px rgba(224,82,82,0.15); }

.auth-select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 13px 14px;
  color: var(--text);
  font-size: 14.5px;
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
  color-scheme: dark;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A96E' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.auth-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.auth-select.err { border-color: var(--danger); }
.auth-select.err:focus { box-shadow: 0 0 0 3px rgba(224,82,82,0.15); }

.auth-select option { background: var(--surface); color: var(--text); }
.auth-select option[value=""] { color: var(--text-3); }

.auth-field-err {
  font-size: 11.5px;
  color: var(--danger);
  display: none;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
}

.auth-field-err.show { display: flex; }
.auth-field-err svg { width: 12px; height: 12px; flex-shrink: 0; }

.auth-input-wrap { position: relative; }
.auth-input-wrap input { padding-right: 42px; }

.auth-eye {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  border-radius: var(--r-sm);
  transition: color var(--ease);
}

.auth-eye:hover { color: var(--text-2); }
.auth-eye svg { width: 17px; height: 17px; }
.auth-eye.is-visible { color: var(--gold); }

.auth-strength {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.auth-strength-bar {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
}

.auth-strength-bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: var(--r-full);
  background: var(--danger);
  transition: width var(--ease), background var(--ease);
}

.auth-strength-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.5;
  cursor: pointer;
  user-select: none;
}

.auth-check input {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  min-width: 17px;
  border: 1px solid var(--border-2);
  border-radius: 5px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
  transition: border-color var(--ease), background var(--ease);
  margin-top: 1px;
}

.auth-check input:checked {
  background: var(--gold);
  border-color: var(--gold);
}

.auth-check input:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #0A0A0F;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.auth-check-terms { margin-bottom: 4px; }
.auth-link-inline { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

.auth-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.auth-row-between .auth-check { font-size: 12px; }

.auth-link {
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity var(--ease);
}

.auth-link:hover { opacity: 0.8; }
.auth-link-strong { font-size: 13px; }

.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--text-2);
  margin-top: 22px;
}

.auth-btn-primary {
  position: relative;
  width: 100%;
  padding: 15px;
  background: var(--gold);
  color: #0A0A0F;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background var(--ease), opacity var(--ease);
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-btn-primary:hover { background: #d4b47a; }
.auth-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.auth-btn-label { transition: opacity var(--ease); }

.auth-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(10,10,15,0.25);
  border-top-color: #0A0A0F;
  border-radius: 50%;
  display: none;
  animation: authSpin 0.7s linear infinite;
}

.auth-btn-primary.loading .auth-btn-label { opacity: 0.55; }
.auth-btn-primary.loading .auth-spinner { display: block; }

@keyframes authSpin { to { transform: rotate(360deg); } }

.auth-btn-ghost {
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  transition: border-color var(--ease), background var(--ease);
  margin-top: 8px;
}

.auth-btn-ghost:hover { border-color: var(--gold); background: var(--gold-dim); }

.auth-form-msg {
  display: none;
  align-items: flex-start;
  gap: 8px;
  background: rgba(224,82,82,0.08);
  border: 1px solid rgba(224,82,82,0.3);
  color: #e07070;
  border-radius: var(--r-sm);
  padding: 11px 13px;
  font-size: 12.5px;
  line-height: 1.5;
  margin-top: 6px;
}

.auth-form-msg.show { display: flex; }
.auth-form-msg.success {
  background: rgba(93,184,122,0.08);
  border-color: rgba(93,184,122,0.3);
  color: #5DB87A;
}

.auth-form-msg svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }

.auth-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid var(--gold-glow);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}

.auth-success-icon svg { width: 26px; height: 26px; }

#authViewCheckEmail .auth-title,
#authViewCheckEmail .auth-subtitle { text-align: center; }

.auth-boot {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-boot[hidden] { display: none; }

.auth-boot-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: var(--gold);
  animation: authBootPulse 1.4s ease-in-out infinite;
}

@keyframes authBootPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.96); }
  50%      { opacity: 1;   transform: scale(1); }
}

@media (min-width: 480px) {
  .auth-panel { padding-left: 32px; padding-right: 32px; }
}
