/* Default variables (Luxcall) */
:root {
  --primary-color: #006bff;
  --primary-hover: #0059d6;
  --primary-light: #eef5ff;
  --border-radius-card: 12px;
  --border-radius-btn: 20px;
  --font-family-sans: "Inter", -apple-system, sans-serif;
}

:root {
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #71717a;
  --border-color: #e2e8f0;
  --bg-neutral: #fafafa;
  --bg-white: #ffffff;
  --font-sans: var(--font-family-sans);
  --day-size: 46px;
  --day-gap: 6px;
}

/* Themes */
body.theme-luxcall {
  --primary-color: #006bff;
  --primary-hover: #0059d6;
  --primary-light: #eef5ff;
  --border-radius-card: 12px;
  --border-radius-btn: 20px;
  --font-family-sans: "Inter", sans-serif;
}

body.theme-material {
  --primary-color: #6750a4; /* Violet MD3 */
  --primary-hover: #4f378b;
  --primary-light: #eaddff;
  --border-radius-card: 24px;
  --border-radius-btn: 24px;
  --font-family-sans: "Plus Jakarta Sans", sans-serif;
}

body.theme-brutalist {
  --primary-color: #ffde4d; /* Pop Yellow */
  --primary-hover: #e6c213;
  --primary-light: #fff9db;
  --border-radius-card: 4px;
  --border-radius-btn: 4px;
  --font-family-sans: "Plus Jakarta Sans", sans-serif;
}

body.theme-midnight {
  --primary-color: #00f2fe; /* Neon Cyan default */
  --primary-hover: color-mix(in srgb, var(--primary-color) 85%, black);
  --primary-light: color-mix(in srgb, var(--primary-color) 10%, transparent);
  --border-radius-card: 16px;
  --border-radius-btn: 100px;
  --font-family-sans: "Plus Jakarta Sans", sans-serif;
}

/* Apply border-radii dynamically */
.event-card,
.admin-event-card,
.booking-container,
.profile-card,
.bookings-card,
.settings-card,
.settings-card-custom,
.profile-submit-bar,
.modal-card,
.success-card {
  border-radius: var(--border-radius-card, 12px) !important;
}
.btn-submit,
.btn-primary,
.btn-cancel,
.btn-save,
.btn-cancel-meeting,
.btn-reschedule-meeting,
.btn-create-event,
.btn-secondary,
.slot-time-btn,
.slot-confirm-btn {
  border-radius: var(--border-radius-btn, 20px) !important;
}

/* Brutalist theme overrides */
body.theme-brutalist .event-card,
body.theme-brutalist .admin-event-card,
body.theme-brutalist .booking-container,
body.theme-brutalist .profile-card,
body.theme-brutalist .bookings-card,
body.theme-brutalist .settings-card,
body.theme-brutalist .settings-card-custom,
body.theme-brutalist .profile-submit-bar,
body.theme-brutalist .modal-card,
body.theme-brutalist .success-card {
  border: 3px solid #1a1a1a !important;
  box-shadow: 4px 4px 0 rgba(26, 26, 26, 0.4) !important;
}

body.theme-brutalist .form-input,
body.theme-brutalist .form-textarea,
body.theme-brutalist .form-select,
body.theme-brutalist .slug-input-wrapper {
  border: 3px solid #1a1a1a !important;
  border-radius: 0px !important;
}

body.theme-brutalist .day-checkbox span {
  border: 2px solid #1a1a1a !important;
  border-radius: 4px !important;
  font-weight: 800 !important;
}

body.theme-brutalist .day-checkbox input:checked + span {
  background-color: var(--primary-color) !important;
  color: var(--primary-contrast) !important;
  box-shadow: 2px 2px 0 rgba(26, 26, 26, 0.4) !important;
  transform: translate(-2px, -2px) !important;
}

body.theme-brutalist .btn-submit,
body.theme-brutalist .btn-primary,
body.theme-brutalist .btn-create-event,
body.theme-brutalist .slot-confirm-btn {
  border: 3px solid #1a1a1a !important;
  background-color: var(--primary-color) !important;
  color: var(--primary-contrast) !important;
  font-weight: 800 !important;
  box-shadow: 2px 2px 0 rgba(26, 26, 26, 0.4) !important;
  transition:
    transform 0.1s,
    box-shadow 0.1s !important;
}

body.theme-brutalist .btn-submit:active,
body.theme-brutalist .btn-primary:active,
body.theme-brutalist .btn-create-event:active,
body.theme-brutalist .slot-confirm-btn:active {
  transform: translate(2px, 2px) !important;
  box-shadow: 1px 1px 0 #1a1a1a !important;
}

body.theme-brutalist .btn-secondary {
  border: 3px solid #1a1a1a !important;
  background-color: var(--bg-white) !important;
  color: #1a1a1a !important;
  font-weight: 800 !important;
  box-shadow: 2px 2px 0 rgba(26, 26, 26, 0.4) !important;
  transition:
    transform 0.1s,
    box-shadow 0.1s,
    background-color 0.1s !important;
}

body.theme-brutalist .btn-secondary:hover {
  background-color: var(--primary-color) !important;
  color: var(--primary-contrast) !important;
}

body.theme-brutalist .btn-secondary:active {
  transform: translate(2px, 2px) !important;
  box-shadow: 1px 1px 0 #1a1a1a !important;
}

body.theme-brutalist .btn-add-slot {
  border: 2px dashed #1a1a1a !important;
  color: #1a1a1a !important;
  background-color: var(--bg-white) !important;
  font-weight: 800 !important;
  border-radius: 4px !important;
}

body.theme-brutalist .btn-add-slot:hover {
  background-color: var(--primary-color) !important;
}

/* Brutalist slots & calendar overrides */
body.theme-brutalist .calendar-day {
  border-radius: 0px !important;
}
body.theme-brutalist .calendar-day.available {
  color: #1a1a1a !important;
  border: 1.5px solid #1a1a1a !important;
}
body.theme-brutalist .calendar-day.available:hover {
  background-color: var(--primary-color) !important;
  color: var(--primary-contrast) !important;
}
body.theme-brutalist .calendar-day.selected {
  background-color: var(--primary-color) !important;
  color: var(--primary-contrast) !important;
  border-color: #1a1a1a !important;
}
body.theme-brutalist .slot-time-btn {
  border: 2px solid #1a1a1a !important;
  color: #1a1a1a !important;
  background-color: var(--bg-white) !important;
  box-shadow: 2px 2px 0 rgba(26, 26, 26, 0.4) !important;
}
body.theme-brutalist .slot-time-btn:hover {
  background-color: var(--primary-color) !important;
  color: var(--primary-contrast) !important;
}
body.theme-brutalist .slot-time-btn.expanded {
  background-color: #64748b !important;
  color: white !important;
  box-shadow: none !important;
}

/* Midnight (Sombre & Néon) theme overrides */
/* Midnight (Sombre & Néon) theme overrides */
body.theme-midnight {
  background-color: #020617 !important; /* Very dark slate-black background */
  color: #f8fafc !important;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: color-mix(in srgb, var(--primary-color) 20%, transparent);
  --bg-neutral: #090d1f;
  --bg-white: #0f172a; /* Slate 900 for containers */
  position: relative;
}

/* Persistent space background glow on all pages */
body.theme-midnight::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% -20%, color-mix(in srgb, var(--primary-color) 12%, transparent) 0%, #020617 80%) !important;
  z-index: -2;
  pointer-events: none;
}

body.theme-midnight.has-bg-image::before {
  display: none !important;
}

body.theme-midnight::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  mix-blend-mode: overlay;
  z-index: -1;
  pointer-events: none;
}

/* Make headings glow */
body.theme-midnight h1,
body.theme-midnight h2,
body.theme-midnight h3,
body.theme-midnight .logo-text {
  color: #ffffff !important;
  text-shadow: 0 0 15px color-mix(in srgb, var(--primary-color) 40%, transparent) !important;
}

body.theme-midnight .profile-details h1,
body.theme-midnight .hero-name {
  color: #ffffff !important;
  text-shadow:
    0 0 20px color-mix(in srgb, var(--primary-color) 50%, transparent),
    0 0 40px rgba(139, 92, 246, 0.2) !important;
}

/* High contrast neon glow mesh blobs on public pages */
body.theme-midnight .blob-1 {
  background: radial-gradient(circle at center, color-mix(in srgb, var(--primary-color) 50%, transparent) 0%, transparent 70%) !important;
  opacity: 0.4 !important;
  width: 900px !important;
  height: 900px !important;
}
body.theme-midnight .blob-2 {
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.45) 0%, transparent 70%) !important;
  opacity: 0.35 !important;
  width: 800px !important;
  height: 800px !important;
}
body.theme-midnight .blob-3 {
  background: radial-gradient(circle at center, rgba(236, 72, 153, 0.35) 0%, transparent 70%) !important;
  opacity: 0.25 !important;
  width: 700px !important;
  height: 700px !important;
}

/* Frosted neon glass cards */
body.theme-midnight .event-card,
body.theme-midnight .admin-event-card,
body.theme-midnight .booking-container,
body.theme-midnight .profile-card,
body.theme-midnight .bookings-card,
body.theme-midnight .settings-card,
body.theme-midnight .settings-card-custom,
body.theme-midnight .profile-submit-bar,
body.theme-midnight .modal-card,
body.theme-midnight .success-card {
  border: 1px solid color-mix(in srgb, var(--primary-color) 35%, transparent) !important;
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(20px) !important;
  box-shadow:
    0 10px 40px color-mix(in srgb, var(--primary-color) 12%, transparent),
    inset 0 1px 1px rgba(255, 255, 255, 0.05) !important;
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    transform 0.3s !important;
}

body.theme-midnight .event-card:hover,
body.theme-midnight .admin-event-card:hover {
  border-color: rgba(139, 92, 246, 0.6) !important;
  box-shadow:
    0 15px 50px color-mix(in srgb, var(--primary-color) 22%, transparent),
    inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-2px) !important;
}

