/* ============================================
   KOST2KOST PWA - DESIGN SYSTEM
   Floating Card · Soft UI · Warm Amber
   ============================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Background */
  --bg-page: #FAF7F2;
  --bg-card: #FFFFFF;
  --bg-soft: #F5F4EF;
  --bg-amber-soft: #FAEEDA;
  --bg-amber-lighter: #FAF3E6;

  /* Primary - Amber */
  --primary: #EF9F27;
  --primary-dark: #BA7517;
  --primary-darker: #854F0B;
  --primary-light: #FAC775;

  /* Text */
  --text-primary: #2C2C2A;
  --text-secondary: #5F5E5A;
  --text-tertiary: #888780;
  --text-muted: #B4B2A9;

  /* Semantic */
  --success: #1D9E75;
  --success-bg: #E1F5EE;
  --success-text: #0F6E56;
  --danger: #E24B4A;
  --danger-bg: #FCEBEB;
  --danger-text: #A32D2D;
  --warning: #EF9F27;
  --warning-bg: #FAEEDA;
  --warning-text: #854F0B;
  --info: #378ADD;
  --info-bg: #E6F1FB;
  --info-text: #185FA5;

  /* Shadows */
  --shadow-xs: 0 1px 4px rgba(139, 111, 71, 0.06);
  --shadow-sm: 0 2px 10px rgba(139, 111, 71, 0.08);
  --shadow-md: 0 4px 16px rgba(139, 111, 71, 0.10);
  --shadow-lg: 0 8px 24px rgba(139, 111, 71, 0.12);
  --shadow-xl: 0 12px 32px rgba(139, 111, 71, 0.15);
  --shadow-amber: 0 4px 12px rgba(186, 117, 23, 0.3);
  --shadow-amber-lg: 0 6px 20px rgba(186, 117, 23, 0.35);

  /* Border Radius */
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-2xl: 28px;
  --radius-pill: 999px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Transition */
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-page);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: contain;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- APP LAYOUT ---------- */
.app-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: var(--bg-page);
  padding-bottom: 100px;
}

.app-content {
  padding: 16px 14px 0;
}

/* ---------- STATUS BAR (mock) ---------- */
.status-bar {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 600;
}

.status-bar-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* ============================================
   COMPONENT: HEADER CHIP
   ============================================ */
.header-chip {
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-amber-soft), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--primary-darker);
  font-weight: 600;
  flex-shrink: 0;
  overflow: hidden;
}

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

.avatar-lg {
  width: 84px;
  height: 84px;
  font-size: 24px;
}

.greeting-label {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 2px;
}

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

.icon-btn {
  width: 38px;
  height: 38px;
  background: var(--bg-amber-lighter);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-darker);
  position: relative;
  transition: var(--transition);
}

.icon-btn:hover,
.icon-btn:active {
  background: var(--bg-amber-soft);
  transform: scale(0.96);
}

.icon-btn .badge-dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--bg-amber-lighter);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   COMPONENT: HERO CARD
   ============================================ */
.hero-card {
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}

.hero-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

/* ===== HERO CAROUSEL SLIDES =====
   Track yang berisi semua slide, di-translate horizontal */
.hero-slides {
  display: flex;
  width: 100%;
  height: 100%;
  /* Smooth easing cubic-bezier untuk transition halus */
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.hero-slide {
  position: relative;
  min-width: 100%;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}

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

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
}

/* Badge per-slide ada di dalam .hero-slide */
.hero-slide .hero-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-darker);
  font-size: 10px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
  z-index: 2;
  backdrop-filter: blur(10px);
}

.hero-dots {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  gap: 4px;
  z-index: 3;
}

.hero-dots span {
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transition: var(--transition);
  cursor: pointer;
}

.hero-dots span.active {
  width: 18px;
  border-radius: 3px;
  background: #fff;
}

.hero-content {
  padding: 16px 18px 18px;
}

.hero-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.hero-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
}

.hero-link svg {
  width: 14px;
  height: 14px;
  transition: var(--transition);
}

.hero-link:hover svg {
  transform: translateX(3px);
}

