/* ========== RESET & BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #B8888C;
  --primary-light: #C9A0A4;
  --primary-dark: #8B6368;
  --accent: #C9A882;
  --accent-light: #E0CDB8;
  --bg: #F5E6E0;
  --bg-card: #FFFFFF;
  --text: #3D2E2E;
  --text-light: #8A7474;
  --border: #E0D0C8;
  --danger: #C97070;
  --success: #7BA87B;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(139,99,104,0.08);
  --shadow-lg: 0 8px 32px rgba(139,99,104,0.12);
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ========== SCREENS ========== */
.screen {
  display: none;
  min-height: 100vh;
}

.screen.active {
  display: block;
}

.hidden {
  display: none !important;
}

/* ========== AUTH ========== */
.auth-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  background: linear-gradient(160deg, #F5E6E0 0%, #E8CFC5 40%, #D4B5A5 100%);
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-icon {
  font-size: 3rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.auth-logo h1 {
  color: var(--primary-dark);
  font-size: 1.8rem;
  font-weight: 600;
}

.auth-subtitle {
  color: var(--text-light);
  font-size: 1rem;
  margin-top: 0.3rem;
}

.auth-form {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.auth-admin-link {
  margin-top: 1.5rem;
  text-align: center;
}

.auth-admin-link a {
  color: var(--text-light);
  font-size: 0.85rem;
  text-decoration: none;
}

.auth-admin-link a:hover {
  color: var(--primary-dark);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-light);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========== ADMIN USERS ========== */
.admin-users-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.admin-user-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.admin-user-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.admin-user-info p {
  font-size: 0.85rem;
  color: var(--text-light);
}

.admin-user-comment {
  margin-top: 0.5rem;
  padding: 0.5rem 0.8rem;
  background: #FFF8E1;
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--text);
}

.admin-user-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.user-form {
  max-width: 400px;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

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

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

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: #c9302c;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
}

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

/* ========== HEADER ========== */
.header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sync-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  display: inline-block;
}

.sync-status.connected {
  background: var(--success);
}

.header-admin {
  background: var(--primary-dark);
  border-bottom-color: var(--primary);
}

.header-admin .logo-small,
.header-admin .client-greeting {
  color: #fff;
}

.header-admin .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.header-admin .btn-outline:hover {
  background: rgba(255,255,255,0.2);
}

.logo-small {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-dark);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.client-greeting {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ========== MAIN CONTENT ========== */
.main-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1rem 6rem;
}

.section {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.section-desc {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* ========== SERVICES GRID ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}

.service-card .service-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.service-card .service-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.service-card .service-duration {
  font-size: 0.85rem;
  color: var(--text-light);
}

.service-card .service-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* ========== CALENDAR ========== */
.calendar {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

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

.calendar-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.calendar-nav {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--primary);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
}

.calendar-nav:hover {
  background: var(--primary);
  color: #fff;
}

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

.calendar-weekday {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  padding: 0.4rem;
}

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

.calendar-day {
  text-align: center;
  padding: 0.6rem 0.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.15s;
  font-weight: 500;
}

.calendar-day:hover:not(.disabled):not(.empty) {
  background: var(--primary-light);
  color: #fff;
}

.calendar-day.selected {
  background: var(--primary-dark);
  color: #fff;
}

.calendar-day.today {
  border: 2px solid var(--accent);
}

.calendar-day.disabled {
  color: #ccc;
  cursor: default;
  opacity: 0.4;
}

.calendar-day.empty {
  cursor: default;
}

/* ========== TIME SLOTS ========== */
.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.time-slot {
  text-align: center;
  padding: 0.7rem 0.5rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.15s;
  background: var(--bg-card);
}

.time-slot:hover:not(.booked) {
  border-color: var(--primary);
  color: var(--primary);
}

.time-slot.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.time-slot.booked {
  background: #f5f0ef;
  color: #ccc;
  cursor: not-allowed;
  text-decoration: line-through;
}

.step-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.booking-step {
  margin-bottom: 2rem;
}

/* ========== BOOKING SUMMARY ========== */
.booking-summary {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row .label {
  color: var(--text-light);
}

.summary-row .value {
  font-weight: 600;
}

/* ========== BOOKINGS LIST ========== */
.bookings-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.booking-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.booking-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.booking-info p {
  font-size: 0.85rem;
  color: var(--text-light);
}

.booking-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  white-space: nowrap;
}

.status-confirmed {
  background: #E8F5E9;
  color: var(--success);
}

.status-cancelled {
  background: #FDECEA;
  color: var(--danger);
}

.booking-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-end;
}

.no-bookings {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-light);
}

/* ========== FOOTER ========== */
.site-footer {
  text-align: center;
  padding: 1.5rem 1rem 5.5rem;
  color: var(--text-light);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* ========== BOTTOM NAV ========== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  z-index: 100;
  padding: 0.5rem 0;
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-light);
  font-family: inherit;
  transition: color 0.2s;
}

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