body.theme-midnight .day-checkbox span {
  border-radius: 8px !important;
  border: 1px solid color-mix(in srgb, var(--primary-color) 20%, transparent) !important;
  background-color: rgba(9, 14, 26, 0.6) !important;
  color: #94a3b8 !important;
  padding: 6px 12px !important;
  transition: all 0.2s ease !important;
}
body.theme-midnight .day-checkbox input:checked + span {
  background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%) !important;
  color: #020617 !important;
  border-color: transparent !important;
  box-shadow: 0 0 15px color-mix(in srgb, var(--primary-color) 60%, transparent) !important;
  font-weight: 800 !important;
}
body.theme-midnight .btn-submit,
body.theme-midnight .btn-primary,
body.theme-midnight .btn-create-event,
body.theme-midnight .slot-confirm-btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%) !important;
  color: #020617 !important;
  font-weight: 800 !important;
  border-radius: 100px !important;
  box-shadow: 0 0 20px color-mix(in srgb, var(--primary-color) 50%, transparent) !important;
  border: none !important;
  transition: all 0.3s ease !important;
  text-shadow: none !important;
}
body.theme-midnight .btn-submit:hover,
body.theme-midnight .btn-primary:hover,
body.theme-midnight .btn-create-event:hover,
body.theme-midnight .slot-confirm-btn:hover {
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-color) 100%) !important;
  color: #020617 !important;
  box-shadow:
    0 0 25px rgba(255, 255, 255, 0.7),
    0 0 35px color-mix(in srgb, var(--primary-color) 40%, transparent) !important;
  transform: translateY(-2px) !important;
}
body.theme-midnight .btn-secondary {
  border: 1px solid color-mix(in srgb, var(--primary-color) 50%, transparent) !important;
  background-color: color-mix(in srgb, var(--primary-color) 5%, transparent) !important;
  color: var(--primary-color) !important;
  font-weight: 700 !important;
  border-radius: 100px !important;
  transition: all 0.2s ease !important;
}
body.theme-midnight .btn-secondary:hover {
  background-color: color-mix(in srgb, var(--primary-color) 15%, transparent) !important;
  border-color: var(--primary-color) !important;
  color: #ffffff !important;
  box-shadow: 0 0 15px color-mix(in srgb, var(--primary-color) 30%, transparent) !important;
}
body.theme-midnight .calendar-day {
  color: #94a3b8 !important; /* Brighter, readable weekday numbers by default */
  transition: all 0.2s ease !important;
}
body.theme-midnight .calendar-day:disabled {
  color: #64748b !important; /* Clearly visible slate-grey numbers */
  opacity: 0.8 !important;
}
body.theme-midnight .weekday-header {
  color: #64748b !important; /* Clearly readable weekday names (DIM, LUN, MAR...) */
  font-weight: 700 !important;
}
body.theme-midnight .month-title {
  color: #ffffff !important;
  text-shadow: 0 0 10px color-mix(in srgb, var(--primary-color) 30%, transparent) !important;
}
body.theme-midnight .btn-month-nav {
  color: var(--primary-color) !important;
}
body.theme-midnight .btn-month-nav:hover {
  background-color: color-mix(in srgb, var(--primary-color) 15%, transparent) !important;
  color: #ffffff !important;
}
body.theme-midnight .calendar-day.available {
  color: var(--primary-color) !important;
  background-color: color-mix(in srgb, var(--primary-color) 15%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--primary-color) 40%, transparent) !important;
  border-radius: 50% !important;
  font-weight: 800 !important;
}
body.theme-midnight .calendar-day.available:hover {
  background-color: color-mix(in srgb, var(--primary-color) 30%, transparent) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 12px color-mix(in srgb, var(--primary-color) 50%, transparent) !important;
}
body.theme-midnight .calendar-day.selected {
  background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%) !important;
  color: #020617 !important;
  box-shadow: 0 0 15px color-mix(in srgb, var(--primary-color) 80%, transparent) !important;
  font-weight: 800 !important;
  border: none !important;
}
body.theme-midnight .calendar-day.today {
  border-bottom: 2px solid #8b5cf6 !important;
}
body.theme-midnight .timezone-picker-wrapper {
  border-top: 1px solid color-mix(in srgb, var(--primary-color) 20%, transparent) !important;
  color: #94a3b8 !important;
}
body.theme-midnight .timezone-select {
  color: var(--primary-color) !important;
  background-color: transparent !important;
}
body.theme-midnight .timezone-select option {
  background-color: #0f172a !important;
  color: #ffffff !important;
}
body.theme-midnight .slot-time-btn {
  border: 1px solid color-mix(in srgb, var(--primary-color) 40%, transparent) !important;
  color: var(--primary-color) !important;
  background-color: rgba(15, 23, 42, 0.6) !important;
  border-radius: 100px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.2s ease !important;
}
body.theme-midnight .slot-time-btn:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%) !important;
  color: #020617 !important;
  border-color: transparent !important;
  box-shadow: 0 0 15px color-mix(in srgb, var(--primary-color) 60%, transparent) !important;
}
body.theme-midnight .slot-time-btn.expanded {
  background-color: #ffffff !important;
  color: #020617 !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5) !important;
}
body.theme-midnight .header {
  border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 20%, transparent) !important;
  background-color: rgba(15, 23, 42, 0.8) !important;
  backdrop-filter: blur(12px) !important;
}
body.theme-midnight .nav-link {
  color: #94a3b8 !important;
  transition: all 0.2s ease !important;
}
body.theme-midnight .nav-link:hover {
  color: var(--primary-color) !important;
}
body.theme-midnight .nav-link.active {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary-color) 15%, transparent) 0%,
    rgba(139, 92, 246, 0.15) 100%
  ) !important;
  color: var(--primary-color) !important;
  border: 1px solid color-mix(in srgb, var(--primary-color) 30%, transparent) !important;
  box-shadow: 0 0 10px color-mix(in srgb, var(--primary-color) 20%, transparent) !important;
}
body.theme-midnight .logo-text {
  color: #ffffff !important;
}
body.theme-midnight .form-label {
  color: #f8fafc !important;
  font-weight: 600 !important;
}
body.theme-midnight .form-input,
body.theme-midnight .form-textarea,
body.theme-midnight .form-select,
body.theme-midnight .slug-input-wrapper {
  background-color: rgba(9, 13, 31, 0.8) !important;
  border: 1px solid color-mix(in srgb, var(--primary-color) 30%, transparent) !important;
  color: #ffffff !important;
  transition: all 0.2s ease !important;
}
body.theme-midnight .form-input:focus,
body.theme-midnight .form-textarea:focus,
body.theme-midnight .form-select:focus,
body.theme-midnight .slug-input-wrapper:focus-within {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 12px color-mix(in srgb, var(--primary-color) 50%, transparent) !important;
  background-color: #0f172a !important;
}
body.theme-midnight option {
  background-color: #0f172a !important;
  color: #ffffff !important;
}
body.theme-midnight .tab-btn {
  border-radius: 100px !important;
  color: #94a3b8 !important;
}
body.theme-midnight .tab-btn.active {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary-color) 15%, transparent) 0%,
    rgba(139, 92, 246, 0.15) 100%
  ) !important;
  color: var(--primary-color) !important;
  border: 1px solid color-mix(in srgb, var(--primary-color) 30%, transparent) !important;
  box-shadow: 0 0 12px color-mix(in srgb, var(--primary-color) 20%, transparent) !important;
}
body.theme-midnight .tab-btn.active::after {
  display: none !important;
}
body.theme-midnight .tabs-nav-floating,
body.theme-midnight .text-block-floating {
  border-radius: 100px !important;
  background: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid color-mix(in srgb, var(--primary-color) 35%, transparent) !important;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--primary-color) 15%, transparent) !important;
}
body.theme-midnight .text-block-floating {
  border-radius: 24px !important;
}
body.theme-midnight .main-footer {
  border-top: 1px solid color-mix(in srgb, var(--primary-color) 20%, transparent) !important;
  background-color: rgba(9, 13, 31, 0.9) !important;
}
body.theme-midnight .badge,
body.theme-midnight .status-pill {
  background: color-mix(in srgb, var(--primary-color) 10%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--primary-color) 30%, transparent) !important;
  color: var(--primary-color) !important;
  box-shadow: 0 0 10px color-mix(in srgb, var(--primary-color) 10%, transparent) !important;
}

/* Material Design 3 Expressive theme overrides */
body.theme-material {
  --bg-neutral: #faf8ff; /* Clean light lavender-white background */
  --bg-white: #ffffff; /* Pure white containers */
  --text-primary: #1d1b20;
  --text-secondary: #49454f;
  --border-color: #e8e3ed; /* Soft outline border */
}

body.theme-material .event-card,
body.theme-material .admin-event-card,
body.theme-material .booking-container,
body.theme-material .profile-card,
body.theme-material .bookings-card,
body.theme-material .settings-card,
body.theme-material .settings-card-custom,
body.theme-material .profile-submit-bar,
body.theme-material .modal-card,
body.theme-material .success-card {
  border: 1px solid var(--border-color) !important;
  background-color: #ffffff !important; /* Pure white containers */
  box-shadow:
    0px 4px 24px rgba(103, 80, 164, 0.06),
    0px 1px 3px rgba(0, 0, 0, 0.04) !important;
  border-radius: 28px !important; /* M3 Extra Large Card */
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1) !important;
}

body.theme-material .event-card:hover {
  background-color: var(--primary-light) !important;
  box-shadow:
    0px 8px 32px rgba(103, 80, 164, 0.12),
    0px 2px 6px rgba(0, 0, 0, 0.08) !important;
  transform: translateY(-2px);
}

body.theme-material .card-footer,
body.theme-material .card-actions {
  background-color: transparent !important;
  border-top: 1px solid var(--border-color) !important;
}

body.theme-material .btn-submit,
body.theme-material .btn-primary,
body.theme-material .btn-create-event,
body.theme-material .slot-confirm-btn {
  background-color: var(--primary-color) !important;
  color: white !important;
  border-radius: 100px !important; /* M3 Fully pill button */
  font-weight: 500 !important;
  letter-spacing: 0.1px !important;
  box-shadow:
    0px 1px 3px rgba(0, 0, 0, 0.1),
    0px 1px 2px rgba(0, 0, 0, 0.06) !important;
  border: none !important;
}

body.theme-material .btn-submit:hover,
body.theme-material .btn-primary:hover,
body.theme-material .btn-create-event:hover,
body.theme-material .slot-confirm-btn:hover {
  box-shadow:
    0px 1px 3px 1px rgba(0, 0, 0, 0.15),
    0px 2px 6px 2px rgba(0, 0, 0, 0.15) !important;
  background-color: var(--primary-hover) !important;
}

body.theme-material .btn-secondary {
  background-color: transparent !important;
  border: 1px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  border-radius: 100px !important;
  font-weight: 500 !important;
  letter-spacing: 0.1px !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
}

body.theme-material .btn-secondary:hover {
  background-color: var(--primary-light) !important;
}

body.theme-material .btn-add-slot {
  border-radius: 100px !important;
  font-weight: 500 !important;
  border: 1px dashed var(--primary-color) !important;
}

/* MD3 Extended FAB */
body.theme-material .btn-create-event {
  border-radius: 16px !important;
  padding: 16px 24px !important;
  box-shadow:
    0px 4px 8px 3px rgba(103, 80, 164, 0.15),
    0px 1px 3px rgba(0, 0, 0, 0.3) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}
body.theme-material .btn-create-event:hover {
  box-shadow:
    0px 6px 12px 4px rgba(103, 80, 164, 0.2),
    0px 2px 4px rgba(0, 0, 0, 0.3) !important;
  background-color: var(--primary-color) !important;
  filter: brightness(1.1);
}

/* MD3 Form Inputs (Filled style) */
body.theme-material .form-input,
body.theme-material .form-textarea,
body.theme-material .form-select,
body.theme-material .slug-input-wrapper {
  background-color: rgba(103, 80, 164, 0.08) !important;
  border: none !important;
  border-bottom: 2px solid var(--border-color) !important;
  border-radius: 8px 8px 0 0 !important;
  padding: 12px 16px !important;
  transition: all 0.2s ease !important;
}
body.theme-material .form-input:focus,
body.theme-material .form-textarea:focus,
body.theme-material .form-select:focus,
body.theme-material .slug-input-wrapper:focus-within {
  background-color: rgba(103, 80, 164, 0.12) !important;
  border-bottom-color: var(--primary-color) !important;
  outline: none !important;
  box-shadow: none !important;
}

/* MD3 Tabs active state indicator capsule */
body.theme-material .tab-btn {
  border-radius: 100px !important;
  padding: 10px 20px !important;
  transition: all 0.2s ease !important;
}
body.theme-material .tab-btn.active {
  background-color: var(--primary-light) !important; /* M3 Secondary Container */
  color: var(--primary-color) !important; /* M3 On Secondary Container */
  font-weight: 600 !important;
}
body.theme-material .tab-btn.active::after {
  display: none !important; /* Disable default line indicator */
}

body.theme-material .tabs-nav-floating,
body.theme-material .text-block-floating {
  border-radius: 100px !important;
  padding: 8px 16px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}
body.theme-material .text-block-floating {
  padding: 24px 32px !important;
  border-radius: 24px !important;
}

/* MD3 Slot Buttons */
body.theme-material .slot-time-btn {
  border: 1px solid var(--border-color) !important;
  background-color: transparent !important;
  color: var(--primary-color) !important;
  border-radius: 100px !important;
  font-weight: 500 !important;
}
body.theme-material .slot-time-btn:hover {
  background-color: rgba(103, 80, 164, 0.08) !important;
}
body.theme-material .slot-time-btn.expanded {
  background-color: var(--primary-light) !important;
  color: #21005d !important;
  border-color: var(--primary-light) !important;
}