/* ============================================
   COMPONENT: SECTION HEADER
   ============================================ */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 4px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.section-badge {
  font-size: 11px;
  color: var(--primary-dark);
  background: var(--bg-amber-soft);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.section-link {
  font-size: 12px;
  color: var(--primary-dark);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-link svg {
  width: 12px;
  height: 12px;
}

/* ============================================
   COMPONENT: FACILITY GRID
   ============================================ */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.facility-card {
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  padding: 14px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.facility-card:active {
  transform: scale(0.96);
  box-shadow: var(--shadow-xs);
}

.facility-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-amber-soft);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
}

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

.facility-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

/* ============================================
   COMPONENT: ROOM CARD
   ============================================ */
.room-card {
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 14px;
  transition: var(--transition);
}

.room-card:hover {
  box-shadow: var(--shadow-lg);
}

.room-card.occupied {
  opacity: 0.75;
}

.room-image {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.room-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.status-available {
  background: var(--success);
  color: #fff;
}

.status-available::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
}

.status-occupied {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.room-content {
  padding: 14px 16px 16px;
}

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

.room-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.room-floor {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.room-price {
  text-align: right;
}

.room-price-label {
  font-size: 9px;
  color: var(--text-tertiary);
  margin-bottom: 2px;
}

.room-price-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-dark);
}

.room-price-unit {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-tertiary);
}

.room-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.amenities-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.amenity-chip {
  font-size: 10px;
  color: var(--text-secondary);
  background: var(--bg-soft);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.amenity-chip svg {
  width: 12px;
  height: 12px;
}

/* ============================================
   COMPONENT: BUTTON
   ============================================ */
.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 13px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-amber);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  box-shadow: var(--shadow-amber-lg);
  transform: translateY(-1px);
}

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

.btn-primary:disabled,
.btn-disabled {
  background: var(--bg-soft);
  color: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
}

.btn-secondary {
  width: 100%;
  background: var(--bg-card);
  color: var(--primary-dark);
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--bg-amber-soft);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--bg-amber-lighter);
}

/* ============================================
   COMPONENT: BOTTOM NAVIGATION
   ============================================ */
.bottom-nav {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 452px;
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-xl);
  padding: 10px 8px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(20px);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  color: var(--text-tertiary);
  transition: var(--transition);
  min-width: 60px;
}

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

.nav-item span {
  font-size: 10px;
  font-weight: 500;
}

.nav-item.active {
  background: linear-gradient(135deg, var(--bg-amber-soft), var(--primary-light));
  color: var(--primary-darker);
}

.nav-item.active span {
  font-weight: 700;
}

/* ============================================
   COMPONENT: STAT CARDS
   ============================================ */
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.stat-card {
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  padding: 14px;
}