.nav-icon {
  font-size: 1.3rem;
}

.nav-label {
  font-size: 0.7rem;
  font-weight: 500;
}

/* ========== ADMIN ========== */
.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.admin-tab {
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
}

.admin-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

.schedule-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.schedule-day {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.schedule-day-name {
  font-weight: 600;
  min-width: 120px;
  font-size: 0.95rem;
}

.schedule-toggle {
  position: relative;
  width: 44px;
  height: 24px;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ccc;
  border-radius: 24px;
  transition: 0.3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

.schedule-toggle input:checked + .toggle-slider {
  background: var(--primary);
}

.schedule-toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.schedule-hours {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.schedule-hours select {
  padding: 0.4rem 0.6rem;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.85rem;
  background: #fff;
  cursor: pointer;
}

.schedule-hours select:focus {
  outline: none;
  border-color: var(--primary);
}

.schedule-hours span {
  color: var(--text-light);
  font-size: 0.9rem;
}

.schedule-disabled-text {
  color: var(--text-light);
  font-style: italic;
  font-size: 0.85rem;
}

.admin-filters {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.admin-quick-dates {
  display: flex;
  gap: 0.4rem;
}

.quick-date.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.bookings-day-header {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-dark);
  padding: 0.8rem 0 0.4rem;
  border-bottom: 2px solid var(--accent-light);
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

.bookings-day-header:first-child {
  margin-top: 0;
}

.input-field {
  padding: 0.6rem 0.8rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
}

.input-field:focus {
  outline: none;
  border-color: var(--primary);
}

.admin-services-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.admin-service-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.admin-service-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.admin-service-info p {
  font-size: 0.8rem;
  color: var(--text-light);
}

.admin-service-actions {
  display: flex;
  gap: 0.4rem;
}

/* ========== DESKTOP NAV ========== */
.desktop-nav {
  display: none;
}

.desktop-nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.desktop-nav-link:hover,
.desktop-nav-link.active {
  color: var(--primary-dark);
  background: rgba(184,136,140,0.1);
}

/* ========== ABOUT SECTION ========== */
.about-hero {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.about-photo-placeholder {
  width: 180px;
  height: 180px;
  min-width: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  flex-shrink: 0;
}

.about-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-photo-icon {
  font-size: 4rem;
  color: #fff;
}

.about-text {
  flex: 1;
}

.about-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.8rem;
}

.about-bio {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about-stats {
  display: flex;
  gap: 2rem;
}

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

.about-stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.about-stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}

.about-feature {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.about-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 0.8rem;
}

.about-feature h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.about-feature p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ========== PUBLIC PHOTOS GALLERY ========== */
.pub-photos-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.pub-photos-gallery:empty {
  display: none;
}

.pub-photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s;
}

.pub-photo-card:hover {
  transform: translateY(-3px);
}

.pub-photo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* ========== CERTIFICATES ========== */
.pub-certs-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.pub-cert-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pub-cert-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.pub-cert-desc {
  padding: 0.7rem 0.8rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ========== STUDIO CAROUSEL ========== */
.pub-studio-section {
  margin-top: 2rem;
}

.studio-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 1rem;
}

.studio-carousel {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0;
  flex: 1;
}

.studio-carousel::-webkit-scrollbar {
  display: none;
}

.studio-carousel {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.studio-photo {
  flex: 0 0 auto;
  width: 280px;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.studio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.studio-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--primary);
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  flex-shrink: 0;
  z-index: 2;
}

.studio-arrow:hover {
  background: var(--primary);
  color: #fff;
}

.studio-arrow:active {
  transform: scale(0.95);
}

@media (max-width: 600px) {
  .studio-arrow {
    display: none;
  }

  .studio-carousel {
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    margin: 0 -1rem;
    scroll-padding-left: 1rem;
  }

  .studio-photo {
    width: 240px;
    height: 170px;
  }
}

.admin-cert-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.admin-cert-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.admin-cert-info {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ========== PORTFOLIO ========== */
.portfolio-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.portfolio-filter {
  padding: 0.5rem 1rem;
  border: 2px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.portfolio-filter.active,
.portfolio-filter:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.portfolio-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.portfolio-card:hover {
  transform: translateY(-3px);
}

.portfolio-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.5rem;
  overflow: hidden;
}

.portfolio-img-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.portfolio-card-body {
  padding: 1rem;
}

.portfolio-card-body h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.portfolio-card-body p {
  font-size: 0.8rem;
  color: var(--text-light);
}

.portfolio-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  background: rgba(184,136,140,0.15);
  color: var(--primary-dark);
  margin-top: 0.4rem;
}

/* ========== REVIEWS ========== */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

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

.review-author {
  font-weight: 600;
  font-size: 0.95rem;
}

.review-date {
  font-size: 0.8rem;
  color: var(--text-light);
}

.review-stars {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.review-text {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ========== CONSULTATION ========== */
.consultation-form-wrap {
  max-width: 500px;
}

.consultation-form {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.consultation-form textarea {
  resize: vertical;
  min-height: 80px;
}

/* ========== ADMIN PORTFOLIO ========== */
.admin-portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.admin-portfolio-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.admin-portfolio-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.admin-portfolio-info p {
  font-size: 0.8rem;
  color: var(--text-light);
}

.admin-portfolio-photos {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.admin-portfolio-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius);
}

.admin-portfolio-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.3rem;
}

.admin-portfolio-actions {
  display: flex;
  gap: 0.4rem;
}

/* ========== ADMIN REVIEWS ========== */
.admin-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.admin-review-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.admin-review-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.admin-review-info p {
  font-size: 0.8rem;
  color: var(--text-light);
  max-width: 500px;
}

.admin-review-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

/* ========== STAR RATING ========== */
.star-rating {
  display: flex;
  gap: 0.3rem;
}

.star-rating .star {
  font-size: 1.8rem;
  cursor: pointer;
  color: #ccc;
  transition: color 0.15s;
  user-select: none;
}

.star-rating .star.active,
.star-rating .star:hover {
  color: var(--accent);
}

/* ========== MEDIA UPLOAD ========== */
.media-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.media-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.media-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

.media-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.media-upload-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--primary-light);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s;
}

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

/* ========== REVIEW MEDIA ========== */
.review-media {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.review-media-item {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--border);
}

/* ========== ADMIN ABOUT ========== */
.admin-about-form {
  max-width: 500px;
}

.admin-about-form textarea {
  resize: vertical;
}

.admin-photos-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.admin-photos-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.admin-photos-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.admin-photo-item {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
}

.admin-photo-item.main {
  border-color: var(--primary);
}

.admin-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-photo-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.6rem;
  text-align: center;
  padding: 2px 0;
  font-weight: 600;
}

.admin-photo-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.2s;
}