/* MD3 Calendar Days */
body.theme-material .calendar-day.available {
  background-color: var(--primary-light) !important;
  color: var(--primary-color) !important;
  border-radius: 50% !important;
}
body.theme-material .calendar-day.available:hover {
  background-color: rgba(103, 80, 164, 0.08) !important;
}
body.theme-material .calendar-day.selected {
  background-color: var(--primary-color) !important;
  color: white !important;
}

/* MD3 Admin Day Checkboxes */
body.theme-material .day-checkbox span {
  border-radius: 100px !important;
  font-weight: 500 !important;
  border: 1px solid var(--border-color) !important;
}
body.theme-material .day-checkbox input:checked + span {
  background-color: var(--primary-light) !important;
  color: #21005d !important;
  border-color: var(--primary-light) !important;
}

/* Header & Navigation Theme Overrides */

/* Material Design 3 Header */
body.theme-material .header {
  border-bottom: none !important;
  box-shadow: 0px 2px 12px rgba(103, 80, 164, 0.08) !important;
  background-color: var(--bg-white) !important;
}
body.theme-material .nav-link {
  border-radius: 100px !important;
  transition: all 0.2s ease !important;
  padding: 6px 16px !important;
}
body.theme-material .nav-link.active {
  background-color: var(--primary-light) !important;
  color: #21005d !important;
}

/* Néo-Brutaliste Header */
body.theme-brutalist .header {
  border-bottom: 3px solid #1a1a1a !important;
  background-color: #ffffff !important;
}
body.theme-brutalist .nav-link {
  border: 2px solid transparent !important;
  transition: all 0.15s ease !important;
}
body.theme-brutalist .nav-link.active {
  background-color: var(--primary-color) !important; /* Pop Yellow */
  color: var(--primary-contrast) !important;
  border: 2px solid #1a1a1a !important;
  border-radius: 4px !important;
  font-weight: 800 !important;
  padding: 6px 12px !important;
}

body.theme-brutalist .tabs-nav-floating,
body.theme-brutalist .text-block-floating {
  border-radius: 0 !important;
  border: 3px solid #1a1a1a !important;
  box-shadow: 4px 4px 0px rgba(26, 26, 26, 0.4) !important;
  background: #ffffff !important;
}

body.theme-brutalist .main-footer {
  border-top: 3px solid #1a1a1a !important;
  background-color: #ffffff !important;
}
body.theme-brutalist .footer-column h4 {
  font-weight: 800 !important;
  color: #1a1a1a !important;
}

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

html {
  overflow-y: scroll;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-neutral);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font-family: inherit;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

/* HEADER */
.header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  height: 70px;
  flex-shrink: 0;
}

.header-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* FOOTER */
.main-footer {
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-color);
  padding: 24px 24px;
  margin-top: auto;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.footer-bottom-minimal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  width: 100%;
}

.footer-bottom-minimal .copyright {
  color: var(--text-muted);
}

.footer-links-minimal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links-minimal a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links-minimal a:hover {
  color: var(--primary-color);
}

@media (max-width: 640px) {
  .footer-bottom-minimal {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .footer-links-minimal {
    justify-content: center;
    gap: 16px;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-icon {
  width: 32px;
  height: 32px;
}

.logo-text {
  letter-spacing: -0.5px;
}

.nav {
  display: flex;
  gap: 8px;
  height: 100%;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.nav-link:hover {
  background-color: var(--bg-neutral);
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--primary-color);
  background-color: var(--primary-light);
}

.nav-icon {
  width: 16px;
  height: 16px;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  background-color: var(--bg-white);
  border: 2px solid var(--border-color);
}

.username {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.btn-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  padding: 6px;
  border-radius: 50%;
  transition: all 0.2s;
  margin-left: 4px;
}

.btn-logout:hover {
  color: #ef4444;
  background-color: #fee2e2;
}

.logout-icon {
  width: 18px;
  height: 18px;
  display: block;
}

/* CONTAINER LANDING */
.container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

/* BOOKING SCHEDULER VIEW */
.booking-wrapper {
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  padding: 40px 16px;
}

.booking-container {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 300px 1fr;
  width: 1110px;
  max-width: 100%;
  height: 600px;
  overflow: hidden;
  margin: auto;
}

.shadow-premium {
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.05),
    0 10px 40px rgba(0, 0, 0, 0.08);
}

.info-panel {
  padding: 48px 32px 24px 32px;
  position: relative;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.info-panel-scroll {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-grow: 1;
  overflow-y: auto;
  padding-bottom: 48px;
  scrollbar-width: none; /* Firefox */
}

.info-panel-scroll::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.embed-attribution-badge {
  position: absolute;
  bottom: 24px;
  left: 32px;
  z-index: 10;
}

.btn-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  color: var(--primary-color);
  border-bottom-right-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.btn-back:hover {
  width: 56px;
  height: 56px;
  background: var(--primary-color);
  color: white;
  border-bottom-right-radius: 24px;
}

.organizer-info {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
  padding-right: 110px;
  min-height: 80px;
}

.mini-avatar {
  position: absolute;
  top: 32px;
  right: 32px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--bg-white);
  border: 3px solid var(--bg-white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 5;
}

.organizer-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.event-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.event-details-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.detail-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.highlight-slot {
  color: #10b981;
}

.event-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.scheduler-panel {
  display: grid;
  grid-template-columns: 1fr;
  transition: all 0.3s ease;
  background-color: var(--bg-white);
  height: 100%;
  overflow: hidden;
}

.scheduler-panel.split-view {
  grid-template-columns: 1fr 310px;
}

.calendar-section {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  align-self: flex-start;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: calc(7 * var(--day-size) + 6 * var(--day-gap));
  margin-bottom: 20px;
}

.btn-month-nav {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: background-color 0.2s;
}

.btn-month-nav:hover {
  background-color: var(--bg-neutral);
  color: var(--text-primary);
}

.month-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, var(--day-size));
  gap: 8px var(--day-gap);
  justify-content: center;
  width: 100%;
  margin-bottom: 24px;
}

.weekday-header {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  padding-bottom: 8px;
}

.calendar-days-container {
  display: contents;
}

.calendar-day {
  width: var(--day-size);
  height: var(--day-size);
  border: none;
  border-radius: 50%;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: default;
}

.calendar-day.empty {
  visibility: hidden;
}

.calendar-day.available {
  color: var(--primary-color);
  background-color: var(--primary-light);
  cursor: pointer;
}

.calendar-day.available:hover {
  background-color: #dbeafe;
  color: var(--primary-hover);
}

.calendar-day.selected {
  background-color: var(--primary-color) !important;
  color: var(--primary-contrast) !important;
}

.calendar-day:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.timezone-picker-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  width: 100%;
  max-width: calc(7 * var(--day-size) + 6 * var(--day-gap));
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.timezone-select {
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  outline: none;
  width: 100%;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* SLOTS COL */
.slots-section {
  border-left: 1px solid var(--border-color);
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.slots-date-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: center;
}

.slots-scroll {
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slot-row-wrapper {
  display: flex;
  gap: 8px;
  width: 100%;
}

.slot-time-btn {
  flex-grow: 1;
  height: 50px;
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  background-color: var(--bg-white);
  color: var(--primary-color);
  font-size: 15px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.slot-time-btn:hover {
  border-width: 2px;
  background-color: #fafbfc;
}

.slot-time-btn.expanded {
  background-color: #64748b;
  border-color: #64748b;
  color: white;
  width: 50%;
}

.slot-confirm-btn {
  width: 50%;
  height: 50px;
  border: none;
  border-radius: 8px;
  background-color: var(--primary-color);
  color: var(--primary-contrast);
  font-size: 15px;
  font-weight: 700;
  animation: popIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* DETAILS FORM */
.form-panel {
  padding: 32px 48px;
  overflow-y: auto;
  height: 100%;
}

.form-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

.details-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input,
.form-textarea,
.form-select {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-btn, 8px);
  padding: 10px 14px;
  font-size: 14px;
  transition: all 0.2s;
  outline: none;
  width: 100%;
  background-color: var(--bg-white);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.phone-field {
  display: flex;
  position: relative;
  width: 100%;
}

.phone-field-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 0 12px;
  min-width: 92px;
  height: auto;
  border: 1px solid var(--border-color);
  border-right: none;
  border-radius: var(--border-radius-btn, 8px) 0 0 var(--border-radius-btn, 8px);
  background: var(--bg-neutral, #f8fafc);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 14px;
}

.phone-field-btn:hover {
  background: var(--bg-white);
}

.phone-field-flag {
  font-size: 1.15rem;
  line-height: 1;
}

.phone-field-code {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
}

.phone-field-caret {
  opacity: 0.45;
  width: 10px;
  height: 10px;
}

.phone-field-national {
  border-radius: 0 var(--border-radius-btn, 8px) var(--border-radius-btn, 8px) 0 !important;
  flex: 1;
  min-width: 0;
}

.phone-field-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  max-height: 260px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.phone-field-dropdown[hidden] {
  display: none !important;
}

.phone-field-search-wrap {
  padding: 8px;
}

.phone-field-search {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  background: var(--bg-neutral, #f8fafc);
  color: var(--text-primary);
}

.phone-field-list {
  overflow-y: auto;
  max-height: 200px;
  padding: 0 4px 4px;
}

.phone-field-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.phone-field-option:hover {
  background: var(--bg-neutral, #f1f5f9);
}

.phone-field-option-name {
  flex: 1;
}

.phone-field-option-code {
  color: var(--text-secondary);
  font-size: 13px;
}

body.theme-arcane .phone-field-btn,
body.theme-arcane .phone-field-search,
body.theme-arcane .phone-field-dropdown {
  background: #fffaf3 !important;
  border-color: rgba(197, 155, 39, 0.32) !important;
}

body.theme-arcane .phone-field-option:hover {
  background: rgba(223, 177, 91, 0.16) !important;
}

.slug-input-wrapper {
  display: flex;
  align-items: center;
  background-color: var(--bg-neutral, #f8fafc);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-btn, 8px);
  padding-left: 12px;
  overflow: hidden;
  transition: all 0.2s;
}
.slug-input-wrapper:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Custom select elements arrows */
select.form-select,
select.form-input,
select.social-select,
body.theme-luxcall select.form-select,
body.theme-luxcall select.form-input,
body.theme-material select.form-select,
body.theme-material select.form-input,
body.theme-brutalist select.form-select,
body.theme-brutalist select.form-input,
body.theme-midnight select.form-select,
body.theme-midnight select.form-input {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2371717a' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 14px 14px !important;
  padding-right: 36px !important;
  cursor: pointer !important;
}

/* Custom dropdown arrow color specifically for theme-midnight */
body.theme-midnight select.form-select,
body.theme-midnight select.form-input,
body.theme-midnight select.social-select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") !important;
}

select.form-select:hover,
select.form-input:hover,
select.social-select:hover,
select.form-select:focus,
select.form-input:focus,
select.social-select:focus,
body.theme-luxcall select.form-select:hover,
body.theme-luxcall select.form-input:hover,
body.theme-material select.form-select:hover,
body.theme-material select.form-input:hover,
body.theme-brutalist select.form-select:hover,
body.theme-brutalist select.form-input:hover,
body.theme-midnight select.form-select:hover,
body.theme-midnight select.form-input:hover,
body.theme-luxcall select.form-select:focus,
body.theme-luxcall select.form-input:focus,
body.theme-material select.form-select:focus,
body.theme-material select.form-input:focus,
body.theme-brutalist select.form-select:focus,
body.theme-brutalist select.form-input:focus,
body.theme-midnight select.form-select:focus,
body.theme-midnight select.form-input:focus {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231a1a1a' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") !important;
}

/* Custom dropdown arrow hover/focus for theme-midnight */
body.theme-midnight select.form-select:hover,
body.theme-midnight select.form-input:hover,
body.theme-midnight select.social-select:hover,
body.theme-midnight select.form-select:focus,
body.theme-midnight select.form-input:focus,
body.theme-midnight select.social-select:focus {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") !important;
}

/* Compact select styling in availability days */
.slots-container select.form-select,
.modal-slots-container select.form-select,
body.theme-luxcall .slots-container select.form-select,
body.theme-luxcall .modal-slots-container select.form-select,
body.theme-material .slots-container select.form-select,
body.theme-material .modal-slots-container select.form-select,
body.theme-brutalist .slots-container select.form-select,
body.theme-brutalist .modal-slots-container select.form-select,
body.theme-midnight .slots-container select.form-select,
body.theme-midnight .modal-slots-container select.form-select {
  padding: 0 24px 0 8px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 8px !important;
  padding-right: 24px !important;
  background-position: right 6px center !important;
  background-size: 11px 11px !important;
  min-width: 80px !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 6px !important;
  background-color: var(--bg-white) !important;
  height: 32px !important;
  font-size: 13px !important;
  box-shadow: none !important;
  margin: 0 !important;
}

input[type="date"],
input[type="time"] {
  cursor: pointer;
}

.btn-secondary {
  background-color: var(--bg-white);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  align-self: flex-start;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background-color: var(--primary-light);
}

.opt-in-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.btn-submit {
  background-color: var(--primary-color);
  color: var(--primary-contrast);
  border: none;
  border-radius: 24px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  align-self: flex-start;
  transition: background-color 0.2s;
  margin-top: 10px;
}

.btn-submit:hover {
  background-color: var(--primary-hover);
}

.btn-with-arrow {
  position: relative;
  overflow: hidden;
  padding-right: 48px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-with-arrow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--primary-color) 30%, transparent);
}
.btn-with-arrow .btn-arrow-pin {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-top-left-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-with-arrow:hover .btn-arrow-pin {
  width: 44px;
  height: 44px;
  border-top-left-radius: 20px;
  background: rgba(255, 255, 255, 0.3);
}

/* CONFIRMED SCREEN */
.success-wrapper {
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  padding: 40px 16px;
}

.success-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 48px 32px;
  max-width: 580px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: auto;
}

.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #e6fcf5;
  color: #0ca678;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.check-icon {
  width: 32px;
  height: 32px;
}

.success-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}

.success-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
}

.success-subtitle span {
  font-weight: 600;
  color: var(--text-primary);
}

.divider {
  border: 0;
  border-top: 1px solid var(--border-color);
  width: 100%;
  margin: 28px 0;
}

.meeting-details-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 100%;
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  text-align: left;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.color-bullet {
  width: 8px;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

.meeting-details-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meeting-title {
  font-size: 17px;
  font-weight: 700;
}

.meta-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.meta-row.font-bold {
  font-weight: 700;
  color: var(--text-primary);
}

.meta-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 2px;
}

.notification-info {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.export-actions {
  width: 100%;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.export-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.export-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

.btn-export {
  flex-grow: 1;
  max-width: 180px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-white);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 20px;
  transition: all 0.2s;
}

.btn-export:hover {
  border-color: #cbd5e1;
  background-color: var(--bg-neutral);
  color: var(--text-primary);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--primary-contrast);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 24px;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.tab-content {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}

/* ADMIN DASHBOARD */
.dashboard-wrapper {
  width: 100%;
  max-width: 1000px;
  min-width: 0;
  margin: 40px auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.dashboard-subheader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.dashboard-title {
  font-size: 26px;
  font-weight: 700;
}

.dashboard-desc {
  font-size: 14px;
  color: var(--text-muted);
}

.btn-create-event {
  background-color: var(--bg-white);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 24px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-create-event:hover {
  background-color: var(--primary-light);
}

.plus-icon {
  width: 16px;
  height: 16px;
}

.tabs-nav {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 8px;
}

.tabs-nav-floating {
  background: var(--bg-white);
  padding: 8px 24px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color) !important;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
}

.text-block-floating {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 24px 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.card-floating {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.6) !important;
}

.card-floating .card-actions,
.card-floating .card-header {
  background: rgba(250, 251, 252, 0.4) !important;
}

.tab-btn {
  border: none;
  background: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 12px 4px;
  position: relative;
  transition: color 0.2s;
}

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

.tab-btn.active {
  color: var(--primary-color);
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2.5px;
  background-color: var(--primary-color);
}

.admin-event-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.05),
    0 10px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  height: 100%;
}

.drag-handle {
  cursor: grab;
  color: var(--text-muted);
  transition: color 0.2s;
}

.drag-handle:hover {
  color: var(--primary-color);
}

.drag-handle:active {
  cursor: grabbing;
}

.sortable-ghost {
  opacity: 0.4;
  border: 2px dashed var(--primary-color) !important;
}

.color-strip {
  height: 6px;
}

.card-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.card-body .event-title {
  font-size: 17px;
  font-weight: 700;
}

.event-details {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.event-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-link {
  margin-top: auto;
  font-size: 12px;
  color: var(--primary-color);
  font-weight: 500;
}

.card-actions {
  border-top: 1px solid var(--border-color);
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  background-color: #fafbfc;
}

.btn-action-icon {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-action-icon:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.05);
}

.text-red {
  color: #ef4444 !important;
}

.text-red:hover {
  color: #b91c1c !important;
}

.action-icon {
  width: 14px;
  height: 14px;
}

/* SWITCH TOGGLE */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}

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

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 20px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .switch-slider {
  background-color: var(--primary-color);
}

input:checked + .switch-slider:before {
  transform: translateX(16px);
}

/* BOOKINGS */
.bookings-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.card-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
}