.stat-icon-box {
  width: 36px;
  height: 36px;
  background: var(--bg-amber-soft);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.stat-icon-box svg {
  width: 18px;
  height: 18px;
}

.stat-icon-box.success {
  background: var(--success-bg);
  color: var(--success-text);
}

.stat-icon-box.danger {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.stat-icon-box.info {
  background: var(--info-bg);
  color: var(--info-text);
}

.stat-label {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 2px;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ============================================
   COMPONENT: TIMELINE / HISTORY
   ============================================ */
.history-card {
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.history-card:active {
  transform: scale(0.98);
}

.history-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.history-icon.paid {
  background: var(--success-bg);
  color: var(--success-text);
}

.history-icon.pending {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.history-icon.failed {
  background: var(--danger-bg);
  color: var(--danger-text);
}

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

.history-body {
  flex: 1;
  min-width: 0;
}

.history-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.history-meta {
  font-size: 11px;
  color: var(--text-tertiary);
}

.history-amount {
  text-align: right;
}

.history-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.history-status {
  font-size: 10px;
  font-weight: 600;
  margin-top: 2px;
}

.history-status.paid { color: var(--success-text); }
.history-status.pending { color: var(--warning-text); }
.history-status.failed { color: var(--danger-text); }

/* ============================================
   COMPONENT: FILTER TABS
   ============================================ */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
}

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

.filter-tab {
  padding: 8px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.filter-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: var(--shadow-amber);
}

/* ============================================
   COMPONENT: PAYMENT METHOD
   ============================================ */
.payment-method {
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
  border: 2px solid transparent;
}

.payment-method:active {
  transform: scale(0.98);
}

.payment-method.selected {
  border-color: var(--primary);
  background: var(--bg-amber-lighter);
}

.payment-logo {
  width: 50px;
  height: 36px;
  background: var(--bg-soft);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.payment-logo.bca { background: #003874; color: #fff; }
.payment-logo.mandiri { background: #003D7A; color: #FFD700; }
.payment-logo.bni { background: #F36F21; color: #fff; }
.payment-logo.bri { background: #00529C; color: #fff; }
.payment-logo.gopay { background: #00AED6; color: #fff; }
.payment-logo.ovo { background: #4C2A86; color: #fff; }
.payment-logo.dana { background: #118EEA; color: #fff; }

.payment-info {
  flex: 1;
}

.payment-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.payment-detail {
  font-size: 11px;
  color: var(--text-tertiary);
}

.radio-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.payment-method.selected .radio-circle {
  border-color: var(--primary);
}

.payment-method.selected .radio-circle::after {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
}

/* ============================================
   COMPONENT: SUMMARY CARD
   ============================================ */
.summary-card {
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 16px;
}

.summary-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
}

.summary-row .label {
  color: var(--text-secondary);
}

.summary-row .value {
  font-weight: 600;
  color: var(--text-primary);
}

.summary-divider {
  height: 1px;
  background: var(--bg-soft);
  margin: 8px 0;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  font-size: 15px;
}

.summary-total .label {
  font-weight: 600;
  color: var(--text-primary);
}

.summary-total .value {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-dark);
}

/* ============================================
   COMPONENT: PROFILE
   ============================================ */
.profile-header {
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  text-align: center;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.profile-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--bg-amber-soft) 0%, transparent 70%);
  z-index: 0;
}

.profile-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
  z-index: 1;
}

.profile-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.profile-meta {
  font-size: 12px;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-amber-soft);
  color: var(--primary-darker);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

.menu-group {
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 14px;
}

.menu-group-title {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 16px 6px;
  font-weight: 700;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  transition: var(--transition);
  cursor: pointer;
  border-top: 1px solid var(--bg-soft);
}

.menu-item:first-of-type {
  border-top: none;
}

.menu-item:active {
  background: var(--bg-soft);
}

.menu-item-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-amber-soft);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  flex-shrink: 0;
}

.menu-item-icon svg {
  width: 18px;
  height: 18px;
}

.menu-item-icon.danger {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.menu-item-body {
  flex: 1;
}

.menu-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.menu-item-desc {
  font-size: 11px;
  color: var(--text-tertiary);
}

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

.menu-item-chevron svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   COMPONENT: EMPTY STATE
   ============================================ */
.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-icon {
  width: 80px;
  height: 80px;
  background: var(--bg-amber-soft);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary-dark);
}

.empty-icon svg {
  width: 36px;
  height: 36px;
}

.empty-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.empty-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   COMPONENT: PAGE HEADER (back navigation)
   ============================================ */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.back-btn {
  width: 38px;
  height: 38px;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: var(--transition);
}

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

.back-btn svg {
  width: 18px;
  height: 18px;
}

.page-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.15s; }
.animate-in:nth-child(4) { animation-delay: 0.2s; }
.animate-in:nth-child(5) { animation-delay: 0.25s; }
.animate-in:nth-child(6) { animation-delay: 0.3s; }

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

.skeleton {
  background: linear-gradient(90deg, var(--bg-soft) 0%, var(--bg-amber-lighter) 50%, var(--bg-soft) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.w-full { width: 100%; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 640px) {
  .app-shell {
    border-left: 1px solid var(--bg-soft);
    border-right: 1px solid var(--bg-soft);
    box-shadow: var(--shadow-xl);
  }
}

/* PWA standalone */
@media (display-mode: standalone) {
  body {
    user-select: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   HOME — ADAPTIVE COMPONENTS
   ═══════════════════════════════════════════════════════════════════ */

/* ── Status Card (active tenant) ──────────────────────────────── */
.status-card {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--bg-amber-lighter) 100%);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(239, 159, 39, 0.10);
}
.status-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(239, 159, 39, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.status-card.status-warning {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--warning-bg) 100%);
}
.status-card.status-critical {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--danger-bg) 100%);
  border-color: rgba(226, 75, 74, 0.15);
}
.status-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  position: relative;
}
.status-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-amber);
}
.status-card-icon svg { width: 20px; height: 20px; }
.status-card.status-critical .status-card-icon { background: var(--danger); box-shadow: 0 4px 12px rgba(226, 75, 74, 0.3); }
.status-card-title-row { flex: 1; min-width: 0; }
.status-card-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-tertiary);
  font-weight: 700;
  margin-bottom: 2px;
}
.status-card-room {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}
.status-card-body { position: relative; }
.status-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-sm);
  padding: 12px;
  backdrop-filter: blur(8px);
}
.status-meta-item { min-width: 0; }
.status-meta-label {
  font-size: 10px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
  margin-bottom: 4px;
}
.status-meta-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status-meta-value .text-danger { color: var(--danger-text); }

