/* ── Auth pages ──────────────────────────────────────────────────── */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-dark1);
}
:root.light .auth-page { background: var(--bg-light2); }

.auth-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
@media (max-width: 767px) { .auth-layout { grid-template-columns: 1fr; } }

/* Left panel — branding */
.auth-panel-left {
  background: var(--bg-dark2);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
:root.light .auth-panel-left { background: var(--bg-light1); }

@media (max-width: 767px) { .auth-panel-left { display: none; } }

.auth-panel-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.auth-panel-glow {
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(26,122,94,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.auth-panel-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.auth-panel-content {
  position: relative;
  z-index: 1;
}

.auth-panel-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.auth-panel-content p {
  font-size: 0.9rem;
  color: var(--text-sec);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.auth-testimonial {
  background: rgba(40,41,46,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  backdrop-filter: blur(10px);
}
:root.light .auth-testimonial {
  background: rgba(255,255,255,0.8);
}

.auth-testimonial p {
  font-size: 0.875rem;
  color: var(--text-sec);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.auth-testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.auth-testimonial-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}

.auth-testimonial-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.auth-testimonial-role {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.auth-panel-stats {
  display: flex;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.auth-stat-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  font-family: 'Raleway', sans-serif;
}

.auth-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Right panel — form */
.auth-panel-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: var(--bg-dark1);
}
:root.light .auth-panel-right { background: var(--bg-light2); }

.auth-form-wrap {
  width: 100%;
  max-width: 400px;
}

.auth-form-header {
  margin-bottom: 2rem;
}

.auth-form-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.auth-form-header p {
  font-size: 0.875rem;
  color: var(--text-sec);
}

/* Google button */
.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.btn-google:hover { background: var(--bg3); border-color: var(--border-strong); }

/* Input with prefix */
.input-prefix-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}
.input-prefix-wrap:focus-within { border-color: var(--color-primary); }

.input-prefix {
  padding: 0.75rem 0.75rem;
  background: var(--bg3);
  color: var(--text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
  border-right: 1.5px solid var(--border);
  flex-shrink: 0;
}

.input-prefix-wrap input {
  flex: 1;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0.75rem;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
}
.input-prefix-wrap input::placeholder { color: var(--text-muted); }

/* Password toggle */
.password-wrap {
  position: relative;
}
.password-wrap .form-input {
  padding-right: 2.75rem;
}
.password-toggle {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  display: flex;
  align-items: center;
}
.password-toggle:hover { color: var(--text); }

/* Switch auth link */
.auth-switch {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-sec);
  margin-top: 1.25rem;
}
.auth-switch a {
  color: var(--color-primary);
  font-weight: 600;
}
.auth-switch a:hover { color: var(--color-secondary); }

/* Forgot link */
.forgot-link {
  font-size: 0.8rem;
  color: var(--color-primary);
  display: block;
  text-align: right;
  margin-top: 0.35rem;
}
.forgot-link:hover { color: var(--color-secondary); }

/* Slug availability */
.slug-status {
  font-size: 0.78rem;
  margin-top: 0.35rem;
}
.slug-status.available { color: var(--color-secondary); }
.slug-status.taken { color: #EF4444; }
.slug-status.checking { color: var(--text-muted); }

/* Step indicator (onboarding) */
.steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}

.step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  border: 2px solid var(--border);
  color: var(--text-muted);
  background: var(--bg2);
  transition: var(--transition);
  flex-shrink: 0;
}
.step-dot.active { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-light); }
.step-dot.done { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  max-width: 60px;
  transition: background 0.3s;
}
.step-line.done { background: var(--color-primary); }

/* Dashboard layout */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg-dark1);
}
:root.light .dashboard-layout { background: var(--bg-light2); }

.sidebar {
  width: 240px;
  background: var(--bg-dark2);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
:root.light .sidebar { background: var(--bg-light1); }

@media (max-width: 767px) {
  .sidebar { display: none; }
  .sidebar.mobile-open { display: flex; position: fixed; z-index: 50; top: 0; bottom: 0; left: 0; }
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  padding: 0 1.25rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.75rem;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0.75rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-sec);
  transition: var(--transition);
}
.sidebar-link:hover { background: var(--bg3); color: var(--text); }
.sidebar-link.active { background: var(--color-primary-light); color: var(--color-secondary); font-weight: 600; }

.sidebar-link svg { flex-shrink: 0; }

.sidebar-bottom {
  padding: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 0.75rem;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.sidebar-user:hover { background: var(--bg3); }

.sidebar-user-avatar {
  width: 32px; height: 32px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-user-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}
.sidebar-user-plan {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.dashboard-main {
  flex: 1;
  overflow: auto;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-dark2);
  position: sticky;
  top: 0;
  z-index: 10;
}
:root.light .dashboard-topbar { background: var(--bg-light1); }

.dashboard-content { padding: 1.5rem; }

.dashboard-page-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

.hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  color: var(--text-sec);
  transition: var(--transition);
}
@media (max-width: 767px) { .hamburger-btn { display: flex; } }
.hamburger-btn:hover { background: var(--bg3); }

/* Stat cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: var(--transition);
}
:root.light .stat-card { background: var(--bg-light1); }
.stat-card:hover { border-color: var(--border); }

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  font-family: 'Raleway', sans-serif;
}

.stat-change {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}
.stat-change.up   { color: var(--color-secondary); }
.stat-change.down { color: #EF4444; }

/* Booking link card */
.booking-link-card {
  background: var(--color-primary-light);
  border: 1px solid rgba(26,122,94,0.2);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.booking-link-url {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-secondary);
  word-break: break-all;
}

.booking-link-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Onboarding modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.hidden { display: none; }

.modal-card {
  background: var(--bg-dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}
:root.light .modal-card { background: var(--bg-light1); }

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.modal-subtitle {
  font-size: 0.875rem;
  color: var(--text-sec);
  margin-bottom: 1.5rem;
}

.step-content { display: none; }
.step-content.active { display: block; }

.success-check {
  width: 64px; height: 64px;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
}

.booking-link-display {
  background: var(--bg3);
  border: 1.5px dashed var(--color-primary);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-secondary);
  text-align: center;
  margin: 0.75rem 0 1rem;
  word-break: break-all;
}

.hint-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}