.badge {
  background-color: var(--bg-neutral);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.reason-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}
.reason-vacances {
  background-color: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}
.reason-congés {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.reason-maladie {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.reason-autre {
  background-color: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
}

.bookings-table-wrapper {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.bookings-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  text-align: left;
}

.bookings-table th {
  background-color: #fafbfc;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
}

.bookings-table td {
  padding: 16px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-secondary);
  vertical-align: top;
}

.bookings-table tr:last-child td {
  border-bottom: none;
}

.font-bold {
  font-weight: 600;
  color: var(--text-primary);
}

.client-name {
  font-weight: 600;
  color: var(--text-primary);
}

.client-email {
  font-size: 13px;
  color: var(--text-muted);
}

.booking-date {
  font-weight: 600;
  color: var(--text-primary);
}

.booking-time {
  font-size: 13px;
  color: var(--text-muted);
}

.notes-col {
  max-width: 250px;
  font-size: 13px;
  line-height: 1.5;
}

.muted {
  color: var(--text-muted);
  font-style: italic;
}

.btn-cancel-meeting {
  border: 1px solid #fda4af;
  background-color: #fff1f2;
  color: #e11d48;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-cancel-meeting:hover {
  background-color: #ffe4e6;
  border-color: #f43f5e;
}

.btn-reschedule-meeting {
  border: 1px solid #bfdbfe;
  background-color: #eff6ff;
  color: #2563eb;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-reschedule-meeting:hover {
  background-color: #dbeafe;
  border-color: #3b82f6;
}

.bookings-table-wrapper .empty-state {
  padding: 80px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.empty-icon {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  stroke-width: 1px;
}

.bookings-table-wrapper .empty-state h4 {
  font-size: 16px;
  font-weight: 600;
}

.bookings-table-wrapper .empty-state p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 300px;
}

/* SETTINGS */
.settings-grid {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  gap: 24px;
}

.settings-card,
.settings-card-custom {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-card, 12px) !important;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.days-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-delete-slot {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.btn-delete-slot:hover {
  color: #ef4444 !important;
}

.btn-add-slot:hover {
  background-color: var(--primary-light) !important;
}

.day-checkbox {
  cursor: pointer;
}

.day-checkbox input {
  display: none;
}

.day-checkbox span {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.day-checkbox input:checked + span {
  background-color: var(--primary-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* MODAL */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}

.modal-card {
  background-color: var(--bg-white);
  border-radius: 12px;
  width: 100%;
  max-width: 540px;
  overflow: hidden;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
}

.btn-close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.btn-close-modal:hover {
  background-color: var(--bg-neutral);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.color-picker-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.color-radio {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.color-radio:hover,
.color-radio:focus-visible {
  box-shadow: 0 0 0 3px var(--primary-light);
  outline: none;
}

.color-radio.is-selected {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--text-primary, #111);
}

.color-radio .checkmark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #fff;
  opacity: 0;
  pointer-events: none;
}

.color-radio.is-selected .checkmark {
  opacity: 1;
}

.color-radio-custom {
  overflow: hidden;
  background: conic-gradient(from 90deg, #ef4444, #f59e0b, #10b981, #006bff, #8b5cf6, #ef4444);
}

.color-radio-custom input[type="color"] {
  position: absolute;
  inset: -4px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: none;
}

.modal-footer {
  padding: 16px 24px;
  background-color: #fafbfc;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-cancel {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.btn-cancel:hover {
  background-color: var(--bg-neutral);
}

.btn-save {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.btn-save:hover {
  background-color: var(--primary-hover);
}

/* TOAST NOTIFICATIONS */
.toast-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  pointer-events: none;
}

.toast-card {
  background-color: #1e293b; /* Premium dark slate */
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.15),
    0 8px 10px -6px rgba(0, 0, 0, 0.15);
  min-width: 320px;
  max-width: 420px;
  border-left: 4px solid var(--primary-color);
  pointer-events: auto;
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-card.exit {
  animation: toastSlideOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

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

.hidden {
  display: none !important;
}

/* PUBLIC PROFILE HERO LAYOUT */
.public-profile-container {
  max-width: 1142px;
  padding-top: 80px;
  padding-bottom: 100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-hero {
  width: 100%;
  margin-bottom: 56px;
}

.profile-hero-content {
  display: flex;
  align-items: center;
  gap: 48px;
  background: var(--bg-white);
  padding: 48px;
  border-radius: 32px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.profile-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
  margin-top: -115px;
  z-index: 10;
}

.hero-avatar {
  width: 220px;
  height: 220px;
  border-radius: 36px;
  object-fit: contain;
  background-color: var(--bg-white);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-color);
  padding: 16px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-avatar:hover {
  transform: translateY(-8px);
}

.status-pill {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-radius: 100px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  z-index: 10;
  transition: all 0.3s ease;
}

.status-pill:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.status-pill.active .status-dot {
  background-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.status-pill.inactive .status-dot {
  background-color: #f59e0b;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

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

.profile-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.hero-name {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin: 0;
}

.hero-role-badge {
  background: var(--primary-light);
  color: var(--primary-color);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-bio {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 24px 0;
  max-width: 600px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.timezone-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .profile-hero-content {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
    gap: 32px;
  }
  .profile-title-row {
    justify-content: center;
  }
  .hero-meta {
    justify-content: center;
  }
  .hero-bio {
    margin-left: auto;
    margin-right: auto;
  }
}

/* PREMIUM EVENTS GRID */
.events-section {
  width: 100%;
  max-width: 1000px;
}

.events-heading {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.events-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.public-profile-container .events-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  justify-content: center;
}

.public-profile-container .events-grid .event-card.premium-event {
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
}

.event-card.premium-event {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.event-card.premium-event:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-light);
}

.event-card.premium-event:hover .event-banner-img {
  transform: scale(1.05);
}

.color-indicator {
  height: 6px;
  width: 100%;
}

.event-card.premium-event .card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.event-price-pin {
  position: absolute;
  top: 6px;
  right: 0;
  background: var(--card-color, var(--primary-color));
  color: white;
  font-size: 16px;
  font-weight: 900;
  padding: 8px 16px;
  border-bottom-left-radius: 16px;
  box-shadow: -4px 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.action-arrow-pin {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 48px;
  height: 48px;
  background: var(--card-light, var(--primary-light));
  color: var(--card-color, var(--primary-color));
  border-top-left-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.event-card.premium-event:hover .action-arrow-pin {
  background: var(--card-color, var(--primary-color));
  color: white;
  width: 56px;
  height: 56px;
  border-top-left-radius: 24px;
}

.event-header .event-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
  padding-right: 40px; /* Space for the top pin if name is long */
}

.event-card.premium-event .event-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
  flex: 1;
}

.event-card.premium-event .event-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--bg-neutral);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* THEME OVERRIDES FOR PREMIUM PROFILE */
/* Material 3 */
body.theme-material .profile-hero-content,
body.theme-material .event-card.premium-event {
  border-radius: 28px !important;
  border: 1px solid var(--border-color) !important;
  background-color: #ffffff !important;
  box-shadow: 0px 4px 24px rgba(103, 80, 164, 0.06) !important;
}
body.theme-material .hero-avatar,
body.theme-material .mini-avatar {
  border-radius: 24px !important;
}
body.theme-material .mini-avatar {
  border: 1px solid var(--border-color) !important;
}
body.theme-material .meta-badge,
body.theme-material .hero-role-badge,
body.theme-material .filter-tab.active {
  background-color: var(--primary-light) !important;
  color: var(--primary-color) !important;
  border-color: transparent !important;
}

/* Brutalist */
body.theme-brutalist .profile-hero-content,
body.theme-brutalist .event-card.premium-event {
  border: 3px solid #1a1a1a !important;
  border-radius: 0px !important;
  box-shadow: 4px 4px 0 rgba(26, 26, 26, 0.4) !important;
}
body.theme-brutalist .hero-avatar,
body.theme-brutalist .mini-avatar {
  border: 3px solid #1a1a1a !important;
  border-radius: 0px !important;
  box-shadow: none !important;
}
body.theme-brutalist .status-pill {
  border: 3px solid #1a1a1a !important;
  border-radius: 0px !important;
}
body.theme-brutalist .meta-badge,
body.theme-brutalist .hero-role-badge {
  border: 2px solid #1a1a1a !important;
  border-radius: 0px !important;
  font-weight: 800 !important;
  background-color: #ffffff !important;
  color: #1a1a1a !important;
}
body.theme-brutalist .action-arrow {
  opacity: 1 !important;
  transform: translateX(0) !important;
  color: #1a1a1a !important;
}

/* EXTRA PREMIUM FEATURES CSS */
.modern-mesh-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 700px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg-neutral);
}
body.theme-midnight .modern-mesh-background {
  background: transparent !important;
}
.mesh-blob {
  position: absolute;
  border-radius: 50%;
  animation: floatBlob 20s infinite ease-in-out alternate;
  transform: translateZ(0);
}
.blob-1 {
  top: -200px;
  left: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle at center, var(--primary-color) 0%, transparent 65%);
  opacity: 0.15;
}
.blob-2 {
  top: -100px;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle at center, var(--primary-color) 0%, transparent 60%);
  opacity: 0.1;
  animation-delay: -5s;
}
.blob-3 {
  top: 200px;
  left: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.9) 0%, transparent 60%);
  opacity: 0.6;
  animation-delay: -10s;
}
.mesh-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.08;
  mix-blend-mode: overlay;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

@keyframes floatBlob {
  0% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

.public-profile-container {
  position: relative;
  z-index: 1;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-neutral);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-contact:hover {
  background: var(--bg-white);
  border-color: var(--primary-color);
}
.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-neutral);
  color: var(--text-secondary);
  transition: all 0.2s;
}
.social-icon:hover {
  background: var(--primary-light);
  color: var(--primary-color);
}

.events-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}
.events-heading {
  margin-bottom: 0;
}
.events-filter {
  display: flex;
  gap: 8px;
}
.filter-tab {
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-tab.active,
.filter-tab:hover {
  background: var(--bg-neutral);
  color: var(--text-primary);
}

.price-badge {
  color: #10b981 !important;
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: transparent !important;
}

.availability-indicator {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  animation: pulse 2s infinite;
}
.pulse-dot.inactive {
  background: #94a3b8;
  box-shadow: none;
  animation: none;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.trusted-section {
  width: 100%;
  max-width: 1000px;
  margin-top: 80px;
  padding-top: 40px;
}
.trusted-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}
.trusted-line {
  flex: 1;
  height: 1px;
  background: var(--border-color);
}
.trusted-heading {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}
.trusted-logos {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 64px;
  opacity: 0.6;
  filter: grayscale(100%);
}
.logo-placeholder {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: -1px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.testimonial-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 32px;
  border-radius: 20px;
}
.stars {
  color: #fbbf24;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.testimonial-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 40px;
  height: 40px;
  background: var(--bg-neutral);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-secondary);
}
.author-info {
  display: flex;
  flex-direction: column;
}
.author-info strong {
  font-size: 14px;
  color: var(--text-primary);
}
.author-info span {
  font-size: 13px;
  color: var(--text-muted);
}

/* Adjust theme overrides for new elements */
body.theme-brutalist .testimonial-card {
  border: 3px solid #1a1a1a;
  border-radius: 0;
  box-shadow: 4px 4px 0 #1a1a1a;
}
body.theme-brutalist .btn-contact,
body.theme-brutalist .social-icon {
  border: 2px solid #1a1a1a;
  border-radius: 0;
}
body.theme-brutalist .filter-tab.active {
  border: 2px solid #1a1a1a;
  border-radius: 0;
  font-weight: 800;
}

body.theme-material .testimonial-card {
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
body.theme-material .btn-contact,
body.theme-material .social-icon {
  border-radius: 100px;
}

@media (max-width: 768px) {
  .events-section-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/* ANIMATIONS */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

@keyframes pop {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-pop {
  animation: pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .booking-wrapper {
    padding: 16px 12px !important;
    box-sizing: border-box !important;
  }

  .booking-container {
    display: flex;
    flex-direction: column;
    height: auto;
    max-width: 500px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  .public-profile-container {
    padding-left: 12px !important;
    padding-right: 12px !important;
    max-width: 500px !important;
    width: 100% !important;
    margin: 24px auto !important;
    box-sizing: border-box !important;
  }

  .info-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 64px 24px 24px 24px;
    height: auto;
    overflow: visible;
  }

  .info-panel-scroll {
    overflow-y: visible;
    padding-bottom: 0;
  }

  .embed-attribution-badge {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 24px;
  }

  .mini-avatar {
    top: 24px;
    right: 24px;
    width: 72px;
    height: 72px;
  }

  .scheduler-panel {
    height: auto;
    overflow: visible;
  }

  .scheduler-panel.split-view {
    grid-template-columns: 1fr;
  }

  .calendar-section {
    padding: 24px;
  }

  .slots-section {
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding: 24px;
    max-height: 350px;
    width: 100%;
  }

  .form-panel {
    padding: 24px;
  }

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

@media (max-width: 640px) {
  :root {
    --day-size: 38px;
    --day-gap: 4px;
  }

  .section-title {
    font-size: 16px;
    margin-bottom: 16px;
    text-align: center;
    align-self: center;
  }

  .calendar-section {
    padding: 16px 12px;
  }

  .header-container {
    padding: 0 12px;
  }

  .logo-text {
    display: none;
  }

  .nav {
    gap: 4px;
  }

  .nav-link {
    flex-direction: column;
    gap: 2px;
    padding: 6px 8px;
    font-size: 10px;
    border-radius: 6px;
    text-align: center;
  }

  .nav-icon {
    width: 18px;
    height: 18px;
  }

  .user-menu {
    gap: 6px;
  }

  .container {
    margin: 24px auto;
  }

  .booking-wrapper {
    padding: 16px 12px !important;
  }

  .username {
    display: none;
  }

  .dashboard-wrapper {
    padding: 0 12px;
    margin: 20px auto;
    gap: 20px;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
  }

  .dashboard-subheader {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
  }

  .user-summary {
    width: 100% !important;
  }

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

  /* Elegant wrapping pills for mobile */
  .tabs-nav {
    gap: 8px;
    flex-wrap: wrap;
    border-bottom: none;
    margin-bottom: 20px;
    display: flex;
  }

  .tabs-nav-floating {
    padding: 16px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .tab-btn {
    flex: 1 1 auto;
    font-size: 13px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid transparent;
    border-radius: 10px;
    justify-content: center;
    text-align: center;
    display: flex;
    align-items: center;
    color: var(--text-secondary);
  }

  .tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
  }

  .tab-btn::after {
    display: none !important;
  }

  .events-grid,
  .public-profile-container .events-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .admin-event-card {
    min-height: auto;
  }

  .card-meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .event-title {
    word-break: break-word;
  }

  .event-link {
    word-break: break-all;
  }

  .card-actions {
    padding: 12px;
  }

  .settings-grid {
    gap: 20px;
    width: 100%;
    max-width: 100%;
  }

  .settings-card,
  .settings-card-custom {
    padding: 16px !important;
    gap: 16px;
    width: 100%;
    max-width: 100%;
  }

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

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  .card-header div {
    padding-right: 0 !important;
  }

  .card-header button {
    width: 100%;
    justify-content: center;
  }

  /* Transform tables into responsive stackable key-value cards */
  .bookings-table-wrapper {
    overflow-x: visible; /* No scroll wrapper needed since table is block elements */
    width: 100%;
  }

  .bookings-table {
    min-width: 0 !important;
  }

  .bookings-table,
  .bookings-table thead,
  .bookings-table tbody,
  .bookings-table th,
  .bookings-table td,
  .bookings-table tr {
    display: block;
    width: 100% !important;
  }

  .bookings-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .bookings-table tr {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 12px;
    background-color: var(--bg-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  }

  .bookings-table td {
    border: none;
    border-bottom: 1px dashed var(--border-color);
    position: relative;
    padding: 10px 0 10px 140px;
    text-align: right;
    min-height: 48px;
    box-sizing: border-box;
  }

  .bookings-table td:last-child {
    border-bottom: none;
    padding-bottom: 4px;
    padding-top: 14px;
  }

  .bookings-table td::before {
    position: absolute;
    left: 0;
    top: 12px;
    width: 130px;
    text-align: left;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  /* Column headers for bookings table */
  #tab-bookings .bookings-table td:nth-of-type(1)::before {
    content: "Événement";
  }
  #tab-bookings .bookings-table td:nth-of-type(2)::before {
    content: "Client";
  }
  #tab-bookings .bookings-table td:nth-of-type(3)::before {
    content: "Paiement";
  }
  #tab-bookings .bookings-table td:nth-of-type(4)::before {
    content: "Date & Heure";
  }
  #tab-bookings .bookings-table td:nth-of-type(5)::before {
    content: "Réponses";
  }
  #tab-bookings .bookings-table td:nth-of-type(6)::before {
    content: "Actions";
  }

  /* Column headers for absences table (integrated in tab-availability) */
  #tab-availability .bookings-table td:nth-of-type(1)::before {
    content: "Motif";
  }
  #tab-availability .bookings-table td:nth-of-type(2)::before {
    content: "Début";
  }
  #tab-availability .bookings-table td:nth-of-type(3)::before {
    content: "Fin";
  }
  #tab-availability .bookings-table td:nth-of-type(4)::before {
    content: "Notes";
  }
  #tab-availability .bookings-table td:nth-of-type(5)::before {
    content: "Actions";
  }

  .bookings-table td.notes-col {
    max-width: 100%;
    word-break: break-word;
  }

  .bookings-table td form {
    width: 100%;
  }

  .bookings-table td button.btn-cancel-meeting,
  .bookings-table td button.btn-reschedule-meeting {
    width: 100%;
    justify-content: center;
    padding: 8px 12px;
    font-size: 13px;
  }

  .social-link-row {
    flex-direction: column;
    align-items: stretch !important;
    gap: 8px !important;
    background: rgba(0, 0, 0, 0.01);
    padding: 12px;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
  }

  .social-link-row select {
    width: 100% !important;
  }

  .social-link-row input {
    width: 100% !important;
  }

  .social-link-row button {
    width: 100% !important;
    justify-content: center;
  }

  .export-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .btn-export {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .modal-card {
    max-height: 90vh;
    overflow-y: auto;
  }
  .modal-header {
    padding: 16px;
  }
  .modal-body {
    padding: 16px;
    gap: 12px;
  }
  .modal-footer {
    flex-direction: column-reverse;
    gap: 8px;
    padding: 16px;
    width: 100%;
  }
  .modal-footer button,
  .modal-footer a {
    width: 100%;
    justify-content: center;
    text-align: center;
    margin: 0 !important;
  }
}

