/* ============================================================
   PhòngTrọ — Premium Dark Mode Stylesheet
   Vietnamese Room Rental Platform
   Font: Outfit (Google Fonts) + Material Symbols Rounded
   ============================================================ */

/* ============================================================
   0. GOOGLE FONTS
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Backgrounds — Light / White */
  --bg-deep: #ffffff;
  --bg-base: #f8fafc;
  --bg-surface: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-elevated: #f1f5f9;

  /* Glass — Dark alpha for light theme */
  --glass-bg: rgba(0, 0, 0, 0.02);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-border-hover: rgba(0, 0, 0, 0.15);

  /* Accent - Indigo/Violet gradient */
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-dark: #4338ca;
  --accent-glow: rgba(99, 102, 241, 0.2);
  --accent-2: #8b5cf6;
  --accent-3: #0891b2;
  --accent-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
  --accent-gradient-2: linear-gradient(135deg, #6366f1, #06b6d4);

  /* Text — Dark text on light bg */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-price: #059669;

  /* Status */
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --success: #10b981;
  --warning: #f59e0b;

  /* Radius */
  --r-xs: 8px;
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;

  /* Shadows — Lighter for white theme */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.1);
  --shadow-glow-hover: 0 0 50px rgba(99, 102, 241, 0.18);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 0.15s;
  --t-base: 0.25s;
  --t-slow: 0.4s;

  /* Layout */
  --topbar-h: 72px;
  --max-w: 1320px;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-base) var(--ease);
}

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  outline: none;
  transition: all var(--t-base) var(--ease);
}

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

ul,
ol {
  list-style: none;
}

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

::selection {
  background-color: var(--accent);
  color: #fff;
}

::-moz-selection {
  background-color: var(--accent);
  color: #fff;
}

/* ============================================================
   3. BACKGROUND EFFECTS — Mesh & Glow Orbs
   ============================================================ */
.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(99, 102, 241, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(6, 182, 212, 0.03) 0%, transparent 55%),
    radial-gradient(ellipse 70% 40% at 50% 50%, rgba(139, 92, 246, 0.02) 0%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
  background-size: cover;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
  will-change: transform;
}

.glow-orb--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.1) 50%, transparent 70%);
  top: -10%;
  left: -5%;
  animation: orbFloat1 18s ease-in-out infinite;
}

.glow-orb--2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 70%);
  bottom: -10%;
  right: -5%;
  animation: orbFloat2 22s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(40px, 30px) scale(1.05);
  }
  50% {
    transform: translate(20px, -20px) scale(0.95);
  }
  75% {
    transform: translate(-30px, 15px) scale(1.02);
  }
}

@keyframes orbFloat2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(-35px, -25px) scale(0.97);
  }
  50% {
    transform: translate(-15px, 30px) scale(1.04);
  }
  75% {
    transform: translate(25px, -10px) scale(0.98);
  }
}

/* ============================================================
   4. TYPOGRAPHY
   ============================================================ */
h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ============================================================
   5. TOPBAR (#topbar)
   ============================================================ */
#topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--t-base) var(--ease);
}

#topbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--glass-border-hover);
  box-shadow: var(--shadow);
}

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

.topbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  cursor: pointer;
}

.topbar__logo-icon {
  font-size: 36px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.topbar__logo-text {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.topbar__logo-accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-full);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--t-base) var(--ease);
  position: relative;
  white-space: nowrap;
}

.topbar__link:hover {
  color: var(--text-primary);
  background: var(--glass-bg);
}

.topbar__link.active {
  color: var(--accent-hover);
  background: rgba(99, 102, 241, 0.1);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

.topbar__link .material-symbols-rounded {
  font-size: 20px;
}

/* Hamburger */
.topbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-xs);
  cursor: pointer;
  gap: 5px;
  padding: 0;
  background: transparent;
  transition: background var(--t-base) var(--ease);
}

.topbar__hamburger:hover {
  background: var(--glass-bg);
}

.topbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--t-base) var(--ease);
  transform-origin: center;
}

.topbar__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.topbar__hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.topbar__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease);
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ============================================================
   6. MAIN CONTENT (#app)
   ============================================================ */
#app {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--topbar-h));
  padding-top: calc(var(--topbar-h) + 32px);
  padding-bottom: 80px;
}

