:root {
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-elegant: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --bg-color: #121212;
  --card-bg: #1e1e1e;
  --text-color: #ecf0f1;
  --text-muted: #bdc3c7;
  --accent-color: #a78bfa;
  --accent-hover: #8b5cf6;
  --accent-light: #c4b5fd;
  --gold: #f1c40f;
  --border-radius: 12px;
  --shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  --modal-overlay: rgba(0, 0, 0, 0.85);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --danger: #e74c3c;
  --success: #2ecc71;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px;
  /* Space for fab */
}

body.admin-page {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: 100vw;
}

body.admin-page #root {
  overflow-x: hidden;
  max-width: 100vw;
}

body.admin-page::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body.admin-page * {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.admin-page *::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

body.admin-page .container {
  width: min(1200px, 100%);
  overflow-x: hidden;
}

header {
  text-align: center;
  margin-bottom: 40px;
}

header h1 {
  font-family: var(--font-elegant);
  font-weight: 500;
  font-size: 3.5rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text-color), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

body.admin-page header h1 {
  line-height: 1.12;
  padding-top: 2px;
  margin-bottom: 8px;
}

header p {
  font-family: var(--font-main);
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 4px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Shorts Carousel */
.carousel-container {
  perspective: 1000px;
  height: 620px;
  /* Adjusted for larger cards */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}

.carousel-empty {
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.4px;
}

.carousel-card {
  width: 340px;
  height: 560px;
  background: var(--card-bg);
  border-radius: 24px;
  box-shadow: var(--shadow);
  position: absolute;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  color: #555;
  border: 1px solid #333;
  overflow: hidden;
  cursor: pointer;
}

.carousel-card.active {
  transform: translateX(0) scale(1.05);
  z-index: 10;
  border-color: var(--accent-color);
  box-shadow: 0 0 30px rgba(167, 139, 250, 0.5);
}

.carousel-card.prev {
  transform: translateX(-300px) scale(0.85) rotateY(15deg);
  z-index: 5;
  filter: brightness(0.7);
}

.carousel-card.next {
  transform: translateX(300px) scale(0.85) rotateY(-15deg);
  z-index: 5;
  filter: brightness(0.7);
}

.carousel-card.hidden {
  opacity: 0;
  z-index: 0;
}

/* Reel Carousel Styles - Local Videos */
.carousel-card.reel {
  background: #000;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.video-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* Mute Toggle Button */
.mute-toggle {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.mute-toggle:hover {
  background: rgba(167, 139, 250, 0.8);
  border-color: rgba(167, 139, 250, 1);
  transform: scale(1.1);
}

.mute-toggle .mute-icon {
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.mute-toggle .mute-icon .wave {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mute-toggle .mute-icon .slash {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.mute-toggle.unmuted .mute-icon {
  color: rgba(167, 139, 250, 1);
}

.mute-toggle.unmuted .mute-icon .wave {
  opacity: 1;
}

.mute-toggle.unmuted .mute-icon .slash {
  opacity: 0;
}

.carousel-card.active .mute-toggle {
  display: flex;
}

/* Booking Page Layout */
.booking-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

@media (max-width: 850px) {
  .booking-layout {
    grid-template-columns: 1fr;
  }
}

.calendar-container {
  background: var(--card-bg);
  padding: 30px;
  border-radius: var(--border-radius);
  border: 1px solid #333;
  height: fit-content;
}

.calendar-grid-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: bold;
  color: var(--text-muted);
  margin-bottom: 15px;
}

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

.calendar-day-btn {
  background: #2a2a2a;
  border: 1px solid #444;
  color: var(--text-color);
  padding: 15px 5px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.calendar-day-btn:hover:not(:disabled) {
  border-color: var(--accent-color);
  background: #333;
}

.calendar-day-btn.selected {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

.calendar-day-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.calendar-day-btn.today {
  border-color: var(--gold);
  color: var(--gold);
}

.time-selector-group {
  display: flex;
  gap: 10px;
}

.form-control {
  background: #2a2a2a;
  border: 1px solid #444;
  color: white;
  padding: 12px;
  border-radius: 8px;
  width: 100%;
  font-family: inherit;
}

.back-link {
  display: block;
  margin-bottom: 20px;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Modal & Floating Button */
.fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(167, 139, 250, 0.72);
  color: white;
  padding: 18px 32px;
  border-radius: 50px;
  box-shadow: 0 8px 20px rgba(167, 139, 250, 0.32);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 100;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.fab:hover {
  background: rgba(139, 92, 246, 0.78);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(139, 92, 246, 0.38);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--modal-overlay);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--card-bg);
  padding: 40px;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 600px;
  position: relative;
  transform: translateY(20px);
  transition: var(--transition);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid #333;
}

.modal-overlay.open .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

/* Form Styles Dark Mode */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-color);
  font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
input[type="time"],
textarea {
  width: 100%;
  padding: 14px;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: var(--border-radius);
  color: white;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  background: #333;
}

button.btn-primary {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 16px;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: var(--transition);
  margin-top: 20px;
}

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

h2 {
  color: var(--text-color);
  border-bottom-color: #333;
}

/* Admin/Sign specific adjustments for dark mode */
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.btn-small {
  background: #2e2e2e;
  color: var(--text-color);
  border: 1px solid #474747;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-small:hover {
  background: #393939;
  border-color: #5c5c5c;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-tab-btn {
  border: 1px solid #3f3f3f;
  background: #252525;
  color: var(--text-muted);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.admin-tab-btn:hover {
  border-color: #6050a5;
  color: var(--text-color);
}

.admin-tab-btn.active {
  border-color: rgba(167, 139, 250, 0.65);
  background: rgba(167, 139, 250, 0.2);
  color: #f3ecff;
}

.admin-media-panel {
  display: grid;
  gap: 14px;
}

.admin-media-upload-card,
.admin-media-item {
  background: linear-gradient(145deg, #252525 0%, #1f1f1f 100%);
  border: 1px solid #3a3a3a;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.admin-media-upload-card {
  padding: 14px;
}

.admin-media-upload-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.admin-media-upload-form input[type="file"] {
  width: 100%;
  min-width: 0;
}

.admin-media-toolbar {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-media-toolbar .btn-small:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.admin-media-upload-btn {
  margin-top: 0;
}

.admin-media-list {
  display: grid;
  gap: 12px;
}

.admin-media-item {
  display: grid;
  grid-template-columns: minmax(170px, 240px) minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  align-items: flex-start;
}

.admin-media-item.is-hidden {
  opacity: 0.74;
}

.admin-media-item.is-hidden .admin-media-preview {
  filter: grayscale(0.2) brightness(0.78);
}

.admin-media-preview {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #3a3a3a;
  background: #000;
  aspect-ratio: 9 / 16;
}

.admin-media-meta {
  min-width: 0;
}

.admin-media-meta p {
  margin: 0 0 8px;
}

.admin-media-link {
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.35;
  word-break: break-all;
}

.admin-media-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.admin-media-actions .nav-icon-btn {
  flex-shrink: 0;
}

.admin-media-actions .booking-action-btn {
  margin-top: 0;
  width: auto;
  flex: none;
  min-height: 34px;
  padding: 8px 12px;
}

.nav-icon-btn:disabled,
.admin-media-actions .booking-action-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

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

.booking-card {
  background: linear-gradient(145deg, #252525 0%, #1f1f1f 100%);
  border: 1px solid #3a3a3a;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  color: var(--text-color);
  margin-bottom: 14px;
  overflow: hidden;
}

.booking-card:last-child {
  margin-bottom: 0;
}

.booking-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.booking-header h3 {
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 600;
}

.booking-card p {
  margin: 6px 0;
  color: var(--text-muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.booking-card p strong {
  color: var(--text-color);
  font-weight: 600;
}

.booking-card a {
  color: var(--accent-color) !important;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.2px;
  opacity: 1;
}

.status-pending {
  color: #f1c40f;
  border-color: rgba(241, 196, 15, 0.35);
  background: rgba(241, 196, 15, 0.14);
}

.status-accepted {
  color: #2ecc71;
  border-color: rgba(46, 204, 113, 0.35);
  background: rgba(46, 204, 113, 0.14);
}

.status-declined,
.status-rejected {
  color: #ff8f8f;
  border-color: rgba(231, 76, 60, 0.35);
  background: rgba(231, 76, 60, 0.14);
}

.status-hidden {
  color: #d1d5db;
  border-color: rgba(156, 163, 175, 0.4);
  background: rgba(75, 85, 99, 0.24);
}

#pending-bookings-list,
#history-bookings-list {
  display: grid;
  gap: 12px;
}

.admin-week-summary {
  margin: 24px 0;
  background: linear-gradient(145deg, #252525 0%, #1f1f1f 100%);
  border: 1px solid #3a3a3a;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.admin-week-summary-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-week-summary-header h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.admin-week-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.45);
  background: rgba(167, 139, 250, 0.15);
  color: #eee5ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
}

.nav-icon-btn:hover {
  background: rgba(167, 139, 250, 0.28);
  border-color: rgba(196, 181, 253, 0.8);
  transform: translateY(-1px);
}

.admin-week-range {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 600;
}

.admin-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.admin-week-day {
  border: 1px solid #343434;
  border-radius: 12px;
  padding: 8px;
  background: #222;
  min-width: 0;
}

.admin-week-day h4 {
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-color);
}

.admin-week-empty {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.admin-week-events {
  list-style: none;
  display: grid;
  gap: 6px;
}

.admin-week-event {
  width: 100%;
  text-align: left;
  border: 1px solid #3a3a3a;
  background: #292929;
  border-radius: 10px;
  padding: 6px;
  display: grid;
  gap: 3px;
  cursor: pointer;
}

.admin-week-event-time {
  font-size: 0.68rem;
  color: #c4b5fd;
  font-weight: 700;
}

.admin-week-event-name {
  font-size: 0.72rem;
  color: var(--text-color);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-week-status {
  justify-self: flex-start;
}

.admin-calendar-grid-wrap {
  width: 100%;
  overflow: hidden;
}

.admin-calendar-grid-wrap .calendar-grid,
.admin-calendar-grid-wrap .calendar-day-header {
  width: 100%;
}

.admin-calendar-grid-wrap .calendar-grid > *,
.admin-calendar-grid-wrap .calendar-day-header > * {
  min-width: 0;
}

.signature-pad-wrapper {
  background: #fff;
  /* Canvas needs white usually */
  border: none;
}

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

.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 1.5rem;
}

.text-danger {
  color: var(--danger);
}

.text-success {
  color: var(--success);
}

@media (max-width: 600px) {
  .carousel-card {
    width: 280px;
    height: 460px;
  }

  .carousel-card.prev {
    transform: translateX(-200px) scale(0.85);
  }

  .carousel-card.next {
    transform: translateX(200px) scale(0.85);
  }
  
  .carousel-container {
    height: 520px;
  }

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

  .admin-calendar-grid-wrap {
    overflow: hidden;
  }

  .admin-calendar-grid-wrap .calendar-grid {
    gap: 4px;
    min-width: 0;
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .admin-calendar-grid-wrap .calendar-day-header {
    font-size: 0.58rem;
    letter-spacing: 0;
  }

  .admin-calendar-grid-wrap .calendar-day {
    min-height: 58px;
    padding: 3px;
    min-width: 0;
  }

  .admin-calendar-grid-wrap .event-marker {
    font-size: 0.56rem;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .admin-calendar-section .calendar-header {
    gap: 6px;
    margin-bottom: 10px;
  }

  .admin-calendar-section .calendar-header h3 {
    font-size: 0.8rem;
  }

  .booking-card {
    padding: 14px;
    border-radius: 14px;
  }

  .booking-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 8px;
  }

  .booking-header h3 {
    font-size: 0.95rem;
  }

  .status-badge {
    align-self: flex-start;
  }

  .admin-topbar {
    margin-bottom: 14px;
  }

  .admin-topbar h2 {
    font-size: 1.12rem;
  }

  .admin-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .admin-tab-btn {
    width: 100%;
    font-size: 0.8rem;
    padding: 8px 10px;
    text-align: center;
  }

  .admin-media-item {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .admin-media-preview {
    max-height: 360px;
  }

  .admin-media-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .admin-media-actions .booking-action-btn {
    width: 100%;
    flex: 1 1 100%;
    min-height: 38px;
  }

  .admin-media-actions .nav-icon-btn {
    width: 100%;
    height: 36px;
    border-radius: 10px;
  }

  .admin-media-actions button:nth-of-type(3),
  .admin-media-actions button:nth-of-type(4) {
    grid-column: 1 / -1;
  }

  .admin-media-upload-card h3 {
    font-size: 1rem;
  }

  .admin-media-upload-card .text-muted {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .admin-media-upload-form input[type="file"] {
    font-size: 0.8rem;
  }

  .admin-media-meta p {
    margin: 0 0 6px;
  }

  .admin-media-link {
    font-size: 0.68rem;
    line-height: 1.25;
  }

  .admin-media-toolbar .btn-small {
    width: 100%;
    min-height: 36px;
    font-size: 0.8rem;
  }

  .admin-media-upload-btn {
    width: 100%;
  }

  body.admin-page .container {
    padding: max(14px, env(safe-area-inset-top)) 10px max(14px, env(safe-area-inset-bottom)) 10px;
  }

  body.admin-page header {
    margin-bottom: 16px;
  }

  body.admin-page header h1 {
    font-size: clamp(1.45rem, 7.2vw, 1.95rem);
    line-height: 1.16;
    letter-spacing: 0.45px;
    margin-bottom: 6px;
  }

  body.admin-page header p {
    font-size: clamp(0.7rem, 2.9vw, 0.86rem);
    letter-spacing: 1.2px;
  }

  .admin-week-summary {
    margin: 18px 0;
    padding: 12px;
  }

  .admin-week-summary-header {
    margin-bottom: 10px;
  }

  .admin-week-summary-header h3 {
    width: 100%;
    font-size: 0.94rem;
  }

  .admin-week-nav {
    width: 100%;
    justify-content: space-between;
  }

  .nav-icon-btn {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .admin-week-range {
    font-size: 0.76rem;
    text-align: center;
    flex: 1;
  }

  .admin-week-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .admin-week-day {
    padding: 8px;
  }

  .admin-week-day h4 {
    font-size: 0.78rem;
  }

  .admin-week-event {
    padding: 7px;
  }

  .admin-week-event-name {
    font-size: 0.74rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Fix Login Button Size to match Inputs */
button.btn-primary {
  padding: 14px;
  /* Match input padding */
  border: 1px solid transparent;
  /* Match input border width */
}

/* Booking Actions Spacing */
.booking-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  width: 100%;
}

.booking-action-btn {
  flex: 1;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.15px;
  cursor: pointer;
  transition: var(--transition);
}

.booking-action-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.booking-action-btn.btn-accept {
  background: rgba(46, 204, 113, 0.16);
  color: #b8ffd6;
  border-color: rgba(46, 204, 113, 0.35);
}

.booking-action-btn.btn-accept:hover:not(:disabled) {
  background: rgba(46, 204, 113, 0.28);
  transform: translateY(-1px);
}

.booking-action-btn.btn-decline {
  background: rgba(231, 76, 60, 0.16);
  color: #ffc4bc;
  border-color: rgba(231, 76, 60, 0.35);
}

.booking-action-btn.btn-decline:hover:not(:disabled) {
  background: rgba(231, 76, 60, 0.28);
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .booking-actions {
    flex-direction: column;
  }

  .booking-action-btn {
    width: 100%;
  }
}

/* Calendar View */
.calendar-section {
  margin-top: 40px;
  background: var(--card-bg);
  padding: 20px;
  border-radius: var(--border-radius);
  border: 1px solid #333;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

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

.calendar-day-header {
  font-weight: bold;
  color: var(--text-muted);
  padding-bottom: 10px;
}

.calendar-day {
  background: #2a2a2a;
  min-height: 80px;
  border-radius: 8px;
  padding: 5px;
  position: relative;
  border: 1px solid #333;
}

.calendar-day:hover {
  border-color: var(--accent-color);
}

.calendar-day.empty {
  background: transparent;
  border: none;
}

.event-marker {
  font-size: 0.75rem;
  background: var(--accent-color);
  color: white;
  padding: 2px 4px;
  border-radius: 4px;
  margin-top: 4px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Portfolio mobile fit */
@media (max-width: 900px) {
  body.portfolio-page {
    overflow: hidden;
    padding-bottom: max(4px, env(safe-area-inset-bottom));
  }

  body.portfolio-page .portfolio-container {
    min-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: max(8px, env(safe-area-inset-top)) 12px max(4px, env(safe-area-inset-bottom)) 12px;
  }

  body.portfolio-page header {
    margin-bottom: clamp(2px, 0.8vh, 6px);
    flex-shrink: 0;
  }

  body.portfolio-page header h1 {
    font-size: clamp(1.55rem, 7.2vw, 2.2rem);
    line-height: 1.03;
    letter-spacing: clamp(0.6px, 0.3vw, 1.2px);
    margin-bottom: 4px;
  }

  body.portfolio-page header p {
    font-size: clamp(0.68rem, 2.7vw, 0.88rem);
    letter-spacing: clamp(0.8px, 0.5vw, 1.5px);
  }

  body.portfolio-page .carousel-container {
    flex: 1;
    min-height: 0;
    height: auto;
    margin-bottom: 0;
  }

  body.portfolio-page .carousel-card {
    width: min(86vw, 390px);
    height: clamp(440px, 82dvh, 760px);
    max-height: 100%;
  }

  body.portfolio-page .carousel-card.prev {
    transform: translateX(-52vw) scale(0.84) rotateY(15deg);
  }

  body.portfolio-page .carousel-card.next {
    transform: translateX(52vw) scale(0.84) rotateY(-15deg);
  }

  body.portfolio-page .mute-toggle {
    left: 14px;
    bottom: max(14px, calc(env(safe-area-inset-bottom) + 6px));
  }
}