@media (max-width: 360px) {
  :root {
    --day-size: 34px;
    --day-gap: 2px;
  }
  .calendar-section {
    padding: 16px 8px;
  }
}

/* CUSTOM DATEPICKER STYLES */
.datepicker-popover {
  position: absolute;
  z-index: 9999;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 16px;
  width: 280px;
  display: none;
}

.datepicker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 4px;
}

.datepicker-header select {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--bg-white);
  outline: none;
  cursor: pointer;
}

.datepicker-btn {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background-color 0.2s;
}

.datepicker-btn:hover {
  background-color: var(--bg-neutral);
  color: var(--text-primary);
}

.datepicker-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

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

.datepicker-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.2s;
  border: none;
  background: none;
}

.datepicker-day:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.datepicker-day.selected {
  background-color: var(--primary-color);
  color: white;
  font-weight: 700;
}

.datepicker-day.empty {
  cursor: default;
  pointer-events: none;
}

/* Prevent search icon overlapping placeholder */
#bookingSearchInput {
  padding-left: 38px !important;
}

#unsplashModalSearchInput {
  padding-left: 38px !important;
}

/* Custom Audio Player Styles */
.event-audio-card {
  margin-top: 20px;
  background: color-mix(in srgb, var(--primary-color) 4%, var(--bg-neutral));
  padding: 14px 18px;
  border-radius: var(--border-radius-card, 16px);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.btn-audio-play-pause {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-color);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary-contrast, white);
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 0;
}