/* ============================================================
   7. CONTAINER
   ============================================================ */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   8. HERO SECTION
   ============================================================ */
.hero {
  text-align: center;
  margin-bottom: 56px;
  animation: fadeInUp var(--t-slow) var(--ease) both;
}


.hero__title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero__subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   9. FILTER TOOLBAR
   ============================================================ */
.filter-panel {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
  animation: fadeInUp var(--t-slow) var(--ease) 0.1s both;
}

.filter-panel__tabs {
  display: inline-flex;
  gap: 0;
  margin-bottom: 20px;
  background: var(--bg-surface);
  border-radius: var(--r-sm);
  padding: 4px;
}

.filter-tab {
  padding: 12px 24px;
  border-radius: var(--r-xs);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-base) var(--ease);
  border: none;
  background: none;
  white-space: nowrap;
}

.filter-tab:hover {
  color: var(--text-primary);
}

.filter-tab.active {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.filter-panel__buildings {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}

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

.filter-panel__search-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-panel__search-row .search-box {
  flex: 0 1 40%;
  min-width: 180px;
}

.filter-panel__type-chips {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.chip--type {
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--glass-border);
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 500;
  transition: all var(--t-base) var(--ease);
  white-space: nowrap;
}

.chip--type:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chip--type.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}


/* ============================================================
   10. CHIPS
   ============================================================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: var(--r-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--t-base) var(--ease);
  white-space: nowrap;
  user-select: none;
}

.chip:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
}

.chip.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.3);
  font-weight: 600;
}

.chip .material-symbols-rounded {
  font-size: 18px;
}

.chip--type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Building chips */
.chip--building {
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  scroll-snap-align: start;
  flex-shrink: 0;
}

.chip--building:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  color: var(--accent);
}

.chip--building.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.15);
}

/* ============================================================
   11. SEARCH BOX
   ============================================================ */
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-full);
  padding: 10px 20px;
  max-width: 320px;
  width: 100%;
  transition: all var(--t-base) var(--ease);
}

.search-box:focus-within {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.12);
}

.search-box__icon {
  color: var(--text-muted);
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
}

.search-box__icon .material-symbols-rounded {
  font-size: 20px;
}

.search-box__input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  flex: 1;
  font-size: 0.9rem;
  outline: none;
  min-width: 0;
}

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

.search-box__clear {
  display: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  font-size: 16px;
  transition: all var(--t-fast) var(--ease);
}

.search-box__clear:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.search-box__clear.visible {
  display: flex;
}

/* ============================================================
   12. SORT DROPDOWN
   ============================================================ */
.sort-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-full);
  color: var(--text-secondary);
  padding: 8px 44px 8px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--t-base) var(--ease);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  min-width: 140px;
  flex-shrink: 0;
}

.sort-select:hover {
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
}

.sort-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

.sort-select option {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* ============================================================
   13. ROOM CARDS GRID
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: all var(--t-base) var(--ease);
  cursor: pointer;
  position: relative;
}

.card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-glow-hover);
}

.card__img {
  height: 240px;
  overflow: hidden;
  position: relative;
}

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

.card:hover .card__img img {
  transform: scale(1.1);
}


.card__body {
  padding: 20px;
}

.card__title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-price);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.card__price small {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 12px;
  flex-wrap: wrap;
}

.card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card__meta .material-symbols-rounded {
  font-size: 16px;
  color: var(--accent-3);
}


/* Card reveal animation */
.card.animate-in {
  animation: cardReveal var(--t-slow) var(--ease) both;
}

.card.animate-in:nth-child(1) { animation-delay: 0s; }
.card.animate-in:nth-child(2) { animation-delay: 0.06s; }
.card.animate-in:nth-child(3) { animation-delay: 0.12s; }
.card.animate-in:nth-child(4) { animation-delay: 0.18s; }
.card.animate-in:nth-child(5) { animation-delay: 0.24s; }
.card.animate-in:nth-child(6) { animation-delay: 0.3s; }
.card.animate-in:nth-child(7) { animation-delay: 0.36s; }
.card.animate-in:nth-child(8) { animation-delay: 0.42s; }
.card.animate-in:nth-child(9) { animation-delay: 0.48s; }

