:root {
  --cb-bg: var(--ast-global-color-5);
  --cb-surface: #ffffff;
  --cb-border: #dce5f2;
  --cb-text: #152238;
  --cb-muted: #6a7687;
  --cb-primary: var(--ast-global-color-7);
  --cb-primary-2: var(--ast-global-color-8);
  --cb-radius: 16px;
  --cb-shadow: 0 8px 24px rgba(15, 34, 67, 0.1);
  --cb-entity-bg: #ffffff;
  --cb-fintech-bg: #ffffff;
  --cb-secondary-btn: var(--ast-global-color-6);
  --cb-remove-btn: #ef4444;
  --cb-font-family: Arial, sans-serif;
}

#chimebooking-app,
#cb-dashboard-client,
#cb-dashboard {
  margin: 12px auto;
  padding: 14px;
  border: 1px solid #e6ebf3;
  border-radius: 18px;
  background: var(--cb-bg);
  max-width: 800px;
  text-align: center;
}

.cb-subtitle {
  margin-top: 4px;
  color: #677487;
  font-size: 0.93rem;
}

@media (min-width: 768px) {
  #cb-dashboard {
    max-width: 800px;
    text-align: center;
  }
  #cb-dashboard .chip-grid,
  #cb-dashboard .service-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
  }
}

.hidden {
  display: none !important;
}

.tabs {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 6px;
  margin-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  min-height: 900px;
}