.btn-audio-play-pause:hover {
  transform: scale(1.06);
  filter: brightness(1.05);
}

.btn-audio-play-pause:active {
  transform: scale(0.95);
}

.audio-progress-bar-container {
  position: relative;
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.audio-progress-bar-filled {
  height: 100%;
  background: var(--primary-color);
  border-radius: 3px;
  transition: width 0.1s linear;
}

.audio-progress-knob {
  position: absolute;
  left: 0%;
  transform: translateX(-50%) scale(1);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition:
    left 0.1s linear,
    transform 0.1s ease;
  pointer-events: none;
}

/* Theme adaptations */

/* Material Theme */
body.theme-material .event-audio-card {
  border-radius: 24px !important;
  padding: 16px 20px;
  background: color-mix(in srgb, var(--primary-color) 6%, var(--bg-neutral)) !important;
}

body.theme-material .btn-audio-play-pause {
  border-radius: 12px !important;
}

body.theme-material .audio-progress-bar-container {
  height: 8px;
  border-radius: 4px !important;
}

body.theme-material .audio-progress-bar-filled {
  border-radius: 4px !important;
}

/* Brutalist Theme */
body.theme-brutalist .event-audio-card {
  border-radius: 0px !important;
  border: 3px solid #1a1a1a !important;
  background: var(--bg-white) !important;
  box-shadow: 4px 4px 0 #1a1a1a !important;
}

body.theme-brutalist .btn-audio-play-pause {
  border-radius: 0px !important;
  border: 2.5px solid #1a1a1a !important;
  background: var(--primary-color) !important;
  color: #1a1a1a !important;
  box-shadow: 2px 2px 0 #1a1a1a !important;
}

body.theme-brutalist .btn-audio-play-pause:hover {
  transform: translate(-1px, -1px) !important;
  box-shadow: 3px 3px 0 #1a1a1a !important;
  filter: none !important;
}

body.theme-brutalist .btn-audio-play-pause:active {
  transform: translate(1px, 1px) !important;
  box-shadow: 1px 1px 0 #1a1a1a !important;
}

body.theme-brutalist .btn-audio-play-pause svg {
  fill: #1a1a1a !important;
}

body.theme-brutalist .audio-progress-bar-container {
  height: 10px;
  border-radius: 0px !important;
  border: 2.5px solid #1a1a1a !important;
  background: var(--bg-white) !important;
}

body.theme-brutalist .audio-progress-bar-filled {
  border-radius: 0px !important;
  background: var(--primary-color) !important;
  border-right: 2px solid #1a1a1a;
}

body.theme-brutalist .audio-progress-knob {
  border-radius: 0px !important;
  background: var(--primary-color) !important;
  border: 2px solid #1a1a1a !important;
  width: 12px;
  height: 16px;
  box-shadow: none !important;
}

/* Midnight Theme */
body.theme-midnight .event-audio-card {
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2) !important;
}

body.theme-midnight .btn-audio-play-pause {
  background: linear-gradient(135deg, var(--primary-color), #8b5cf6) !important;
  box-shadow: 0 0 15px color-mix(in srgb, var(--primary-color) 30%, transparent) !important;
}

body.theme-midnight .btn-audio-play-pause:hover {
  box-shadow: 0 0 25px color-mix(in srgb, var(--primary-color) 50%, transparent) !important;
}

/* Custom Timezone Picker styling */
.timezone-custom-picker {
  position: relative;
  width: 100%;
  max-width: calc(7 * var(--day-size) + 6 * var(--day-gap));
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.timezone-picker-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-family: inherit;
}

.timezone-picker-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 1px solid var(--border-color);
  background: var(--bg-white);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  box-sizing: border-box;
  outline: none;
}

.timezone-dropdown {
  position: absolute;
  bottom: 105%;
  left: 0;
  width: 100%;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 100;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.timezone-search-wrapper {
  padding: 8px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-main);
}

.timezone-search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
  background: var(--bg-white);
  color: var(--text-main);
  font-family: inherit;
}

.timezone-options-list {
  max-height: 200px;
  overflow-y: auto;
  padding: 4px 0;
}

.timezone-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 8px 12px;
  font-size: 12.5px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
  font-family: inherit;
}

/* Theme adaptations */

/* BRUTALIST */
body.theme-brutalist .timezone-picker-btn {
  border: 2px solid #1a1a1a !important;
  border-radius: 0px !important;
  box-shadow: 2px 2px 0 #1a1a1a !important;
  background: #ffffff !important;
  color: #1a1a1a !important;
}

body.theme-brutalist .timezone-dropdown {
  border: 3px solid #1a1a1a !important;
  border-radius: 0px !important;
  box-shadow: 3px 3px 0 #1a1a1a !important;
  background: #ffffff !important;
}

body.theme-brutalist .timezone-search-input {
  border: 2px solid #1a1a1a !important;
  border-radius: 0px !important;
  background: #ffffff !important;
  color: #1a1a1a !important;
}

body.theme-brutalist .timezone-option-item {
  color: #1a1a1a !important;
}

/* MIDNIGHT (Dark Glassmorphism) */
body.theme-midnight .timezone-picker-btn {
  background: rgba(30, 41, 59, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  color: #e2e8f0 !important;
  border-radius: 8px !important;
}

body.theme-midnight .timezone-dropdown {
  background: rgba(15, 23, 42, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  color: #f1f5f9 !important;
  border-radius: 12px !important;
}

body.theme-midnight .timezone-search-wrapper {
  background: rgba(30, 41, 59, 0.5) !important;
}

body.theme-midnight .timezone-search-input {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #f1f5f9 !important;
}

body.theme-midnight .timezone-option-item {
  color: #cbd5e1 !important;
}

/* MATERIAL */
body.theme-material .timezone-picker-btn {
  border-radius: 12px !important;
}

body.theme-material .timezone-dropdown {
  border-radius: 16px !important;
}

/* Discreet Action Icons for bookings list */
.btn-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  padding: 0;
}
.btn-action-icon:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: var(--primary-light);
}
.btn-action-icon.btn-cancel-action:hover {
  color: #ef4444;
  border-color: #fecaca;
  background: #fef2f2;
}

/* Theme adaptations for Action Icons */
body.theme-brutalist .btn-action-icon {
  border: 2px solid #1a1a1a !important;
  border-radius: 0px !important;
  box-shadow: 1px 1px 0 #1a1a1a !important;
}
body.theme-brutalist .btn-action-icon:hover {
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 #1a1a1a !important;
}

body.theme-midnight .btn-action-icon {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
}
body.theme-midnight .btn-action-icon:hover {
  background: color-mix(in srgb, var(--primary-color) 10%, transparent) !important;
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
}
body.theme-midnight .btn-action-icon.btn-cancel-action:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}

body.theme-material .btn-action-icon {
  border-radius: 10px !important;
}

/* Mini-badge structure for date and time */
.booking-datetime {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-neutral, rgba(0, 0, 0, 0.02));
  border: 1px solid var(--border-color);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.booking-datetime:hover {
  background-color: var(--bg-hover, rgba(0, 0, 0, 0.04));
  border-color: var(--text-muted);
}

.booking-datetime .datetime-icon {
  color: var(--text-muted);
  opacity: 0.8;
  flex-shrink: 0;
}

.booking-datetime .datetime-date {
  font-weight: 600;
  color: var(--text-primary);
}

.booking-datetime .datetime-separator {
  color: var(--text-muted);
  opacity: 0.5;
  font-size: 11px;
}

.booking-datetime .datetime-time {
  font-weight: 700;
  color: var(--primary-color);
}

/* Midnight Theme overrides */
body.theme-midnight .booking-datetime {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
body.theme-midnight .booking-datetime:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}
body.theme-midnight .booking-datetime .datetime-time {
  color: var(--primary-color);
}

/* Brutalist Theme overrides */
body.theme-brutalist .booking-datetime {
  background-color: #fff !important;
  border: 2px solid #1a1a1a !important;
  border-radius: 0px !important;
  box-shadow: 1.5px 1.5px 0 #1a1a1a !important;
}
body.theme-brutalist .booking-datetime:hover {
  transform: translate(-0.5px, -0.5px);
  box-shadow: 2px 2px 0 #1a1a1a !important;
}

/* Material Theme overrides */
body.theme-material .booking-datetime {
  border-radius: 12px;
}

/* Event Video & Image Containers (16:9 Responsive Ratio) */
.event-video-container,
.event-image-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  background: var(--bg-neutral);
  margin-top: 16px;
}

/* Layout Attribution Badge styling */
.layout-attribution-badge {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 900px) {
  .layout-attribution-badge {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    padding: 40px 24px 24px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
  }
}

/* ==========================================================================
     THEME: GLAMOUR (Chic, Rosé & Glossy Féminin)
     ========================================================================== */
body.theme-glamour {
  --primary-color: #ff4da6; /* Rose pétale lumineux */
  --primary-hover: #ff1a8c;
  --primary-light: #fff0f5; /* LavenderBlush */
  --border-radius-card: 24px;
  --border-radius-btn: 100px;
  --font-family-sans: "Plus Jakarta Sans", sans-serif;
  --bg-neutral: #fff5f8;
  --text-primary: #4a1224; /* Bordeaux doux pour la lisibilité */
  --text-secondary: #7d2c48;
  --text-muted: #b8758d;
  --border-color: rgba(255, 77, 166, 0.18);
  --bg-white: rgba(255, 255, 255, 0.85); /* Cartes translucides */
  background-color: #fff9fa !important;
  color: #4a1224 !important;
}