/* ============================================================
   14. CONTACT / CTA BANNER
   ============================================================ */
.cta-banner {
  margin-top: 56px;
  border-radius: var(--r-lg);
  padding: 48px 40px;
  background: var(--accent-gradient);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 120px at 15% 30%, rgba(255, 255, 255, 0.12) 0%, transparent 60%),
    radial-gradient(circle 80px at 85% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle 50px at 40% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

/* Red variant */
.cta-banner--red {
  background: #fef2f2;
  border: 2px solid #ef4444;
  padding: 36px 32px;
}

.cta-banner--red::before {
  display: none;
}

.cta-banner__icon {
  font-size: 48px;
  color: #fff;
  margin-bottom: 16px;
  display: inline-block;
  animation: pulse 2.5s ease-in-out infinite;
}

.cta-banner__icon .material-symbols-rounded {
  font-size: 48px;
}

.cta-banner--red .cta-banner__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  animation: pulse 2.5s ease-in-out infinite;
}

.cta-banner--red .cta-banner__icon .material-symbols-rounded {
  font-size: 28px;
}

.cta-banner__desc {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 20px;
}

.cta-banner__desc strong {
  color: #1e293b;
  font-weight: 700;
}

.cta-banner__btn-red {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ef4444;
  color: #fff;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.cta-banner__btn-red:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(239, 68, 68, 0.4);
}

.cta-banner__btn-red .material-symbols-rounded {
  font-size: 20px;
}

.cta-banner__text {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.cta-banner__text strong {
  font-weight: 700;
}

.cta-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--accent-dark);
  padding: 14px 32px;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--t-base) var(--ease);
  position: relative;
  z-index: 1;
  border: none;
}

.cta-banner__btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.cta-banner__btn .material-symbols-rounded {
  font-size: 20px;
}

/* ============================================================
   15. DETAIL PAGE
   ============================================================ */
.detail {
  max-width: 960px;
  margin: 0 auto;
  animation: fadeInUp var(--t-slow) var(--ease) both;
}

.detail__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 24px;
  padding: 8px 16px;
  border-radius: var(--r-xs);
  transition: all var(--t-base) var(--ease);
  font-size: 0.9rem;
}

.detail__back:hover {
  color: var(--text-primary);
  background: var(--glass-bg);
}

.detail__back .material-symbols-rounded {
  font-size: 20px;
}

.detail__top {
  margin-bottom: 32px;
}

.detail__title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.detail__badges {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.detail__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--r-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
}

.detail__badge .material-symbols-rounded {
  font-size: 16px;
}

/* Gallery */
.detail__gallery {
  margin-bottom: 32px;
}

.detail__gallery-main {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid var(--glass-border);
}

.detail__gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

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

.detail__gallery-strip {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--glass-border-hover) transparent;
}

.detail__thumb {
  width: 80px;
  height: 60px;
  border-radius: var(--r-sm);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: all var(--t-base) var(--ease);
}

.detail__thumb:hover {
  opacity: 0.8;
}

.detail__thumb.active {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
}

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

/* Price Box */
.detail__price-box {
  background: var(--bg-card);
  border-radius: var(--r);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(99, 102, 241, 0.15);
  box-shadow: var(--shadow-glow);
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.detail__price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-price);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.detail__price small {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Info Grid */
.detail__info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.detail__info-item {
  background: var(--bg-card);
  border-radius: var(--r);
  padding: 16px;
  border: 1px solid var(--glass-border);
  transition: border-color var(--t-base) var(--ease);
}

.detail__info-item:hover {
  border-color: var(--glass-border-hover);
}

.detail__info-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 4px;
}

.detail__info-value {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
}

/* Sections */
.detail__section {
  margin-bottom: 32px;
}

.detail__section-title {
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
}

.detail__section-title .material-symbols-rounded {
  font-size: 22px;
  color: var(--accent);
}

.detail__desc {
  color: var(--text-secondary);
  line-height: 1.8;
  background: var(--bg-card);
  border-radius: var(--r);
  padding: 24px;
  border: 1px solid var(--glass-border);
  white-space: pre-line;
}

.detail__desc ul {
  padding-left: 20px;
  margin: 12px 0;
}

