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

:root {
  --bg-dark: #0f111a;
  --bg-card: rgba(26, 30, 46, 0.45);
  --bg-card-hover: rgba(35, 41, 61, 0.65);
  --border: rgba(255, 255, 255, 0.06);
  --accent: #00f0ff;
  --accent-hover: #00d6e6;
  --accent-glow: rgba(0, 240, 255, 0.4);
  --accent-soft: rgba(0, 240, 255, 0.12);
  --green: #10b981;
  --yellow: #f59e0b;
  --red: #ef4444;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --font: 'Inter', system-ui, sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --glass: blur(20px);
}

body {
  background: radial-gradient(circle at 15% 50%, rgba(30, 20, 60, 0.4), transparent 50%),
              radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.08), transparent 50%),
              var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font);
  min-height: 100vh;
  overflow-x: hidden;
}

/* NAV */
.navbar {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem 3rem;
  background: rgba(15, 17, 26, 0.6);
  border-bottom: 1px solid var(--border);
  backdrop-filter: var(--glass);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-brand {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #00f0ff, #9333ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-right: auto;
  letter-spacing: -0.5px;
  animation: pulseBrand 4s infinite alternate;
}

@keyframes pulseBrand {
  0% { filter: drop-shadow(0 0 8px rgba(0,240,255,0.2)); }
  100% { filter: drop-shadow(0 0 16px rgba(147,51,234,0.4)); }
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-family: var(--font);
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.nav-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--accent-soft);
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  border-radius: var(--radius-sm);
  z-index: -1;
}

.nav-btn:hover::before, .nav-btn.active::before {
  transform: translateY(0);
}

.nav-btn:hover,
.nav-btn.active {
  color: var(--accent);
}

/* BUTTONS */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #0284c7);
  color: #fff;
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
  filter: brightness(1.1);
}

.btn-primary.large { padding: 1rem 2.5rem; font-size: 1.1rem; border-radius: 999px; }
.btn-primary.full-width { width: 100%; margin-top: 1rem; }

.btn-outline {
  background: rgba(255,255,255,0.02);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
}

.btn-outline.large { padding: 1rem 2.5rem; font-size: 1.1rem; border-radius: 999px; }

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  border-radius: 8px;
  border: none;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

.btn-accept { background: rgba(16, 185, 129, 0.2); color: var(--green); border: 1px solid rgba(16, 185, 129, 0.3); }
.btn-accept:hover { background: rgba(16, 185, 129, 0.3); transform: scale(1.05); }
.btn-reject { background: rgba(239, 68, 68, 0.2); color: var(--red); border: 1px solid rgba(239, 68, 68, 0.3); }
.btn-reject:hover { background: rgba(239, 68, 68, 0.3); transform: scale(1.05); }
.btn-book { background: linear-gradient(135deg, var(--accent), #3b82f6); color: #fff; box-shadow: 0 2px 10px rgba(0, 240, 255, 0.3); }
.btn-book:hover { transform: scale(1.05); box-shadow: 0 4px 15px rgba(0, 240, 255, 0.5); }

/* PAGES */
.page { 
  display: none; 
  padding: 3rem 4rem; 
  min-height: calc(100vh - 75px);
  animation: fadeIn 0.4s ease-out forwards;
}

.page.active { display: block; }

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

/* HERO */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 65vh;
  text-align: center;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.05) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}

.hero-content { max-width: 800px; }

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 70%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }

/* STATS BAR */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 5rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(26, 30, 46, 0.7), rgba(15, 17, 26, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 24px;
  margin-top: 3rem;
  backdrop-filter: var(--glass);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);
}

.stat { text-align: center; }

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: transparent;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* PAGE HEADER */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.page-header h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* FILTER BAR */
.filter-bar {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  background: rgba(26, 30, 46, 0.4);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

/* INPUTS */
input, select, textarea {
  background: rgba(15, 17, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-sm);
  width: 100%;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2), 0 0 0 3px var(--accent-soft);
  background: rgba(20, 24, 38, 0.9);
}

select option { background: var(--bg-dark); }