body.theme-glamour:not(.has-bg-image) #layout-bg {
  background:
    radial-gradient(circle at 10% 10%, #fff0f5 0%, transparent 40%), radial-gradient(circle at 90% 90%, #ffe3f0 0%, transparent 50%),
    linear-gradient(135deg, #fffcfd 0%, #fff0f5 100%) !important;
  display: block !important;
  opacity: 1 !important;
}

/* Glossy frosted glass cards */
body.theme-glamour .event-card,
body.theme-glamour .admin-event-card,
body.theme-glamour .booking-container,
body.theme-glamour .profile-card,
body.theme-glamour .bookings-card,
body.theme-glamour .settings-card,
body.theme-glamour .settings-card-custom,
body.theme-glamour .profile-submit-bar,
body.theme-glamour .modal-card,
body.theme-glamour .success-card {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  box-shadow:
    0 15px 35px rgba(255, 77, 166, 0.06),
    0 5px 15px rgba(0, 0, 0, 0.01),
    inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  border-radius: 24px !important;
}

/* Soft Glossy Inputs */
body.theme-glamour .form-input,
body.theme-glamour .form-textarea,
body.theme-glamour .form-select,
body.theme-glamour .slug-input-wrapper {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1.5px solid rgba(255, 77, 166, 0.2) !important;
  border-radius: 14px !important;
  color: #4a1224 !important;
  box-shadow: inset 0 1px 2px rgba(255, 77, 166, 0.02) !important;
}
body.theme-glamour .form-input:focus,
body.theme-glamour .form-textarea:focus,
body.theme-glamour .form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 4px rgba(255, 77, 166, 0.15) !important;
  background: #ffffff !important;
}

/* Glossy Candy Buttons */
body.theme-glamour .btn-submit,
body.theme-glamour .btn-primary,
body.theme-glamour .btn-create-event,
body.theme-glamour .slot-confirm-btn {
  background: linear-gradient(135deg, #ff7eb9 0%, #ff2a7a 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow:
    0 6px 18px rgba(255, 42, 122, 0.25),
    inset 0 2px 2px rgba(255, 255, 255, 0.4),
    inset 0 -2px 2px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
body.theme-glamour .btn-submit:hover,
body.theme-glamour .btn-primary:hover,
body.theme-glamour .btn-create-event:hover,
body.theme-glamour .slot-confirm-btn:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow:
    0 8px 22px rgba(255, 42, 122, 0.35),
    inset 0 2px 2px rgba(255, 255, 255, 0.5) !important;
}
body.theme-glamour .btn-submit:active,
body.theme-glamour .btn-primary:active,
body.theme-glamour .btn-create-event:active,
body.theme-glamour .slot-confirm-btn:active {
  transform: translateY(1px) scale(0.98) !important;
}

/* Glossy Secondary buttons */
body.theme-glamour .btn-secondary {
  background: rgba(255, 255, 255, 0.7) !important;
  color: var(--primary-color) !important;
  border: 1px solid rgba(255, 77, 166, 0.3) !important;
  backdrop-filter: blur(5px) !important;
}
body.theme-glamour .btn-secondary:hover {
  background: #fff0f5 !important;
  border-color: var(--primary-color) !important;
}

/* Elegant Rose Calendar */
body.theme-glamour .calendar-day.available {
  background-color: #fff0f3 !important;
  color: var(--primary-color) !important;
  font-weight: 700 !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 77, 166, 0.08) !important;
}
body.theme-glamour .calendar-day.available:hover {
  background-color: var(--primary-color) !important;
  color: white !important;
  transform: scale(1.1) !important;
  box-shadow: 0 4px 10px rgba(255, 77, 166, 0.2) !important;
}
body.theme-glamour .calendar-day.selected {
  background-color: var(--primary-color) !important;
  color: white !important;
  font-weight: bold !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 12px rgba(255, 42, 122, 0.35) !important;
}

/* Glossy slots */
body.theme-glamour .slot-time-btn {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(255, 77, 166, 0.25) !important;
  color: var(--primary-color) !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
}
body.theme-glamour .slot-time-btn:hover {
  background: var(--primary-color) !important;
  color: white !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 4px 12px rgba(255, 77, 166, 0.2) !important;
}

body.theme-glamour .booking-datetime {
  border-radius: 16px;
  background-color: #fff0f3;
  border: 1px solid rgba(255, 77, 166, 0.2);
}

/* ==========================================================================
     THEME: ARCANE (Mystique & Grimoire)
     ========================================================================== */
/* Keyframes for Arcane Theme Animations */
@keyframes arcane-ambient-drift {
  0% {
    background-position:
      20% 30%,
      80% 70%,
      50% 50%;
  }
  50% {
    background-position:
      35% 45%,
      65% 55%,
      50% 50%;
  }
  100% {
    background-position:
      20% 30%,
      80% 70%,
      50% 50%;
  }
}

@keyframes arcane-comet-flow {
  0% {
    box-shadow:
      0 0 12px rgba(197, 155, 39, 0.15),
      inset 0 0 15px rgba(197, 155, 39, 0.02);
  }
  50% {
    box-shadow:
      0 0 20px rgba(197, 155, 39, 0.25),
      inset 0 0 25px rgba(168, 85, 247, 0.04);
  }
  100% {
    box-shadow:
      0 0 12px rgba(197, 155, 39, 0.15),
      inset 0 0 15px rgba(197, 155, 39, 0.02);
  }
}

body.theme-arcane {
  --primary-color: #c59b27; /* Antique Gold */
  --primary-hover: #b0861d;
  --primary-light: rgba(197, 155, 39, 0.08);
  --border-radius-card: 16px 4px;
  --border-radius-btn: 12px 2px;
  --font-family-sans: "Playfair Display", Georgia, serif;
  --bg-neutral: #f5eedc; /* Vieux parchemin */
  --text-primary: #322013; /* Encre brune */
  --text-secondary: #5c4636;
  --text-muted: #8c7665;
  --border-color: rgba(197, 155, 39, 0.3);
  --bg-white: #fdfdfd;
  background-color: #fdfaf2 !important;
  color: #322013 !important;
}

/* Ambient Mystic Nebula Background (Light parchment variant) */
body.theme-arcane:not(.has-bg-image) #layout-bg {
  background-color: #fdfaf2 !important;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(197, 155, 39, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 75% 75%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(253, 251, 242, 0.4) 0%, #f5eedc 100%) !important;
  background-size: 200% 200% !important;
  display: block !important;
  opacity: 1 !important;
  animation: arcane-ambient-drift 20s ease-in-out infinite !important;
}

body.theme-arcane.has-bg-image #layout-bg {
  filter: sepia(0.35) contrast(1.05) brightness(0.95) !important;
  position: fixed !important;
}

body.theme-arcane.has-bg-image #layout-bg::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(197, 155, 39, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 75% 75%, rgba(168, 85, 247, 0.09) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(253, 251, 242, 0.3) 0%, #f5eedc 100%) !important;
  background-size: 200% 200% !important;
  mix-blend-mode: multiply !important;
  animation: arcane-ambient-drift 20s ease-in-out infinite !important;
  z-index: 1 !important;
  pointer-events: none !important;
  display: block !important;
}

/* Asymmetrical Parchment Cards */
body.theme-arcane .event-card,
body.theme-arcane .admin-event-card,
body.theme-arcane .booking-container,
body.theme-arcane .profile-card,
body.theme-arcane .bookings-card,
body.theme-arcane .settings-card,
body.theme-arcane .settings-card-custom,
body.theme-arcane .profile-submit-bar,
body.theme-arcane .modal-card,
body.theme-arcane .success-card {
  background: linear-gradient(135deg, #ffffff 0%, #faf5e8 100%) !important;
  border: 1px solid rgba(197, 155, 39, 0.32) !important;
  box-shadow:
    0 10px 30px rgba(50, 32, 19, 0.06),
    0 0 0 1px rgba(197, 155, 39, 0.04) inset,
    inset 0 0 20px rgba(197, 155, 39, 0.02) !important;
  border-radius: 18px 4px 18px 4px !important;
  position: relative;
  transition:
    transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease !important;
}

body.theme-arcane .event-card:hover,
body.theme-arcane .admin-event-card:hover,
body.theme-arcane .profile-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 15px 35px rgba(50, 32, 19, 0.12),
    0 0 15px rgba(197, 155, 39, 0.18),
    inset 0 0 25px rgba(197, 155, 39, 0.04) !important;
  border-color: rgba(197, 155, 39, 0.55) !important;
}

body.theme-arcane .booking-container {
  transition: box-shadow 0.3s ease, border-color 0.3s ease !important;
}

body.theme-arcane .booking-container:hover {
  transform: none;
}

/* Mysterious Headings & Glowing Text */
body.theme-arcane h1,
body.theme-arcane h2,
body.theme-arcane h3,
body.theme-arcane h4,
body.theme-arcane .profile-details h1,
body.theme-arcane .hero-name,
body.theme-arcane .logo-text,
body.theme-arcane label,
body.theme-arcane select,
body.theme-arcane input,
body.theme-arcane textarea,
body.theme-arcane button {
  font-family: "Playfair Display", Georgia, serif !important;
}

body.theme-arcane h1,
body.theme-arcane h2,
body.theme-arcane h3,
body.theme-arcane h4,
body.theme-arcane .hero-name,
body.theme-arcane .logo-text {
  letter-spacing: 0.06em;
  color: #322013 !important;
  text-shadow:
    0 0 8px rgba(197, 155, 39, 0.15),
    0 0 1px rgba(197, 155, 39, 0.3) !important;
  font-weight: 700;
}

/* Mysterious scroll inputs */
body.theme-arcane .form-input,
body.theme-arcane .form-textarea,
body.theme-arcane .form-select,
body.theme-arcane .slug-input-wrapper {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(197, 155, 39, 0.25) !important;
  border-radius: 8px 2px 8px 2px !important;
  color: #322013 !important;
  box-shadow: inset 0 1px 5px rgba(50, 32, 19, 0.05) !important;
  transition: all 0.3s ease !important;
}

body.theme-arcane .form-input:focus,
body.theme-arcane .form-textarea:focus,
body.theme-arcane .form-select:focus {
  border-color: #c59b27 !important;
  background: #ffffff !important;
  box-shadow:
    inset 0 1px 5px rgba(50, 32, 19, 0.08),
    0 0 8px rgba(197, 155, 39, 0.2) !important;
  outline: none !important;
}