.detail__desc li {
  position: relative;
  padding-left: 8px;
  margin-bottom: 8px;
  list-style: disc;
  color: var(--text-secondary);
}

.detail__desc li::marker {
  color: var(--accent);
}

/* Contact */
.detail__contact {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--r);
  padding: 32px 24px;
  text-align: center;
}

.detail__contact p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.detail__contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gradient);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--t-base) var(--ease);
}

.detail__contact-btn:hover {
  box-shadow: var(--shadow-glow-hover);
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.detail__contact-btn .material-symbols-rounded {
  font-size: 20px;
}

/* Video */
.detail__video {
  margin-bottom: 32px;
}

.detail__video iframe,
.detail__video video {
  width: 100%;
  border-radius: var(--r);
  aspect-ratio: 16 / 9;
  border: 1px solid var(--glass-border);
}

/* Note / Warning */
.detail__note {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--r);
  padding: 16px 20px;
  margin-bottom: 32px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--warning);
  font-size: 0.9rem;
}

.detail__note .material-symbols-rounded {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   16. ADMIN LOGIN (AUTH)
   ============================================================ */
.auth {
  min-height: calc(100vh - var(--topbar-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth__card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 48px;
  max-width: 420px;
  width: 100%;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  animation: fadeInUp var(--t-slow) var(--ease) both;
  position: relative;
}

.auth__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.25);
}

.auth__icon .material-symbols-rounded {
  font-size: 32px;
  color: #fff;
}

.auth__title {
  text-align: center;
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.auth__subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 0.9rem;
}

.auth__error {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.2);
  border-radius: var(--r-xs);
  padding: 12px 16px;
  color: var(--danger);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.auth__error.visible {
  display: flex;
}

.auth__error .material-symbols-rounded {
  font-size: 20px;
  flex-shrink: 0;
}

.auth__back {
  display: block;
  text-align: center;
  color: var(--text-secondary);
  margin-top: 24px;
  font-size: 0.85rem;
  transition: color var(--t-base) var(--ease);
}

.auth__back:hover {
  color: var(--text-primary);
}

/* ============================================================
   17. FORM FIELDS
   ============================================================ */
.field {
  margin-bottom: 20px;
}

.field__label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.field__input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: all var(--t-base) var(--ease);
}

.field__input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.1);
}

.field__icon {
  padding: 0 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.field__icon .material-symbols-rounded {
  font-size: 20px;
}

.field__input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 14px 16px;
  padding-left: 0;
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
  min-width: 0;
}

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

.field__toggle {
  padding: 0 14px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: color var(--t-fast) var(--ease);
}

.field__toggle:hover {
  color: var(--text-primary);
}

.field__toggle .material-symbols-rounded {
  font-size: 20px;
}

.field__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  padding: 14px 44px 14px 16px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--t-base) var(--ease);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.field__select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.1);
}

.field__select option {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.field__textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  padding: 14px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  line-height: 1.6;
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.field__textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.1);
}

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

.field__hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-style: italic;
}

/* ============================================================
   18. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--t-base) var(--ease);
  border: none;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn .material-symbols-rounded {
  font-size: 20px;
}

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

.btn--primary:hover {
  filter: brightness(1.15);
  box-shadow: var(--shadow-glow-hover);
  transform: translateY(-1px);
}

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

.btn--danger:hover {
  background: var(--danger-hover);
  box-shadow: 0 0 24px rgba(244, 63, 94, 0.2);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}

.btn--ghost:hover {
  background: var(--glass-bg);
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
}

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

.btn--sm {
  padding: 8px 16px;
  font-size: 0.8rem;
  border-radius: var(--r-xs);
}

.btn--sm .material-symbols-rounded {
  font-size: 18px;
}

.btn--icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--r-xs);
  justify-content: center;
}

.btn--icon.btn--sm {
  width: 34px;
  height: 34px;
}

/* ============================================================
   19. ADMIN DASHBOARD
   ============================================================ */
.admin {
  max-width: var(--max-w);
  margin: 0 auto;
  animation: fadeInUp var(--t-slow) var(--ease) both;
}

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

.admin__title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.admin__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* Stats Grid */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.stat {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 24px;
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
  transition: all var(--t-base) var(--ease);
}

.stat:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}