/* PROPERTIES GRID */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.property-card {
  background: linear-gradient(180deg, rgba(30, 36, 56, 0.6) 0%, rgba(20, 24, 38, 0.8) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: default;
  backdrop-filter: var(--glass);
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  border-color: rgba(0, 240, 255, 0.4);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 240, 255, 0.1);
}

.property-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: relative;
}

.property-image::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(to top, rgba(20,24,38,1), transparent);
}

.property-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.property-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.property-card .price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.property-card .location {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.property-card .description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.property-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* BADGES */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-available { background: rgba(16, 185, 129, 0.15); color: var(--green); border: 1px solid rgba(16,185,129,0.3); }
.badge-pending { background: rgba(245, 158, 11, 0.15); color: var(--yellow); border: 1px solid rgba(245,158,11,0.3); }
.badge-sold { background: rgba(239, 68, 68, 0.15); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }
.badge-admin { background: rgba(239, 68, 68, 0.15); color: var(--red); font-size: 0.85rem; border: 1px solid rgba(239,68,68,0.3); }

/* BOOKINGS LIST */
.bookings-list { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }

.booking-card {
  background: linear-gradient(to right, rgba(30, 36, 56, 0.5), rgba(20, 24, 38, 0.8));
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.booking-card:hover { 
  transform: translateX(5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  background: linear-gradient(to right, rgba(35, 41, 61, 0.7), rgba(20, 24, 38, 0.9));
}

.booking-info { flex: 1; }
.booking-info strong { display: block; font-size: 1.1rem; margin-bottom: 0.4rem; color: #fff;}
.booking-info span { font-size: 0.9rem; color: var(--text-secondary); }

.booking-actions { display: flex; gap: 0.75rem; align-items: center; }

/* ADMIN */
.admin-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

.admin-card {
  background: rgba(26, 30, 46, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.admin-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

.admin-item:hover, .user-item:hover {
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.admin-item:last-child { border-bottom: none; }

.user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.user-item:last-child { border-bottom: none; }
.user-role { 
  display: inline-block;
  color: var(--accent); 
  font-size: 0.75rem; 
  font-weight: 700; 
  padding: 0.2rem 0.6rem;
  background: rgba(0,240,255,0.1);
  border-radius: 4px;
  margin-top: 0.3rem;
}

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 9, 14, 0.85);
  z-index: 200;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
}

.modal-overlay.open { display: flex; }

.modal {
  background: linear-gradient(180deg, rgba(30, 36, 56, 0.95), rgba(20, 24, 38, 0.98));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 2.5rem;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0,240,255,0.1);
  animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
  0% { opacity: 0; transform: scale(0.8) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.modal-header h3 { font-size: 1.5rem; font-weight: 800; color: #fff;}

.modal-close {
  background: rgba(255,255,255,0.05);
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover { 
  background: rgba(239, 68, 68, 0.2); 
  color: var(--red); 
  transform: rotate(90deg);
}

/* FORM */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text-secondary); font-weight: 600; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.5px;}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

/* MISC */
.input-row { display: flex; gap: 1rem; margin-bottom: 2rem; background: rgba(26,30,46,0.5); padding: 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border);}
.input-row input { flex: 1; border: none; background: rgba(0,0,0,0.2); box-shadow: none; margin-bottom: 0;}
.input-row input:focus { box-shadow: 0 0 0 2px var(--accent-soft);}

.empty-state {
  color: var(--text-secondary);
  text-align: center;
  padding: 4rem 2rem;
  font-size: 1.1rem;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius);
  border: 1px dashed rgba(255,255,255,0.1);
}

.result-box {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  animation: fadeIn 0.3s ease;
}

.result-box.success { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.4); color: #34d399; }
.result-box.error { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.4); color: #f87171; }
.result-box.hidden { display: none; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

@media (max-width: 768px) {
  .navbar { flex-wrap: wrap; padding: 1rem; gap: 1rem; justify-content: space-between;}
  .nav-links { overflow-x: auto; padding-bottom: 0.5rem; width: 100%;}
  .page { padding: 2rem 1.5rem; }
  .stats-bar { gap: 2rem; flex-wrap: wrap; padding: 1.5rem;}
  .admin-sections { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .properties-grid { grid-template-columns: 1fr; }
}