.service-card,
.booking-card {
  border: none;
  border-radius: 20px;
  padding: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.booking-card {
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.booking-card .booking-image-wrapper {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: #eef5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.booking-card .booking-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.booking-card .booking-image-wrapper span {
  color: #177deb;
  font-weight: 700;
  font-size: 1.1rem;
}

.booking-card {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.booking-card .booking-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.booking-card .booking-actions button {
  width: auto;
  min-width: 130px;
}

.booking-card .status-picker {
  width: 100%;
  justify-content: flex-start;
  margin-top: 10px;
  flex: 1 1 100%;
}

.booking-card .status-picker.hidden {
  display: none !important;
}

.card-cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(19px);
  z-index: 0;
  pointer-events: none;
  height: 35%;
}

.service-card > :not(.card-cover) {
  position: relative;
  z-index: 1;
}

.fintech-card {
  background: linear-gradient(135deg, var(--cb-fintech-bg) 0%, #f6f6f6 100%);
  border: 1px solid rgba(0, 166, 255, 0.1);
}

.service-card:hover,
.booking-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.chip-title {
  font-weight: 700;
  margin-bottom: 12px;
  color: #152238;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

.card-title {
  display: flex;
  font-weight: 600;
  margin-bottom: 4px;
  color: #152238;
  justify-content: space-between;
  line-height: 1.4;
  text-align: left;
}

.service-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.service-card-header .chip-title {
  margin-bottom: 0;
  flex: 1;
}

.service-meta {
  margin-bottom: 12px;
}

.service-meta .muted {
  font-size: 0.9rem;
}

.service-meta .muted:last-child {
  margin-bottom: 0;
}

.booking-info {
  display: flex;
  gap: 14px;
}

.booking-info .muted {
  margin-bottom: 0px;
}

.booking-info .muted:last-child {
  margin-bottom: 0;
}

.booking-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  position: relative;
  z-index: 1;
  justify-content: space-evenly;
}

.service-card,
.booking-card {
  position: relative;
}

.card-actions button,
.inline-actions button {
  border-radius: 12px;
  border: none;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  width: 80%;
}

.primary-btn,
.edit-schedule-btn {
  background: linear-gradient(135deg, var(--cb-primary), var(--cb-primary-2));
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 35px;
  border: none;
  padding: 8px 17px !important;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
}

.primary-btn:hover {
  transform: translateY(-2px);
}

.primary-btn:active {
  transform: translateY(0);
}

.ghost-btn {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  color: #334155 !important;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.ghost-btn:hover {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  border-color: #94a3b8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.secondary-btn {
  background: var(--cb-secondary-btn);
  color: #fff;
  font-weight: 500;
  font-size: 14px;
}

.secondary-btn:hover {
  background: var(--cb-secondary-btn);
  transform: translateY(-2px);
}

.schedule-range {
  width: 100px !important;
}

.cb-login-card {
  max-width: 520px;
  margin: 20px auto 0;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.06);
  border: none;
  border-radius: 24px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.cb-login-form label {
  font-weight: 600;
  color: #1f2a44;
  font-size: 0.95rem;
  margin-bottom: 8px;
  display: block;
}

.cb-login-link {
  gap: 8px;
  color: var(--cb-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.cb-login-link:hover {
  color: var(--cb-primary-2);
}

.cb-form-message {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 0.95rem;
}

.cb-form-message.error {
  background: #fee2e2;
  color: #991b1b;
}

.cb-form-message.success {
  background: #d1fae5;
  color: #166534;
}

.booking-card {
  display: flex;
  flex-direction: row;
}

.booking-card .chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.chip.pending {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.chip.confirmed {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}
.chip.completed {
  background: linear-gradient(135deg, #10b981, #059669);
}
.chip.cancelled {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}
.chip.no_show {
  background: linear-gradient(135deg, #6b7280, #4b5563);
}

.entity-editor {
  background: linear-gradient(135deg, var(--cb-entity-bg), #f8fafc);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 20px;
  margin: 8px;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
}

.inline-form h5 {
  margin-top: 4px;
  margin-bottom: 10px;
}

.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}

.chip-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0;
}

.chip-toggle {
  border: 1px solid #cbd8ec !important;
  background: linear-gradient(135deg, #ffffff, #f1f6fc);
  border-radius: 25px;
  padding: 10px 16px;
  white-space: nowrap;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  color: #1e40af !important;
}

.chip-toggle.selected {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
  transform: translateY(-1px);
}

.chip-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.filter-btn {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  color: #334155 !important;
  font-weight: 500;
  font-size: 12px !important;
  border: 1px solid #bfdbfe !important;
}

.filter-btn:hover {
  color: #ffffff !important;
  background: var(--cb-secondary-btn);
}

.filter-btn.active,
#toggle-bookings-calendar.selected {
  color: #ffffff !important;
  background: var(--cb-secondary-btn);
}

/* Status filter buttons inside .filters */
.filters {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.status-filters,
.date-filters {
  display: flex;
  gap: 3px;
  align-items: center;
}

.filter-status-btn {
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid #e6edf9;
  background: #fff;
  cursor: pointer;
  font-size: 12px !important;
  color: #334155 !important;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.filter-status-btn.selected {
  color: #ffffff !important;
  background: var(--cb-secondary-btn);
}

.filter-status-btn.pending {
  border: 1px solid #f59e0b !important;
}
.filter-status-btn.confirmed {
  border: 1px solid #3b82f6 !important;
}
.filter-status-btn.completed {
  border: 1px solid #10b981 !important;
}
.filter-status-btn.cancelled {
  border: 1px solid #ef4444 !important;
}
.filter-status-btn.no_show {
  border: 1px solid #6b7280 !important;
}
.filter-status-btn.all {
  border: 1px solid #dbeafe !important;
}

.fc-help {
  color: #5f6b7a;
  margin: 4px 0 12px;
}

#schedule-calendar {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 16px;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
}

.work-hours-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 14px;
}

.workday-toggle {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.workday-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.workday-hours {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#bookings-calendar-wrap {
  margin: 10px 0 14px;
}

#bookings-calendar {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 16px;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
}

.status-chip {
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  border: 1px solid #d9e0eb;
  background: #fff;
  cursor: pointer;
}

.status-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.muted {
  color: #6a7687;
  font-size: 0.92rem;
}

.range-builder {
  margin-bottom: 12px;
  display: inline-grid;
}

.range-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ranges-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 3px;
}

.weekday-chips {
  display: flex;
  flex-wrap: wrap;
}

.day-pill {
  border-radius: 25px !important;
  border: 1px solid #cad8ef;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  color: #2d3b52 !important;
  font-weight: 700;
  padding: 8px 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.day-pill:hover {
}

.day-pill.selected {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.status-chip {
  border-radius: 25px;
  padding: 8px 14px;
  font-weight: 700;
  border: 1px solid #d9e0eb;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cb-month-head {
  display: flex;
  justify-content: center;
  align-items: baseline;
  margin-bottom: 10px;
}

.cb-month-head-arrows {
  margin-left: 5%;
  display: flex;
  gap: 6px;
}

.cb-weekdays,
.cb-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.cb-weekdays span {
  text-align: center;
  color: var(--cb-muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.cb-day {
  background: linear-gradient(90deg, var(--cb-primary), var(--cb-primary-2));
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid var(--cb-border);
  background: #fff;
  font-weight: 700;
  color: var(--cb-text);
}

.cb-day.available {
  border-color: #8ec5ff;
}

.cb-day.disabled {
  opacity: 0.25;
  cursor: not-allowed !important;
}

.cb-day.selected,
.cb-day:hover {
  background: linear-gradient(90deg, var(--cb-primary), var(--cb-primary-2));
  color: #ffffff;
  border-color: var(--cb-primary);
}

.cb-checkmark-wrap {
  width: 66px;
  height: 66px;
  border-radius: 999px;
  margin: 0 auto 10px;
  background: #e7f8ef;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cb-checkmark {
  font-size: 34px;
  color: #19a35b;
  animation: cb-pop-in 0.4s ease;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 7px;
  margin: 8px;
}

.bookings-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 11px;
}

.input-textarea {
  min-height: 90px;
  margin-top: 8px;
  font-size: 15px;
  border-radius: 20px !important;
}

@keyframes cb-pop-in {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  #cb-dashboard {
    padding: 12px;
  }
  .tab-btn,
  .subtab-btn {
    font-size: 0.85rem;
  }
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  .custom-dates {
    flex-direction: column;
  }

  .range-row .secondary-btn {
    width: 100%;
  }
}

@media (max-width: 580px) {
  #chimebooking-app,
  #cb-dashboard {
    border-radius: 25px;
    margin: 0;
    border-left: 0;
    border-right: 0;
  }

  .secondary-btn {
    font-weight: 500;
    font-size: 17px !important;
    width: 100%;
    height: 40px;
  }

  .card-actions {
    flex-wrap: wrap;
  }

  .work-hours-grid {
    grid-template-columns: 1fr;
  }

  .booking-card .booking-image-wrapper {
    width: 55px;
    height: 55px;
    min-width: 55px;
  }
  .bookings-grid {
    width: 100%;
  }

  .booking-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
  }
}

#chimebooking-app input,
#chimebooking-app select,
#cb-dashboard input,
#cb-dashboard select {
  display: block;
  margin: 10px 0;
  padding: 10px 12px;
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px solid #d9e0eb;
  background: #fff;
  outline: none;
  font-size: 15px;
}

#cb-dashboard input:focus,
#cb-dashboard select:focus,
#chimebooking-app input:focus,
#chimebooking-app select:focus {
  border-color: #177deb;
  box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.15);
}

#chimebooking-app button,
#cb-dashboard button {
  border: none;
  padding: 9px;
  cursor: pointer;
  font-size: 14px;
}

#wizard-step {
  font-weight: bold;
  margin-bottom: 12px;
  display: block;
}