.stat::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  top: -30px;
  right: -30px;
  opacity: 0.06;
  pointer-events: none;
}

.stat__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
}

.stat__icon .material-symbols-rounded {
  font-size: 24px;
}

.stat__icon--rooms {
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent);
}

.stat:nth-child(1)::after {
  background: var(--accent);
}

.stat__icon--active {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
}

.stat__icon--expired {
  background: rgba(244, 63, 94, 0.12);
  color: var(--danger);
}

.stat__icon--views {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-3);
}

.stat__number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat__label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Admin Tabs Navigation */
.admin-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.admin-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  background: var(--bg-card);
  border: 2px solid var(--glass-border);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all var(--t-base) var(--ease);
  position: relative;
}

.admin-tab:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.admin-tab.active {
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.12);
}

.admin-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 20%;
  right: 20%;
  height: 3px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
}

.admin-tab__icon {
  font-size: 28px;
  color: var(--text-secondary);
  transition: color var(--t-base) var(--ease);
}

.admin-tab__icon .material-symbols-rounded {
  font-size: 28px;
}

.admin-tab.active .admin-tab__icon,
.admin-tab:hover .admin-tab__icon {
  color: var(--accent);
}

.admin-tab__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  transition: color var(--t-base) var(--ease);
}

.admin-tab.active .admin-tab__label {
  color: var(--text-primary);
}

.admin-tab__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

/* Admin Panel Content */
.admin-panel {
  animation: fadeInUp 0.3s var(--ease);
}

.admin-panel.hidden {
  display: none;
}

/* Admin Search Panel */
.admin-search-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-search-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Room List */
.room-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* Bulk toolbar */
.bulk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  margin-bottom: 12px;
}

.bulk-toolbar__check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  user-select: none;
}

.bulk-toolbar__check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Room item checkbox */
.room-item__checkbox {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.room-item__checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.room-item {
  background: var(--bg-card);
  border-radius: var(--r);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--glass-border);
  transition: all var(--t-base) var(--ease);
}

.room-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--glass-border-hover);
}

.room-item__thumb {
  width: 72px;
  height: 56px;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
}

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

.room-item__info {
  flex: 1;
  min-width: 0;
}

.room-item__title {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-item__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.room-item__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.room-item__meta .material-symbols-rounded {
  font-size: 14px;
}

.room-item__price {
  font-weight: 800;
  color: var(--text-price);
  font-size: 1.1rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.room-item__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}


/* Empty State */
.empty {
  text-align: center;
  padding: 64px 24px;
}

.empty__icon {
  font-size: 64px;
  color: var(--text-muted);
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty__icon .material-symbols-rounded {
  font-size: 64px;
}

.empty__text {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 1rem;
}

/* ============================================================
   20. ADMIN ROOM FORM
   ============================================================ */
.form-page {
  max-width: 720px;
  margin: 0 auto;
  animation: fadeInUp var(--t-slow) var(--ease) both;
}

.form-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 32px;
  border: 1px solid var(--glass-border);
}

.form-card__title {
  font-weight: 800;
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.form-card__subtitle {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--glass-border);
  border-radius: var(--r);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all var(--t-base) var(--ease);
  position: relative;
}

.upload-zone:hover {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.03);
}

.upload-zone.dragover {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.05);
  box-shadow: 0 0 32px rgba(99, 102, 241, 0.08);
}

.upload-zone__icon {
  font-size: 48px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.upload-zone__icon .material-symbols-rounded {
  font-size: 48px;
}

.upload-zone__text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.upload-zone__hint {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Image Previews */
.previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.preview {
  position: relative;
  border-radius: var(--r-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--glass-border);
  transition: all var(--t-base) var(--ease);
}

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

.preview__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--danger);
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all var(--t-fast) var(--ease);
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.preview__remove .material-symbols-rounded {
  font-size: 16px;
}

.preview:hover .preview__remove {
  opacity: 1;
}

.preview.dragging {
  opacity: 0.5;
  outline: 2px dashed var(--accent);
  outline-offset: 2px;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
}


.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch__slider {
  position: absolute;
  inset: 0;
  background: var(--glass-border);
  border-radius: 24px;
  cursor: pointer;
  transition: all var(--t-base) var(--ease);
}

.toggle-switch__slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: all var(--t-base) var(--ease);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-switch__slider {
  background: var(--accent);
}

.toggle-switch input:checked + .toggle-switch__slider::before {
  transform: translateX(20px);
}

.toggle-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}


