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

:root {
  --navy: #2B2D5B;
  --pink: #C4607A;
  --pink-dark: #A84D66;
  --gold: #C9A84C;
  --black: #0F0F10;
  --black2: #1C1C1E;
  --gray: #8A8A8E;
  --border: #E4E4E4;
  --bg: #F7F7F8;
  --white: #FFFFFF;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--black2);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* NAV — matches getpetr.com exactly */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 36px; }
.logo span { font-size: 20px; font-weight: 800; color: var(--navy); }

.nav-links { display: flex; align-items: center; gap: 16px; }
.nav-links a { text-decoration: none; color: var(--gray); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--navy); }
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-primary:hover { color: #fff; }

/* BUTTONS — pill shape to match main site */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
  font-family: inherit;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--pink); color: #fff; box-shadow: 0 4px 12px rgba(196,96,122,.28); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--pink); color: var(--pink); opacity: 1; }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* HERO */
.hero {
  max-width: 860px;
  margin: 90px auto;
  padding: 0 24px;
  text-align: center;
}
.hero h1 { font-size: 56px; font-weight: 800; color: var(--navy); line-height: 1.07; letter-spacing: -1.8px; margin-bottom: 20px; }
.hero p { font-size: 19px; color: var(--gray); margin-bottom: 40px; max-width: 540px; margin-left: auto; margin-right: auto; line-height: 1.65; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* HOW IT WORKS */
.steps {
  background: #fff;
  padding: 80px 24px;
}
.steps h2 { text-align: center; font-size: 32px; font-weight: 800; color: var(--navy); margin-bottom: 48px; letter-spacing: -0.5px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; max-width: 900px; margin: 0 auto; }
.step { text-align: center; }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--black2); }
.step p { color: var(--gray); font-size: 14px; line-height: 1.65; }

/* CARDS */
.card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

/* FORMS */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--black2); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  color: var(--black2);
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--navy); }
.form-group textarea { resize: vertical; min-height: 90px; }

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

/* MESSAGES */
.error-msg { color: #e74c3c; font-size: 14px; margin-top: 12px; display: none; }
.error-msg.show { display: block; }
.success-msg { color: #27ae60; font-size: 14px; margin-top: 12px; display: none; }
.success-msg.show { display: block; }

/* AUTH PAGES */
.auth-wrap {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.auth-card { width: 100%; max-width: 440px; }
.auth-card h2 { font-size: 30px; font-weight: 800; color: var(--navy); margin-bottom: 8px; letter-spacing: -0.5px; }
.auth-card p { color: var(--gray); margin-bottom: 28px; font-size: 15px; }
.auth-switch { text-align: center; margin-top: 20px; font-size: 14px; color: var(--gray); }
.auth-switch a { color: var(--pink); font-weight: 600; text-decoration: none; }

/* DASHBOARD LAYOUT */
.dashboard-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px;
  background: var(--navy);
  padding: 24px 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.sidebar-logo { padding: 0 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 16px; }
.sidebar-logo span { font-size: 18px; font-weight: 800; color: #fff; }
.sidebar-logo small { display: block; color: rgba(255,255,255,0.5); font-size: 12px; margin-top: 2px; }
.sidebar nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}
.sidebar nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.sidebar nav a.active { color: #fff; background: rgba(255,255,255,0.12); border-left-color: var(--gold); }
.sidebar-bottom { margin-top: auto; padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.sidebar-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 14px; }
.sidebar-bottom a:hover { color: #fff; }

.main-content { flex: 1; padding: 32px; overflow-y: auto; background: var(--bg); }
.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 26px; font-weight: 800; color: var(--navy); letter-spacing: -0.5px; }
.page-header p { color: var(--gray); margin-top: 4px; font-size: 15px; }

/* STATS */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card { background: #fff; border-radius: 16px; border: 1px solid var(--border); padding: 20px; }
.stat-card .num { font-size: 32px; font-weight: 800; color: var(--navy); }
.stat-card .label { font-size: 13px; color: var(--gray); margin-top: 4px; }

.section-title { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }

/* BOOKINGS */
.booking-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  transition: box-shadow .15s;
}
.booking-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.booking-info h4 { font-size: 16px; font-weight: 700; color: var(--black2); }
.booking-info p { font-size: 14px; color: var(--gray); margin-top: 2px; }
.booking-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* BADGES */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-pending { background: #FFF4E6; color: #E08C3A; }
.badge-confirmed { background: #E8F5E9; color: #2D7A3A; }
.badge-completed { background: #EEF6FF; color: #2980B9; }
.badge-declined { background: #FEE; color: #e74c3c; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--gray); }
.empty-state h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: #555; }

/* SPINNER */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

.tag { display: inline-block; padding: 3px 10px; background: #f0f0f0; border-radius: 20px; font-size: 12px; color: #555; margin: 3px; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero h1 { font-size: 38px; }
  .dashboard-layout { flex-direction: column; }
  .sidebar { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  nav { padding: 14px 20px; }
  .hero { margin: 60px auto; }
}