.wizard-progress-bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4caf50, #43d44a, #4caf50);
  background-size: 200% 100%;
  width: 0%;
  transition: width 0.3s ease;
  position: relative;
  box-shadow:
    0 0 10px rgba(76, 175, 80, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  animation: progress-shimmer 2s infinite;
}

@keyframes progress-shimmer {
  0% {
    background-position: 200% 0;
  }
  50% {
    background-position: 0 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.wizard-step.hidden {
  display: none;
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.time-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.calendar {
  padding: 5px;
}

.svc-card,
.prof-card,
.cat-card,
.day-chip,
.time-chip {
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.time-chip {
  background: linear-gradient(90deg, var(--cb-primary), var(--cb-primary-2));
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid var(--cb-border);
  background: #fff;
  font-weight: 700;
  color: var(--cb-text);
}

.time-chip.available {
  border-color: #8ec5ff;
}

.time-chip.selected,
.time-chip:hover {
  background: linear-gradient(90deg, var(--cb-primary), var(--cb-primary-2));
  color: #fff;
  border-color: var(--cb-primary);
}

.svc-card.selected,
.prof-card.selected,
.cat-card.selected,
.day-chip.selected,
.time-chip.selected {
  border-color: #007cba;
  box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}

.empty {
  background: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
  padding: 10px;
  border-radius: 8px;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
}

.modal-content form {
  display: flex;
  flex-direction: column;
}

.modal-content label {
  margin: 10px 0;
}

.modal-content button {
  margin: 5px;
  padding: 10px;
}

.custom-dates {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

.custom-dates button {
  flex-shrink: 0;
}

/* Estilos para subtabs dentro de tab-config */
.subtabs {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 6px;
  margin: 12px;
  scroll-snap-type: x mandatory;
  border-bottom: 2px solid #e0e0e0;
}

.tab-btn,
.subtab-btn {
  border-radius: 999px;
  border: 0;
  background: linear-gradient(90deg, var(--cb-primary), var(--cb-primary-2));
  font-weight: 600;
  font-size: 13px !important;
  white-space: nowrap;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  scroll-snap-align: start;
}

.tab-btn.active,
.subtab-btn.active {
  background: var(--cb-secondary-btn);
}

.subtab-content {
  display: none;
}

.subtab-content.active {
  display: block;
}

.settings-section {
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.settings-section h6 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #152238;
}

.style-group {
  margin-bottom: 20px;
}

.style-group h7 {
  margin: 0 0 10px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #6a7687;
}

.style-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: #152238;
}

.style-group input[type="color"] {
  width: 50px;
  height: 30px;
  border: 1px solid #dce5f2;
  border-radius: 4px;
  cursor: pointer;
}

.style-group select {
  padding: 8px 12px;
  border: 1px solid #dce5f2;
  border-radius: 8px;
  background: #fff;
  font-size: 0.9rem;
}

/* Estilos mejorados para cards con imágenes */
.card-image-container {
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.card-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.prof-card .card-image-container,
.cat-card .card-image-container {
  width: 140px !important;
  height: 140px !important;
  border-radius: 50% !important;
  margin: 0 auto 16px !important;
  overflow: hidden;
}

.prof-card .card-image-container img,
.cat-card .card-image-container img,
.cat-card .card-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

.cat-card .card-image {
  width: 140px;
  height: 140px;
  margin: 0 auto 16px;
}

.service-card.svc-card,
.service-card.prof-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.25s ease;
}

.service-card.svc-card {
  align-items: center;
  text-align: center;
  gap: 10px;
}

.service-card.svc-card .card-image-container {
  height: 175px !important;
  width: 175px !important;
  border-radius: 18px !important;
}

.service-card.svc-card .card-image-container img {
  border-radius: 18px;
}

.service-card.svc-card .chip-title,
.service-card.prof-card .chip-title {
  margin-bottom: 6px;
}

.service-card.svc-card .service-card-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.service-card.svc-card .service-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6a7687;
  font-size: 0.92rem;
}

.service-card.svc-card .time-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 0.9rem;
}

.service-card.svc-card small.price {
  font-weight: 700;
  color: #152238;
  margin-top: 0;
}
/* Small description/details shown on cards */
.card-details,
.booking-details {
  margin-top: 6px;
  color: var(--cb-muted);
  font-size: 0.95rem;
}
.image-remove-btn,
.schedule-remove-btn,
.remove-btn {
  position: absolute !important;
  top: 2px;
  right: 2px;
  background: var(--cb-remove-btn);
  color: rgb(255, 255, 255);
  border-radius: 50%;
  width: 29px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 9px;
  transition: all 0.2s ease;
}

.image-remove-btn:hover,
.remove-btn:hover {
  background: rgba(239, 68, 68, 1);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}

.edit-btn {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 35px;
  width: 29px;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
  padding: 0;
  margin-left: 8px;
}

.edit-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: scale(1.05);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  background: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  pointer-events: auto;
  min-width: 300px;
  max-width: 450px;
  animation: slideIn 0.3s ease-out;
}

.toast.success {
  border-left: 4px solid #10b981;
  background: linear-gradient(135deg, #f0fdf4 0%, #f0fdf4 100%);
}

.toast.error {
  border-left: 4px solid #ef4444;
  background: linear-gradient(135deg, #fef2f2 0%, #fef2f2 100%);
}

.toast.info {
  border-left: 4px solid #3b82f6;
  background: linear-gradient(135deg, #f0f9ff 0%, #f0f9ff 100%);
}

.toast.warning {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(135deg, #fffbf0 0%, #fffbf0 100%);
}

.toast-icon {
  font-size: 20px;
  font-weight: bold;
  min-width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast.success .toast-icon {
  color: #10b981;
}

.toast.error .toast-icon {
  color: #ef4444;
}

.toast.info .toast-icon {
  color: #3b82f6;
}

.toast.warning .toast-icon {
  color: #f59e0b;
}

.toast-message {
  flex: 1;
  color: #1f2937;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #9ca3af;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.toast-close:hover {
  color: #374151;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

.toast.removing {
  animation: slideOut 0.3s ease-out forwards;
}

/* ===== IMAGE UPLOAD INTERFACE ===== */
.image-upload-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0;
}

.image-upload-input {
  display: none;
}

.image-upload-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 2px dashed #cbd8ec;
  background: #f8fafd;
  color: #177deb !important;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.image-upload-button:hover {
  border-color: #177deb;
  background: #eef5ff;
}

.image-upload-button.loading {
  opacity: 0.6;
  pointer-events: none;
}

.image-thumbnail {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
}

/* Spinner de cargando */
.bookings-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 16px;
}

.bookings-spinner.hidden {
  display: none !important;
}

.spinner {
  border: 4px solid rgba(23, 125, 235, 0.15);
  border-top: 4px solid var(--cb-primary, #177deb);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.bookings-spinner p {
  color: var(--cb-muted, #6a7687);
  font-size: 0.95rem;
  margin: 0;
}

.image-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-status {
  font-size: 12px;
  color: #6a7687;
  margin-top: 4px;
}

.upload-status.loading {
  color: #3b82f6;
}

.upload-status.success {
  color: #10b981;
}

.upload-status.error {
  color: #ef4444;
}

/* Mobile Toast Styles */
@media (max-width: 580px) {
  .toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
  }

  .toast {
    min-width: auto;
    width: 100%;
  }
}

/* ===== MODAL DE CONFIRMACIÓN ===== */
.confirm-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease-out;
  backdrop-filter: blur(2px);
}

.confirm-modal {
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-modal-content {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  max-width: 420px;
  width: 90%;
  animation: slideUp 0.3s ease-out;
  overflow: hidden;
}

.confirm-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f3f4f6, #f9fafb);
}

.confirm-modal-header h3 {
  margin: 0;
  color: #1f2937;
  font-size: 18px;
  font-weight: 600;
}

.confirm-modal-body {
  padding: 24px;
  color: #4b5563;
  line-height: 1.6;
}

.confirm-modal-body p {
  margin: 0;
  font-size: 15px;
}

.confirm-modal-footer {
  padding: 16px 24px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  background: #fafafa;
  border-top: 1px solid #e5e7eb;
}

.confirm-btn-cancel,
.confirm-btn-ok {
  padding: 10px 20px !important;
  border-radius: 10px !important;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.confirm-btn-cancel {
  min-width: 100px;
}

.confirm-btn-ok {
  min-width: 120px;
  background: linear-gradient(90deg, #ef4444, #f87171) !important;
  color: white !important;
}

.confirm-btn-ok:hover {
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4) !important;
  transform: translateY(-2px) !important;
}

.confirm-modal-overlay.removing {
  animation: fadeOut 0.2s ease-out forwards;
}

.confirm-modal-overlay.removing .confirm-modal-content {
  animation: slideDown 0.2s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(20px);
    opacity: 0;
  }
}

@media (max-width: 580px) {
  .confirm-modal-content {
    width: 95%;
  }

  .confirm-modal-footer {
    flex-direction: column-reverse;
  }

  .confirm-btn-cancel,
  .confirm-btn-ok {
    width: 100%;
    min-width: auto;
  }
}

/* ===== ADDITIONAL MODERN TOUCHES ===== */

.range-item {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 16px;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.06),
    0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.range-item:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.1),
    0 4px 8px rgba(0, 0, 0, 0.06);
}