.video-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.video-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  transition: all var(--t-base) var(--ease);
}

.video-item:hover {
  border-color: var(--glass-border-hover);
}


.video-item__name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-item__size {
  font-size: 0.75rem;
  color: var(--text-muted);
}



/* Category selector styling */
.field__select optgroup {
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================================
   21. TOAST NOTIFICATIONS
   ============================================================ */
#toasts {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--r-sm);
  min-width: 300px;
  max-width: 420px;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  animation: toastIn var(--t-slow) var(--ease-spring) both;
  pointer-events: all;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.toast--success {
  border-left: 3px solid var(--success);
}

.toast--error {
  border-left: 3px solid var(--danger);
}

.toast--info {
  border-left: 3px solid var(--accent);
}

.toast .material-symbols-rounded {
  flex-shrink: 0;
  font-size: 22px;
}

.toast--success .material-symbols-rounded {
  color: var(--success);
}

.toast--error .material-symbols-rounded {
  color: var(--danger);
}

.toast--info .material-symbols-rounded {
  color: var(--accent);
}

.toast__msg {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.toast.removing {
  animation: toastOut var(--t-base) var(--ease) forwards;
}

@keyframes toastIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

/* ============================================================
   22. LIGHTBOX
   ============================================================ */
.lb {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease);
}

.lb.open {
  opacity: 1;
  pointer-events: all;
}

.lb__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--t-base) var(--ease);
  z-index: 2;
}

.lb__close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.lb__close .material-symbols-rounded {
  font-size: 24px;
}

.lb__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--t-base) var(--ease);
  z-index: 2;
}

.lb__arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.lb__arrow--prev {
  left: 16px;
}

.lb__arrow--next {
  right: 16px;
}

.lb__arrow .material-symbols-rounded {
  font-size: 24px;
}

.lb__stage {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb__stage img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--r);
  user-select: none;
  animation: fadeIn var(--t-base) var(--ease);
}

.lb__dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.lb__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all var(--t-base) var(--ease);
  cursor: pointer;
  border: none;
  padding: 0;
}

.lb__dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.lb__dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* ============================================================
   23. LOADING STATES
   ============================================================ */
.loader {
  text-align: center;
  padding: 80px 24px;
}

.loader__spinner {
  font-size: 48px;
  color: var(--accent);
  animation: spin 1s linear infinite;
  display: inline-block;
}

.loader__spinner .material-symbols-rounded {
  font-size: 48px;
}

.loader__text {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 0.9rem;
}

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


/* ============================================================
   24. NOT FOUND / EMPTY STATES
   ============================================================ */
.not-found {
  text-align: center;
  padding: 80px 24px;
  animation: fadeInUp var(--t-slow) var(--ease) both;
}

.not-found__icon {
  font-size: 80px;
  color: var(--text-muted);
  opacity: 0.4;
  margin-bottom: 8px;
}

.not-found__icon .material-symbols-rounded {
  font-size: 80px;
}

.not-found__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 16px;
  color: var(--text-primary);
}

.not-found__text {
  color: var(--text-secondary);
  margin-top: 8px;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

/* ============================================================
   25. CUSTOM SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--glass-border-hover);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--glass-border-hover) var(--bg-base);
}

/* ============================================================
   26. UTILITY CLASSES
   ============================================================ */
.hidden {
  display: none !important;
}


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

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


@keyframes cardReveal {
  from {
    transform: translateY(32px) scale(0.97);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

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

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-4px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(4px);
  }
}

.shake {
  animation: shake 0.5s var(--ease);
}


@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}



