.admin-photo-item:hover .admin-photo-remove {
  opacity: 1;
}

.admin-avatar-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.admin-avatar-preview {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.admin-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.crop-modal {
  max-width: 460px;
}

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

.crop-ratio-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.crop-ratio-btn {
  padding: 0.4rem 1rem;
  border: 2px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.crop-ratio-btn.active,
.crop-ratio-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.crop-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1a1a1a;
  touch-action: none;
  cursor: grab;
  transition: aspect-ratio 0.3s ease;
  max-height: 60vh;
}

.crop-container canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.crop-zoom-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
  justify-content: center;
}

.crop-zoom-row label {
  font-size: 0.85rem;
  color: var(--text-light);
}

.crop-zoom-row input[type="range"] {
  flex: 1;
  max-width: 200px;
  accent-color: var(--primary);
}

/* ========== MODAL ========== */
.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: 1000;
  padding: 1rem;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

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

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  padding: 0.2rem;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
}

/* ========== TOAST ========== */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  animation: toastIn 0.3s ease;
  max-width: 320px;
  border-left: 4px solid var(--primary);
}

.toast.success {
  border-left-color: var(--success);
}

.toast.error {
  border-left-color: var(--danger);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  .auth-form {
    padding: 1.5rem;
  }

  .auth-logo h1 {
    font-size: 1.4rem;
  }

  .main-content {
    padding: 1rem 0.8rem 6rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

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

  .service-card {
    padding: 1.2rem;
  }

  .calendar-days .calendar-day {
    padding: 0.5rem 0.1rem;
    font-size: 0.8rem;
  }

  .time-slots {
    grid-template-columns: repeat(3, 1fr);
  }

  .booking-card {
    flex-direction: column;
  }

  .booking-actions {
    flex-direction: row;
    align-items: center;
  }

  .schedule-day {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-filters {
    flex-direction: column;
  }

  .admin-service-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .bottom-nav {
    display: flex;
  }

  .header-right .client-greeting {
    display: none;
  }

  .admin-tabs {
    gap: 0.3rem;
  }

  .admin-tab {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }

  .about-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-photo-placeholder {
    width: 140px;
    height: 140px;
    min-width: 140px;
  }

  .about-stats {
    justify-content: center;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .pub-photos-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .portfolio-filters {
    justify-content: center;
  }

  .consultation-form-wrap {
    max-width: 100%;
  }

  .review-media-item {
    width: 100px;
    height: 75px;
  }

  .media-thumb {
    width: 65px;
    height: 65px;
  }

  .crop-ratio-row {
    gap: 0.3rem;
  }

  .crop-ratio-btn {
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
  }

  .crop-container {
    max-height: 50vh;
  }
}

@media (min-width: 601px) {
  .bottom-nav {
    display: none !important;
  }

  .desktop-nav {
    display: flex;
    gap: 0.3rem;
  }
}

@media (min-width: 900px) {
  .main-content {
    padding: 2rem;
  }
}