/* ── Welcome CTA (guest / member tanpa kontrak) ──────────────── */
.welcome-cta {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px dashed rgba(239, 159, 39, 0.3);
}
.welcome-cta-guest {
  background: linear-gradient(135deg, var(--bg-amber-soft) 0%, var(--bg-amber-lighter) 100%);
  border: none;
}
.welcome-cta-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-amber);
}
.welcome-cta-icon svg { width: 22px; height: 22px; }
.welcome-cta-body { flex: 1; min-width: 0; }
.welcome-cta-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.welcome-cta-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.welcome-cta-btn {
  padding: 9px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-amber);
  transition: var(--transition);
  flex-shrink: 0;
}
.welcome-cta-btn:hover { background: var(--primary-dark); }

/* ── Bill Alert ──────────────────────────────────────────────── */
.bill-alert {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-amber-lighter) 100%);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
  position: relative;
}
.bill-alert.bill-warning {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--warning-bg) 100%);
  border-left-color: var(--warning);
}
.bill-alert.bill-critical {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--danger-bg) 100%);
  border-left-color: var(--danger);
  animation: pulseDanger 2s ease-in-out infinite;
}
@keyframes pulseDanger {
  0%, 100% { box-shadow: var(--shadow-sm); }
  50%      { box-shadow: 0 0 0 4px rgba(226, 75, 74, 0.12), var(--shadow-md); }
}
.bill-alert-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.bill-alert-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bill-alert-label svg {
  width: 14px;
  height: 14px;
  color: var(--primary-dark);
}
.bill-alert.bill-critical .bill-alert-label svg { color: var(--danger); }
.bill-alert-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background: var(--danger);
  color: #fff;
  letter-spacing: 0.5px;
}
.bill-alert.bill-warning .bill-alert-badge { background: var(--warning); color: #fff; }
.bill-alert-amount {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
  font-feature-settings: 'tnum';
}
.bill-alert.bill-critical .bill-alert-amount { color: var(--danger-text); }
.bill-alert-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.bill-alert-paid {
  background: rgba(29, 158, 117, 0.1);
  color: var(--success-text);
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  margin-bottom: 10px;
}
.bill-alert-paid small { font-size: 11px; font-weight: 600; }
.bill-alert-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  box-shadow: var(--shadow-amber);
  transition: var(--transition);
}
.bill-alert-btn:hover { background: var(--primary-dark); }
.bill-alert.bill-critical .bill-alert-btn { background: var(--danger); box-shadow: 0 4px 12px rgba(226, 75, 74, 0.3); }

/* ── Bill OK (lunas) ─────────────────────────────────────────── */
.bill-ok {
  background: var(--success-bg);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.bill-ok-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bill-ok-icon svg { width: 18px; height: 18px; }
.bill-ok-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--success-text);
  margin-bottom: 2px;
}
.bill-ok-desc {
  font-size: 11px;
  color: var(--success-text);
  opacity: 0.85;
}

/* ── Quick Actions ───────────────────────────────────────────── */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.quick-action {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.quick-action:active { transform: scale(0.96); }
.quick-action-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.quick-action-icon svg { width: 18px; height: 18px; }
.quick-amber   { background: var(--primary);    box-shadow: var(--shadow-amber); }
.quick-info    { background: var(--info);       box-shadow: 0 3px 10px rgba(55, 138, 221, 0.3); }
.quick-success { background: var(--success);    box-shadow: 0 3px 10px rgba(29, 158, 117, 0.3); }
.quick-danger  { background: var(--danger);     box-shadow: 0 3px 10px rgba(226, 75, 74, 0.3); }
.quick-action-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Helper text utilities */
.text-danger { color: var(--danger-text) !important; }