/* ============================================================
   44. RESPONSIVE — Large Tablets (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero__title {
    font-size: 2.5rem;
  }
}

/* ============================================================
   45. RESPONSIVE — Tablets (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Topbar */
  .topbar__nav {
    display: none;
  }

  /* Admin Tabs */
  .admin-tabs {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .admin-tab {
    padding: 14px 8px;
    gap: 6px;
  }

  .admin-tab__icon .material-symbols-rounded {
    font-size: 22px;
  }

  .admin-tab__label {
    font-size: 0.72rem;
  }

  .topbar__hamburger {
    display: flex;
  }

  /* Grid */
  .grid {
    grid-template-columns: 1fr;
  }

  /* Stats */
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* Room Item */
  .room-item {
    flex-wrap: wrap;
  }

  .room-item__info {
    min-width: calc(100% - 100px);
  }

  .room-item__actions {
    width: 100%;
    margin-top: 8px;
  }

  /* Typography */
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  /* Filter Panel */
  .filter-panel {
    padding: 16px;
    margin-bottom: 24px;
  }

  .filter-tab {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .filter-panel__search-row {
    flex-direction: column;
    gap: 10px;
  }

  .filter-panel__search-row .search-box {
    max-width: 100% !important;
  }

  .sort-select {
    width: 100%;
  }

  /* Detail */
  .detail__title {
    font-size: 1.6rem;
  }

  .detail__price {
    font-size: 1.6rem;
  }

  .detail__price-box {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  /* CTA Banner */
  .cta-banner {
    padding: 32px 24px;
  }


  /* Admin */
  .admin__top {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Auth */
  .auth__card {
    padding: 32px 24px;
  }

  /* Lightbox */
  .lb__arrow {
    width: 40px;
    height: 40px;
  }

  .lb__arrow--prev {
    left: 8px;
  }

  .lb__arrow--next {
    right: 8px;
  }

  .lb__close {
    width: 40px;
    height: 40px;
    top: 12px;
    right: 12px;
  }

  /* Toast */
  #toasts {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .toast {
    min-width: auto;
    max-width: 100%;
  }

  /* Glow Orbs */
  .glow-orb--1 {
    width: 300px;
    height: 300px;
  }

  .glow-orb--2 {
    width: 280px;
    height: 280px;
  }

  /* Search */
  .search-box {
    max-width: 100%;
  }
}

/* ============================================================
   46. RESPONSIVE — Mobile (≤480px)
   ============================================================ */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

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

  .room-item__thumb {
    width: 56px;
    height: 44px;
  }

  .room-item__actions {
    width: 100%;
    justify-content: flex-end;
  }

  .auth__card {
    padding: 24px;
  }

  .auth__icon {
    width: 60px;
    height: 60px;
  }

  .form-card {
    padding: 24px;
  }

  .wrap {
    padding: 0 16px;
  }

  .card__img {
    height: 200px;
  }

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

  .detail__gallery-strip {
    gap: 6px;
  }

  .detail__thumb {
    width: 64px;
    height: 48px;
  }

  .cta-banner {
    padding: 24px 16px;
  }

  .cta-banner__text {
    font-size: 0.95rem;
  }


  .chip {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .glow-orb--1 {
    width: 200px;
    height: 200px;
    opacity: 0.25;
  }

  .glow-orb--2 {
    width: 180px;
    height: 180px;
    opacity: 0.2;
  }

  .upload-zone {
    padding: 24px;
  }

  .previews {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }


  h1 {
    font-size: 1.75rem;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .admin__title {
    font-size: 1.35rem;
  }

  .stat__number {
    font-size: 1.5rem;
  }

  .stat {
    padding: 20px;
  }
}

/* ============================================================
   47. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .glow-orb {
    animation: none !important;
  }

  .card:hover {
    transform: none;
  }

  .card:hover .card__img img {
    transform: none;
  }
}

/* ============================================================
   48. PRINT STYLES
   ============================================================ */
@media print {
  .mesh-bg,
  .glow-orb,
  #topbar,
  #toasts,
  .lb,
  .mobile-overlay,
  .cta-banner__btn,
  .topbar__hamburger {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

/* ======================== 37. FLOATING CONTACT WIDGET ======================== */
.floating-contact {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 1000;
}

.floating-contact__btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}

.floating-contact__btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid;
  opacity: 0.25;
  animation: contactPulse 2s ease-in-out infinite;
}

.floating-contact__btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

.floating-contact__btn--phone {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

.floating-contact__btn--phone::before {
  border-color: #25D366;
}

.floating-contact__btn--zalo {
  background: linear-gradient(135deg, #0068ff, #0045b5);
}

.floating-contact__btn--zalo::before {
  border-color: #0068ff;
}

@keyframes contactPulse {
  0%, 100% { transform: scale(1); opacity: 0.25; }
  50% { transform: scale(1.15); opacity: 0; }
}

/* Tooltip on hover */
.floating-contact__btn::after {
  content: attr(title);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: var(--bg-card, #fff);
  color: var(--text-primary, #333);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.floating-contact__btn:hover::after {
  opacity: 1;
}

@media (max-width: 480px) {
  .floating-contact {
    bottom: 16px;
    right: 16px;
    gap: 10px;
  }
  .floating-contact__btn {
    width: 48px;
    height: 48px;
  }
  .floating-contact__btn svg {
    width: 24px;
    height: 24px;
  }
  .floating-contact__btn::after {
    display: none;
  }
}

/* ======================== 38. CONTACT SETTINGS ======================== */
.contact-settings {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px;
  background: var(--bg-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-border);
}

.contact-settings__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.contact-settings__title .material-symbols-rounded {
  color: var(--accent);
}

.contact-settings__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.contact-settings__form .field {
  margin-bottom: 20px;
}

/* ======================== 39. STATS PERIOD TABS ======================== */
.stats-period-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.stats-period-tab {
  padding: 8px 20px;
  border: 1.5px solid var(--glass-border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.stats-period-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.stats-period-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Highlighted stat card */
.stat--highlight {
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #fff;
}

.stat--highlight .stat__number,
.stat--highlight .stat__label {
  color: #fff;
}

.stat--highlight .stat__label {
  opacity: 0.8;
}

/* ======================== 40. TOP ROOMS RANKING ======================== */
.stats-top-rooms {
  margin-top: 24px;
}

.stats-top-rooms__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.stats-top-rooms__title .material-symbols-rounded {
  font-size: 1.2rem;
}

.stats-room-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  margin-bottom: 6px;
  transition: all 0.2s ease;
}

.stats-room-row:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stats-room-row__rank {
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  min-width: 36px;
}

.stats-room-row__name {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.stats-room-row__views {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .stats-period-tabs {
    flex-wrap: wrap;
  }
  .stats-period-tab {
    flex: 1;
    text-align: center;
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* ======================== 41. WELCOME POPUP ======================== */
.welcome-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.35s ease;
  padding: 20px;
}

.welcome-overlay.show {
  opacity: 1;
}

.welcome-popup {
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px 28px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transform: scale(0.85) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.welcome-overlay.show .welcome-popup {
  transform: scale(1) translateY(0);
}

.welcome-popup__close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.welcome-popup__close:hover {
  background: #f1f5f9;
  color: #334155;
}

.welcome-popup__emoji {
  font-size: 3rem;
  margin-bottom: 12px;
  animation: welcomeWave 1.5s ease-in-out infinite;
}

@keyframes welcomeWave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(20deg); }
  50% { transform: rotate(-10deg); }
  75% { transform: rotate(15deg); }
}

.welcome-popup__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
  line-height: 1.5;
}

.welcome-popup__list {
  text-align: left;
  margin: 0 auto 16px;
  max-width: 320px;
}

.welcome-popup__list p {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.8;
  margin: 0;
}

.welcome-popup__text {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 8px;
}

.welcome-popup__text strong {
  color: #1e293b;
}

.welcome-popup__thanks {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  margin: 16px 0 20px;
}

.welcome-popup__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #0068ff, #0045b5);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 104, 255, 0.3);
}

.welcome-popup__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 104, 255, 0.4);
}

.welcome-popup__btn .material-symbols-rounded {
  font-size: 1.2rem;
}

@media (max-width: 480px) {
  .welcome-popup {
    padding: 28px 20px 24px;
    border-radius: 16px;
  }
  .welcome-popup__emoji {
    font-size: 2.5rem;
  }
  .welcome-popup__title {
    font-size: 1.15rem;
  }
}

/* Welcome popup progress bar */
.welcome-popup__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: #e2e8f0;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
}

.welcome-popup__progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #0068ff, #6366f1);
  border-radius: 0 0 20px 20px;
  animation: welcomeCountdown 10s linear forwards;
}

@keyframes welcomeCountdown {
  from { width: 100%; }
  to { width: 0%; }
}
