/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&display=swap');

/* ── Utilitaires ── */
.hidden { display: none !important; }

/* ── Variables ── */
:root {
  --blue: #011bc8;
  --blue-dark: #010ea0;
  --blue-light: rgba(255,255,255,0.1);
  --coral: #fa7268;
  --coral-dark: #e05a50;
  --white: #ffffff;
  --white-80: rgba(255,255,255,0.8);
  --white-50: rgba(255,255,255,0.5);
  --white-20: rgba(255,255,255,0.2);
  --white-10: rgba(255,255,255,0.1);
  --radius: 12px;
  --radius-sm: 8px;
}

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

body {
  background: var(--blue);
  color: var(--white);
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Futura PT', 'Century Gothic', 'Trebuchet MS', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo img { height: 32px; }
.logo-text {
  font-family: 'Futura PT', 'Century Gothic', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  letter-spacing: 2px;
}
.logo-dot { color: var(--coral); }

/* ── Navbar ── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: rgba(0,0,0,0.15);
  border-bottom: 1px solid var(--white-10);
}

/* ── Card ── */
.card {
  background: var(--white-10);
  border: 1px solid var(--white-20);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: 'Futura PT', 'Century Gothic', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--coral);
  color: var(--white);
}
.btn-primary:hover { background: var(--coral-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--white-50);
}
.btn-outline:hover { border-color: var(--white); background: var(--white-10); }
.btn-ghost {
  background: var(--white-10);
  color: var(--white);
}
.btn-ghost:hover { background: var(--white-20); }
.btn-full { width: 100%; }

/* ── Forms ── */
.form-group { margin-bottom: 18px; }

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--white-80);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--white-10);
  border: 1.5px solid var(--white-20);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 300;
  transition: border-color 0.2s, background 0.2s;
}
input::placeholder, textarea::placeholder { color: var(--white-50); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--coral);
  background: rgba(255,255,255,0.15);
}
select option { background: var(--blue-dark); color: var(--white); }

.error-msg {
  color: #ffb3ae;
  font-size: 13px;
  margin-top: 8px;
  display: none;
  padding: 8px 12px;
  background: rgba(250,114,104,0.15);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(250,114,104,0.3);
}

/* ── Booking page ── */
.booking-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.booking-header {
  padding: 32px 24px;
  text-align: center;
  border-bottom: 1px solid var(--white-10);
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Futura PT', 'Century Gothic', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--white);
  margin: 0 auto 16px;
}

.booking-header h2 {
  font-size: 22px;
  margin-bottom: 4px;
}

.booking-header .event-title {
  color: var(--coral);
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 6px;
}

.booking-header .duration {
  color: var(--white-80);
  font-size: 14px;
}

/* ── Calendar ── */
.booking-body { padding: 24px; max-width: 480px; margin: 0 auto; width: 100%; }

.step-title {
  font-family: 'Futura PT', 'Century Gothic', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
}

.calendar { width: 100%; }

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.calendar-nav h3 {
  font-size: 16px;
  color: var(--white);
  text-transform: capitalize;
}
.calendar-nav button {
  background: var(--white-10);
  border: 1px solid var(--white-20);
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
}
.calendar-nav button:hover { background: var(--white-20); }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day-name {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--white-50);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 0;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  background: transparent;
  color: var(--white);
}
.calendar-day:hover:not(:disabled) { background: var(--white-20); }
.calendar-day:disabled { color: var(--white-20); cursor: default; }
.calendar-day.selected { background: var(--coral); font-weight: 600; }
.calendar-day.today { border: 1.5px solid var(--white-50); }

/* ── Slots ── */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.slot-btn {
  padding: 12px 8px;
  background: var(--white-10);
  border: 1.5px solid var(--white-20);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: 'Futura PT', 'Century Gothic', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.slot-btn:hover { background: var(--coral); border-color: var(--coral); transform: translateY(-2px); }
.slot-btn.selected { background: var(--coral); border-color: var(--coral); }

/* ── Back link ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white-80);
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 20px;
  background: none;
  border: none;
  padding: 0;
  text-decoration: none;
}
.back-link:hover { color: var(--white); }

/* ── Confirmation ── */
.confirm-card {
  background: var(--white-10);
  border: 1px solid var(--white-20);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.confirm-card .confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--white-10);
  font-size: 14px;
}
.confirm-card .confirm-row:last-child { border-bottom: none; }
.confirm-card .confirm-label { color: var(--white-80); }
.confirm-card .confirm-value { font-weight: 600; }

/* ── Success ── */
.success-wrap {
  text-align: center;
  padding: 40px 24px;
}
.success-icon {
  width: 80px;
  height: 80px;
  background: var(--coral);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 24px;
}
.success-wrap h2 { font-size: 24px; margin-bottom: 12px; }
.success-wrap p { color: var(--white-80); font-size: 15px; line-height: 1.6; }

/* ── Spinner ── */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--white-20);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 20px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Profile page ── */
.profile-hero {
  padding: 48px 24px 32px;
  text-align: center;
  border-bottom: 1px solid var(--white-10);
}
.profile-hero h1 { font-size: 28px; margin-bottom: 8px; }
.profile-hero p { color: var(--white-80); font-size: 15px; }