/* Flowing Liquid Gold Buttons */
body.theme-arcane .btn-submit,
body.theme-arcane .btn-primary,
body.theme-arcane .btn-create-event,
body.theme-arcane .slot-confirm-btn {
  background: linear-gradient(135deg, #dfb15b 0%, #b8862d 50%, #dfb15b 100%) !important;
  background-size: 200% auto !important;
  color: #322013 !important;
  font-weight: 700 !important;
  border: 1px solid rgba(197, 155, 39, 0.4) !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 3px 10px rgba(197, 155, 39, 0.15) !important;
  border-radius: 10px 2px 10px 2px !important;
  transition: all 0.4s ease !important;
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 13.5px;
  text-shadow: none !important;
}

body.theme-arcane .btn-submit:hover,
body.theme-arcane .btn-primary:hover,
body.theme-arcane .btn-create-event:hover,
body.theme-arcane .slot-confirm-btn:hover {
  background-position: right center !important;
  color: #ffffff !important;
  border-color: #b8862d !important;
  box-shadow:
    0 0 15px rgba(197, 155, 39, 0.3),
    0 6px 12px rgba(168, 85, 247, 0.18) !important;
  transform: translateY(-2px);
}

body.theme-arcane .btn-secondary {
  background: rgba(255, 255, 255, 0.6) !important;
  color: #b8862d !important;
  border: 1px dashed rgba(197, 155, 39, 0.35) !important;
  border-radius: 10px 2px 10px 2px !important;
  transition: all 0.3s ease !important;
}

body.theme-arcane .btn-secondary:hover {
  background: rgba(197, 155, 39, 0.06) !important;
  border-style: solid !important;
  border-color: #b8862d !important;
}

/* Planetary Calendar Days & Orbits */
body.theme-arcane .calendar-day.available {
  background-color: rgba(255, 255, 255, 0.7) !important;
  border: 1px dashed rgba(197, 155, 39, 0.3) !important;
  color: #b8862d !important;
  border-radius: 50% !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

body.theme-arcane .calendar-day.available:hover {
  background-color: #dfb15b !important;
  color: #322013 !important;
  border-style: solid !important;
  box-shadow: 0 0 12px rgba(197, 155, 39, 0.5) !important;
  transform: none;
}

body.theme-arcane .calendar-day.selected {
  background-color: #dfb15b !important;
  color: #322013 !important;
  font-weight: bold !important;
  border-radius: 50% !important;
  border: 2px solid #b8862d !important;
  box-shadow:
    0 0 15px rgba(197, 155, 39, 0.6),
    0 0 0 3px rgba(197, 155, 39, 0.12) !important;
  transform: scale(1.1);
}

/* Runic Time Slot Buttons */
body.theme-arcane .slot-time-btn {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(197, 155, 39, 0.28) !important;
  color: #b8862d !important;
  border-radius: 8px 2px 8px 2px !important;
  transition: all 0.3s ease !important;
  font-family: "Playfair Display", Georgia, serif !important;
}

body.theme-arcane .slot-time-btn:hover {
  background: #dfb15b !important;
  color: #322013 !important;
  box-shadow: 0 0 10px rgba(197, 155, 39, 0.35) !important;
  border-color: #dfb15b !important;
  transform: translateY(-2px);
}

body.theme-arcane .booking-datetime {
  border-radius: 12px 2px 12px 2px;
  background-color: #fdfdfd;
  border: 1px solid rgba(197, 155, 39, 0.28);
  box-shadow: inset 0 1px 4px rgba(50, 32, 19, 0.05);
}

/* Glowing Scroll Tabs & Active Navigation Links */
body.theme-arcane .nav-link.active,
body.theme-arcane .tab-btn.active,
body.theme-arcane .filter-tab.active {
  background-color: rgba(197, 155, 39, 0.08) !important;
  color: #b8862d !important;
  border: 1px solid rgba(197, 155, 39, 0.35) !important;
  text-shadow: 0 0 4px rgba(197, 155, 39, 0.15) !important;
  border-radius: 8px 2px 8px 2px !important;
}

body.theme-arcane .tab-btn.active::after {
  background: #dfb15b !important;
  box-shadow: 0 0 8px #dfb15b !important;
  height: 2px !important;
}

/* Antique Custom Audio Player Styling */
body.theme-arcane .event-audio-card {
  background: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(197, 155, 39, 0.22) !important;
  border-radius: 14px 4px 14px 4px !important;
  box-shadow: inset 0 0 12px rgba(197, 155, 39, 0.03) !important;
}

body.theme-arcane .btn-audio-play-pause {
  background: #dfb15b !important;
  color: #322013 !important;
  border-radius: 50% !important;
  box-shadow: 0 0 10px rgba(197, 155, 39, 0.35) !important;
}

body.theme-arcane .btn-audio-play-pause:hover {
  background: #ffffff !important;
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(197, 155, 39, 0.5) !important;
}

body.theme-arcane .audio-progress-bar-container {
  background: rgba(197, 155, 39, 0.08) !important;
  border-radius: 4px !important;
}

body.theme-arcane .audio-progress-bar-filled {
  background: linear-gradient(90deg, #dfb15b, #b8862d) !important;
}

body.theme-arcane .audio-progress-knob {
  background: #dfb15b !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 0 8px rgba(197, 155, 39, 0.4) !important;
}

/* Mystic reviews and FAQ items */
body.theme-arcane .review-card,
body.theme-arcane .faq-item {
  background: rgba(255, 255, 255, 0.6) !important;
  border: 1px solid rgba(197, 155, 39, 0.2) !important;
  border-radius: 12px 2px 12px 2px !important;
}

/* ==========================================================================
     THEME: SOLARIS (L'Épure E-Ink / Papier)
     ========================================================================== */
body.theme-solaris {
  --primary-color: #1c1c1c;
  --primary-hover: #000000;
  --primary-light: #e8e6e0;
  --border-radius-card: 0px;
  --border-radius-btn: 0px;
  --font-family-sans: "Courier New", Courier, monospace;
  --bg-neutral: #f5f3ed;
  --text-primary: #1c1c1c;
  --text-secondary: #4a4a4a;
  --text-muted: #7a7a7a;
  --border-color: #1c1c1c;
  --bg-white: #fbf9f4;
  background-color: #fbf9f4 !important;
  color: #1c1c1c !important;
}

body.theme-solaris:not(.has-bg-image) #layout-bg {
  background: #fbf9f4 !important;
  display: block !important;
  opacity: 1 !important;
}

body.theme-solaris * {
  font-family: "Courier New", Courier, monospace !important;
}

body.theme-solaris .event-card,
body.theme-solaris .admin-event-card,
body.theme-solaris .booking-container,
body.theme-solaris .profile-card,
body.theme-solaris .bookings-card,
body.theme-solaris .settings-card,
body.theme-solaris .settings-card-custom,
body.theme-solaris .profile-submit-bar,
body.theme-solaris .modal-card,
body.theme-solaris .success-card {
  background: #fbf9f4 !important;
  border: 1px solid #1c1c1c !important;
  border-radius: 0px !important;
  box-shadow: none !important;
}

/* Flat Raw Inputs */
body.theme-solaris .form-input,
body.theme-solaris .form-textarea,
body.theme-solaris .form-select,
body.theme-solaris .slug-input-wrapper {
  background: #fbf9f4 !important;
  border: 1px solid #1c1c1c !important;
  border-radius: 0px !important;
  color: #1c1c1c !important;
}
body.theme-solaris .form-input:focus,
body.theme-solaris .form-textarea:focus,
body.theme-solaris .form-select:focus {
  outline: 2px solid #1c1c1c !important;
  box-shadow: none !important;
}

/* Dashed & Inverting Buttons */
body.theme-solaris .btn-submit,
body.theme-solaris .btn-primary,
body.theme-solaris .btn-create-event,
body.theme-solaris .slot-confirm-btn {
  background: #fbf9f4 !important;
  color: #1c1c1c !important;
  border: 1px solid #1c1c1c !important;
  border-radius: 0px !important;
  font-weight: bold !important;
  box-shadow: none !important;
  transition: none !important;
}
body.theme-solaris .btn-submit:hover,
body.theme-solaris .btn-primary:hover,
body.theme-solaris .btn-create-event:hover,
body.theme-solaris .slot-confirm-btn:hover {
  background: #1c1c1c !important;
  color: #fbf9f4 !important;
}

body.theme-solaris .btn-secondary {
  background: #fbf9f4 !important;
  color: #1c1c1c !important;
  border: 1px dashed #1c1c1c !important;
  border-radius: 0px !important;
}
body.theme-solaris .btn-secondary:hover {
  border-style: solid !important;
}

/* Monospaced Calendar */
body.theme-solaris .calendar-day.available {
  background-color: transparent !important;
  border: 1px dashed #1c1c1c !important;
  border-radius: 0px !important;
  color: #1c1c1c !important;
}
body.theme-solaris .calendar-day.available:hover {
  background-color: #1c1c1c !important;
  color: #fbf9f4 !important;
  border-style: solid !important;
}
body.theme-solaris .calendar-day.selected {
  background-color: #1c1c1c !important;
  color: #fbf9f4 !important;
  border-style: solid !important;
  font-weight: bold !important;
}

body.theme-solaris .slot-time-btn {
  border-radius: 0px !important;
  background: transparent !important;
  border: 1px dashed #1c1c1c !important;
  color: #1c1c1c !important;
  transition: none !important;
}
body.theme-solaris .slot-time-btn:hover {
  background: #1c1c1c !important;
  color: #fbf9f4 !important;
  border-style: solid !important;
}

body.theme-solaris .booking-datetime {
  border-radius: 0px;
  background-color: #fbf9f4;
  border: 1px solid #1c1c1c;
}

/* Enforce transparency when custom background image is applied */
body.has-bg-image,
body.theme-luxcall.has-bg-image,
body.theme-material.has-bg-image,
body.theme-brutalist.has-bg-image,
body.theme-midnight.has-bg-image,
body.theme-glamour.has-bg-image,
body.theme-arcane.has-bg-image,
body.theme-solaris.has-bg-image {
  background-color: transparent !important;
  background-image: none !important;
}

/* AUTH (login / register / reset) */
.auth-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 48px;
  min-height: 100vh;
  gap: 22px;
  background:
    radial-gradient(1200px 480px at 50% -80px, color-mix(in srgb, var(--primary-color) 9%, transparent), transparent 70%),
    var(--bg-neutral);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
}

.auth-brand .logo-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.auth-brand .logo-text {
  display: inline !important;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.45px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-white);
  border: 1px solid color-mix(in srgb, var(--border-color) 80%, #fff);
  border-radius: 16px;
  padding: 22px 24px 26px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 32px rgba(15, 23, 42, 0.06);
  text-align: left;
}

.auth-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  margin: 0 0 20px;
  background: #f1f3f7;
  border-radius: 11px;
}

.auth-segment a {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.15px;
  color: var(--text-muted);
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.auth-segment a:hover:not(.is-active) {
  color: var(--text-secondary);
}

.auth-segment a.is-active {
  background: #fff;
  color: var(--text-primary);
  font-weight: 600;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 1px 1px rgba(15, 23, 42, 0.04);
}

.auth-segment a:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.auth-lead {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: center;
}

.auth-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  text-align: center;
}

.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-card .form-group {
  gap: 6px;
}

.auth-card .form-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.1px;
}

.auth-card .form-input,
.auth-card .form-textarea {
  height: 44px;
  padding: 0 14px;
  font-size: 15px;
  line-height: normal;
  border-radius: 10px !important;
  border-color: #e4e7ec;
  background: #fff;
  box-sizing: border-box;
}

.auth-card .form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 16%, transparent);
}

.auth-submit,
.auth-card .auth-submit.btn-submit,
.auth-card button.auth-submit {
  height: 44px;
  padding: 0 18px;
  margin-top: 4px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  border: none;
  border-radius: 10px !important;
  background: var(--primary-color);
  color: var(--primary-contrast);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.15px;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--primary-color) 28%, transparent);
  transition:
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.auth-submit:hover,
.auth-card .auth-submit.btn-submit:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 22%, transparent);
}

.auth-submit:active {
  transform: translateY(1px);
}

.auth-submit:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.auth-inline {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.auth-inline .form-input,
.auth-card .auth-inline .form-input {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  margin: 0;
  height: 44px;
}

.auth-inline .auth-submit,
.auth-card .auth-inline .auth-submit,
.auth-card .auth-inline button.auth-submit {
  width: 112px;
  min-width: 112px;
  max-width: 112px;
  margin: 0;
  flex: 0 0 112px;
}

.auth-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.auth-error {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  display: none;
}

.auth-banner {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 14px;
}

.auth-banner.ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.auth-banner.info {
  background: #eef4ff;
  border: 1px solid #c7d2fe;
  color: #3730a3;
}

.auth-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.auth-legal a {
  color: var(--text-muted);
  text-decoration: none;
}

.auth-legal a:hover {
  color: var(--text-secondary);
}

.auth-legal span {
  opacity: 0.45;
}

@media (max-width: 640px) {
  .auth-shell {
    padding: 28px 16px 140px;
    justify-content: flex-start;
    padding-top: 36px;
  }

  .auth-card {
    padding: 18px 16px 22px;
    border-radius: 14px;
  }

  .auth-card .form-input {
    font-size: 16px; /* iOS: no zoom on focus */
  }

  #cookie-banner {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    max-width: none !important;
    border-radius: 16px 16px 0 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
  }
}

#btn-cookie-deny,
#btn-cookie-accept {
  height: 36px;
  min-width: 88px;
  padding: 0 14px !important;
  border-radius: 9px !important;
  font-size: 13px !important;
  font-weight: 600;
}