.event-types-grid {
  padding: 32px 24px;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.et-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white-10);
  border: 1px solid var(--white-20);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: var(--white);
  transition: all 0.2s;
}
.et-card:hover { background: var(--white-20); transform: translateY(-2px); }
.et-color-bar { width: 4px; min-height: 56px; border-radius: 4px; flex-shrink: 0; }
.et-info { flex: 1; }
.et-info h3 { font-size: 16px; margin-bottom: 4px; }
.et-info p { font-size: 13px; color: var(--white-80); margin-bottom: 6px; line-height: 1.5; }
.et-duration { font-size: 13px; color: var(--coral); font-weight: 600; }

/* ── Dashboard ── */
.dash-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: rgba(0,0,0,0.2);
  border-right: 1px solid var(--white-10);
  padding: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.sidebar-logo { padding: 24px; border-bottom: 1px solid var(--white-10); }
.sidebar-nav { padding: 16px 0; flex: 1; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--white-80);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.15s;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: var(--white-10);
  color: var(--white);
  border-left: 3px solid var(--coral);
}
.sidebar-footer { padding: 20px 24px; border-top: 1px solid var(--white-10); }

.dash-main { flex: 1; overflow: auto; }
.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--white-10);
  background: rgba(0,0,0,0.1);
}
.dash-topbar h1 { font-size: 20px; }

.dash-content { padding: 32px; }
.dash-section { margin-bottom: 40px; }
.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dash-section-header h2 { font-size: 18px; }

/* Table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--white-20); }
table { width: 100%; border-collapse: collapse; }
th {
  background: rgba(0,0,0,0.2);
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--white-80);
}
td { padding: 14px 16px; border-top: 1px solid var(--white-10); font-size: 14px; vertical-align: middle; }
tr:hover td { background: var(--white-10); }

/* Status badge */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-confirmed { background: rgba(56,184,176,0.2); color: #38B8B0; border: 1px solid rgba(56,184,176,0.3); }
.badge-cancelled { background: rgba(250,114,104,0.2); color: var(--coral); border: 1px solid rgba(250,114,104,0.3); }
.badge-inactive { background: var(--white-10); color: var(--white-50); border: 1px solid var(--white-20); }

/* ET cards in dashboard */
.et-dash-card {
  background: var(--white-10);
  border: 1px solid var(--white-20);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.et-dash-card .et-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.et-dash-card .et-name { flex: 1; font-weight: 600; font-size: 15px; }
.et-dash-card .et-meta { font-size: 12px; color: var(--white-80); margin-top: 2px; }
.et-dash-actions { display: flex; gap: 8px; }
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
}

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(1,27,200,0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #0a2cd4;
  border: 1px solid var(--white-20);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal h3 { font-size: 18px; margin-bottom: 24px; }

/* Color swatches */
.color-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  border: 3px solid transparent;
  transition: transform 0.15s, border-color 0.15s;
}
.swatch:hover { transform: scale(1.2); }
.swatch.selected { border-color: var(--white); transform: scale(1.1); }

/* Availability */
.avail-day-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--white-10);
}
.avail-day-row:last-child { border-bottom: none; }
.avail-day-label { width: 80px; font-size: 14px; color: var(--white-80); }
.toggle {
  width: 44px; height: 24px;
  background: var(--white-20);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  flex-shrink: 0;
}
.toggle.on { background: var(--coral); }
.toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: white;
  transition: left 0.2s;
}
.toggle.on::after { left: 22px; }
.time-selects { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--white-80); }
.time-selects select { width: 90px; padding: 6px 8px; font-size: 13px; }

/* Override calendar mini */
.mini-cal { }
.mini-cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.mini-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--white);
  transition: background 0.15s;
}
.mini-cal-day:hover:not(:disabled) { background: var(--white-20); }
.mini-cal-day:disabled { color: var(--white-20); cursor: default; }
.mini-cal-day.off { background: rgba(250,114,104,0.3); color: var(--coral); }
.mini-cal-day.custom { background: rgba(56,184,176,0.3); color: #38B8B0; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--white-50);
  font-size: 15px;
}

/* Footer */
.page-footer {
  text-align: center;
  padding: 24px;
  font-size: 12px;
  color: var(--white-50);
  border-top: 1px solid var(--white-10);
}
.page-footer a { color: var(--coral); text-decoration: none; }

/* Auth pages */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--white-20);
  border-radius: 20px;
  overflow: hidden;
}
.auth-header {
  padding: 32px 32px 24px;
  border-bottom: 1px solid var(--white-10);
}
.auth-header h1 { font-size: 22px; margin-bottom: 4px; }
.auth-header p { color: var(--white-80); font-size: 14px; }
.auth-body { padding: 28px 32px 32px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--white-80); }
.auth-footer a { color: var(--coral); font-weight: 600; text-decoration: none; }

/* Steps indicator */
.steps-bar { display: flex; gap: 6px; margin-top: 16px; }
.steps-bar span { height: 3px; flex: 1; border-radius: 2px; background: var(--white-20); transition: background 0.3s; }
.steps-bar span.active { background: var(--coral); }

/* Info box */
.info-box {
  background: rgba(56,184,176,0.1);
  border: 1px solid rgba(56,184,176,0.3);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--white-80);
}
.info-box a { color: #38B8B0; }
.info-box ol { margin: 8px 0 0 16px; }
.info-box li { margin-bottom: 4px; }

/* Subdomain preview */
.subdomain-preview { font-size: 12px; color: var(--coral); margin-top: 5px; }

/* Responsive */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .dash-content { padding: 20px; }
  .slots-grid { grid-template-columns: repeat(2,1fr); }
  .navbar { padding: 16px 20px; }
  .booking-body { padding: 16px; }
}
