/* ============================================
   MASTER CABINET — Common Styles
   Единые стили для всех страниц кабинета мастера
   ============================================ */

/* ─── Layout Wrappers ───────────────────────── */
.master-layout,
.dashboard-wrapper,
.profile-edit-wrapper,
.work-create-wrapper,
.work-edit-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 40px 0;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* ─── Sidebar ───────────────────────────────── */
.sidebar {
  position: sticky;
  top: 90px;
  height: fit-content;
  background: linear-gradient(145deg, #18181b 0%, #121214 100%);
  border: 1px solid #2b2b30;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 100;
  min-width: 0;
}

.sidebar-profile {
  text-align: center; 
  padding-bottom: 12px;
  border-bottom: 1px solid #242428;
  margin-bottom: 10px;
}

.sidebar-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-size: 24px;
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.25);
  overflow: hidden;
}

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

.sidebar-name {
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 999px;
  font-size: 11px;
  color: #10b981;
  font-weight: 600;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  color: #a3a3ab;
  font-weight: 500;
  font-size: 13.5px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  min-height: 38px;
  box-sizing: border-box;
}

.sidebar-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: #ff6b00;
  transform: scaleY(0);
  transition: transform 0.2s;
}

.sidebar-link:hover {
  background: rgba(255, 107, 0, 0.1);
  color: white;
  transform: translateX(2px);
}

.sidebar-link:hover::before {
  transform: scaleY(1);
}

.sidebar-link.active {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.2) 0%, rgba(255, 107, 0, 0.1) 100%);
  color: #ff6b00;
  border: 1px solid rgba(255, 107, 0, 0.3);
  box-shadow: 0 0 16px rgba(255, 107, 0, 0.12);
}

.sidebar-link.active::before {
  transform: scaleY(1);
}

.sidebar-link i {
  font-size: 15px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-counter {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 999px;
  line-height: 1;
  box-sizing: border-box;
  flex-shrink: 0;
}

.sidebar-counter.muted {
  background: #27272a;
  color: #8f8f98;
}

.sidebar-counter.highlight {
  background: #ff6b00;
  color: #fff;
  box-shadow: 0 2px 6px rgba(255, 107, 0, 0.35);
}

/* ─── Main Content ──────────────────────────── */
.main-content,
.pe-main,
.wc-main,
.we-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
  overflow: hidden;
}

/* ─── Content Header ────────────────────────── */
.content-header,
.dash-header,
.pe-header,
.wc-header,
.we-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.content-header {
  margin-bottom: 32px;
}

.dash-header,
.pe-header,
.wc-header,
.we-header {
  background: linear-gradient(135deg, #18181b 0%, #121214 100%);
  border: 1px solid #2b2b30;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.dash-header::before,
.pe-header::after,
.wc-header::after,
.we-header::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 107, 0, 0.05) 100%);
  pointer-events: none;
}

.content-header h1,
.dash-header-title h1,
.pe-header-title h1,
.wc-header-title h1,
.we-header-title h1 {
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin: 0;
}

.dash-header-title h1,
.pe-header-title h1,
.wc-header-title h1,
.we-header-title h1 {
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, white 0%, #d5d5db 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.content-header p,
.dash-header-subtitle,
.pe-header-subtitle,
.wc-header-subtitle,
.we-header-subtitle {
  color: #8f8f98; 
  font-size: 14px;
  margin-top: 4px;
}

.dash-header-actions,
.pe-header-stats,
.wc-header-stats,
.we-header-stats {
  display: flex;
  gap: 20px;
  align-items: center;
}

.pe-stat-item,
.wc-stat-item,
.we-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 12px;
  color: #d5d5db;
  font-size: 14px;
  font-weight: 500;
}

.pe-stat-item i,
.wc-stat-item i,
.we-stat-item i {
  color: #ff6b00;
}

/* ─── Content Cards ─────────────────────────── */
.content-card,
.section-card,
.pe-card,
.wc-card,
.we-card {
  background: linear-gradient(145deg, #18181b 0%, #121214 100%);
  border: 1px solid #2b2b30;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.pe-card:hover,
.wc-card:hover,
.we-card:hover {
  border-color: #3b3b40;
}

.pe-card-header,
.wc-card-header,
.we-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #2b2b30;
}

.pe-card-header i,
.wc-card-header i,
.we-card-header i {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 107, 0, 0.15);
  color: #ff6b00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.pe-card-header h3,
.wc-card-header h3,
.we-card-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: white;
}

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

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title i {
  color: #ff6b00;
}

/* Form inside main-content (edit/create pages) */
.main-content > form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ─── Stats Grid ────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stat-card {
  background: linear-gradient(145deg, #18181b 0%, #121214 100%);
  border: 1px solid #2b2b30;
  border-radius: 24px;
  padding: 28px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff6b00 0%, #ff8c00 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: #ff6b00;
  box-shadow: 0 12px 40px rgba(255, 107, 0, 0.15);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.stat-icon.orange { background: rgba(255, 107, 0, 0.15); color: #ff6b00; }
.stat-icon.green { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.stat-icon.blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.stat-icon.purple { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.stat-icon.pink { background: rgba(236, 72, 153, 0.15); color: #ec4899; }

.stat-value {
  font-size: 36px;
  font-weight: 800;
  color: white;
  margin-bottom: 6px;
  line-height: 1;
}

.stat-label {
  color: #8f8f98;
  font-size: 14px;
  font-weight: 500;
}

/* ─── Profile Card ──────────────────────────── */
.profile-card {
  background: linear-gradient(145deg, #18181b 0%, #121214 100%);
  border: 1px solid #2b2b30;
  border-radius: 24px;
  padding: 32px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  align-items: start;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  box-shadow: 0 8px 32px rgba(255, 107, 0, 0.3);
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.profile-info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-info-label {
  color: #8f8f98;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.profile-info-value {
  color: #d5d5db;
  font-size: 16px;
  font-weight: 600;
}

.profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.profile-chip {
  padding: 8px 16px;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: 999px;
  color: #ff6b00;
  font-size: 13px;
  font-weight: 600;
}

/* ─── Works Grid ────────────────────────────── */
.works-grid,
.masters-grid,
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.masters-grid {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.work-card,
.service-card,
.master-card {
  background: linear-gradient(145deg, #18181b 0%, #121214 100%);
  border: 1px solid #2b2b30;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card:hover,
.service-card:hover,
.master-card:hover {
  transform: translateY(-4px);
  border-color: #ff6b00;
  box-shadow: 0 12px 40px rgba(255, 107, 0, 0.15);
}

.work-image {
  height: 180px;
  background: linear-gradient(135deg, #232328 0%, #1a1a1e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.work-card:hover .work-image img {
  transform: scale(1.05);
}

.work-content,
.service-card .service-body,
.master-card .master-body {
  padding: 20px;
}

.work-title,
.service-name,
.master-name {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.work-meta,
.service-category,
.master-city {
  display: flex;
  gap: 16px;
  color: #8f8f98;
  font-size: 13px;
  margin-bottom: 12px;
}

.work-actions,
.service-actions {
  display: flex;
  gap: 8px;
}

/* ─── Reviews List ──────────────────────────── */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-card {
  background: linear-gradient(145deg, #18181b 0%, #121214 100%);
  border: 1px solid #2b2b30;
  border-radius: 18px;
  padding: 20px;
  transition: all 0.2s;
}

.review-card:hover {
  border-color: #3b3b40;
  transform: translateX(4px);
}

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

.review-user {
  display: flex;
  gap: 12px;
  align-items: center;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
}

.review-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin-bottom: 2px;
}

.review-info p {
  color: #8f8f98;
  font-size: 12px;
}

.review-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 10px;
  color: #fbbf24;
  font-weight: 600;
  font-size: 13px;
}

.review-text {
  color: #a3a3ab;
  font-size: 14px;
  line-height: 1.6;
}

.review-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.review-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8f8f98;
  font-size: 13px;
}

.review-meta-item i {
  color: #ff6b00;
}

/* ─── Rating Bars ───────────────────────────── */
.rating-bars {
  background: #0f0f10;
  border: 1px solid #2b2b30;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 32px;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.rating-bar-row:last-child {
  margin-bottom: 0;
}

.rating-bar-label {
  width: 30px;
  color: #8f8f98;
  font-size: 13px;
  font-weight: 600;
}

.rating-bar-track {
  flex: 1;
  height: 8px;
  background: #1f1f23;
  border-radius: 4px;
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b00 0%, #ff8c00 100%);
  border-radius: 4px;
  transition: width 0.3s;
}

.rating-bar-count {
  width: 40px;
  text-align: right;
  color: #a3a3ab;
  font-size: 13px;
}

/* ─── Stats Row ─────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-box {
  background: #0f0f10;
  border: 1px solid #2b2b30;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.stat-box-value {
  font-size: 32px;
  font-weight: 800;
  color: white;
  margin-bottom: 4px;
}

.stat-box-label {
  color: #8f8f98;
  font-size: 13px;
  font-weight: 500;
}

.stat-box.avg .stat-box-value { color: #10b981; }
.stat-box.rating-5 .stat-box-value { color: #fbbf24; }

/* ─── Form Fields ───────────────────────────── */
.pe-form-row,
.wc-form-row,
.we-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.pe-form-group,
.wc-form-group,
.we-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pe-form-group.full-width,
.wc-form-group.full-width,
.we-form-group.full-width {
  grid-column: 1 / -1;
}

.pe-form-label,
.wc-form-label,
.we-form-label {
  color: #8f8f98;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pe-form-label .required,
.wc-form-label .required,
.we-form-label .required {
  color: #ff6b00;
  margin-left: 4px;
}

.pe-form-input,
.wc-form-input,
.we-form-input {
  background: #0f0f10;
  border: 1px solid #2b2b30;
  border-radius: 12px;
  padding: 14px 16px;
  color: white;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s;
  width: 100%;
}

.pe-form-input:focus,
.wc-form-input:focus,
.we-form-input:focus {
  outline: none;
  border-color: #ff6b00;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.pe-form-input::placeholder,
.wc-form-input::placeholder,
.we-form-input::placeholder {
  color: #525255;
}

.pe-form-input:disabled,
.wc-form-input:disabled,
.we-form-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

select.pe-form-input,
select.wc-form-input,
select.we-form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238f8f98' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.pe-form-textarea,
.wc-form-textarea,
.we-form-textarea {
  background: #0f0f10;
  border: 1px solid #2b2b30;
  border-radius: 12px;
  padding: 14px 16px;
  color: white;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s;
  width: 100%;
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.pe-form-textarea:focus,
.wc-form-textarea:focus,
.we-form-textarea:focus {
  outline: none;
  border-color: #ff6b00;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.pe-form-textarea::placeholder,
.wc-form-textarea::placeholder,
.we-form-textarea::placeholder {
  color: #525255;
}

.pe-form-textarea.pe-textarea-lg,
.wc-form-textarea.wc-textarea-lg,
.we-form-textarea.we-textarea-lg {
  min-height: 200px;
}

/* ─── Buttons ───────────────────────────────── */
.btn-dash,
.pe-btn,
.wc-btn,
.we-btn,
.btn-add,
.card-btn {
  padding: 14px 28px;
  border-radius: 14px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-dash-primary,
.pe-btn-primary,
.wc-btn-primary,
.we-btn-primary,
.btn-add,
.card-btn {
  background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.3);
}

.btn-dash-primary:hover,
.pe-btn-primary:hover,
.wc-btn-primary:hover,
.we-btn-primary:hover,
.btn-add:hover,
.card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 107, 0, 0.4);
}

.btn-dash-secondary,
.pe-btn-secondary,
.wc-btn-secondary,
.we-btn-secondary {
  background: #18181b;
  border: 1px solid #2b2b30;
  color: white;
}

.btn-dash-secondary:hover,
.pe-btn-secondary:hover,
.wc-btn-secondary:hover,
.we-btn-secondary:hover {
  background: #1f1f23;
  border-color: #3b3b40;
  color: white;
  transform: translateY(-2px);
}

.btn-dash-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-service,
.remove-btn {
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-service.primary,
.remove-btn {
  background: #18181b;
  border: 1px solid #2b2b30;
  color: white;
}

.btn-service.primary:hover,
.remove-btn:hover {
  background: #1f1f23;
  border-color: #3b3b40;
}

.btn-service.danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.btn-service.danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
}

/* ─── Master Response Styles ────────────────── */
.master-response {
  margin-top: 16px;
  padding: 16px 20px;
  background: rgba(255, 107, 0, 0.08);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-left: 3px solid #ff6b00;
  border-radius: 12px;
}

.master-response-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ff6b00;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.master-response-header i {
  font-size: 15px;
}

.master-response-text {
  color: #a3a3ab;
  line-height: 1.6;
  font-size: 14px;
  margin-bottom: 8px;
}

.master-response-date {
  color: #6b6b73;
  font-size: 12px;
}

.master-response-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.btn-respond {
  background: rgba(255, 107, 0, 0.15);
  border: 1px solid rgba(255, 107, 0, 0.3);
  color: #ff6b00;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-respond:hover {
  background: rgba(255, 107, 0, 0.25);
  border-color: #ff6b00;
}

.btn-edit-response {
  background: none;
  border: none;
  color: #a0a0a8;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.btn-edit-response:hover {
  color: #ff6b00;
}

.btn-delete-response {
  background: none;
  border: none;
  color: #ef4444;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.btn-delete-response:hover {
  color: #dc2626;
}

/* ─── Empty State ───────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: #8f8f98;
}

.empty-state > i,
.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.35;
  display: inline-block;
}

.empty-state h3 {
  font-size: 18px;
  color: #d5d5db;
  margin-bottom: 8px;
}

.empty-state p {
  color: #8f8f98;
  font-size: 14px;
}

.empty-state .btn-dash i {
  font-size: 13px !important;
  margin-bottom: 0 !important;
  opacity: 1 !important;
}

/* ─── Pagination ────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  width: 100%;
}

.pagination > a,
.pagination > span {
  padding: 10px 16px;
  border-radius: 12px;
  background: #18181b;
  border: 1px solid #2b2b30;
  color: #c8c8cf;
  text-decoration: none;
  transition: all 0.2s;
}

.pagination > a:hover {
  border-color: #ff6b00;
  color: white;
}

.pagination > .active {
  background: #ff6b00;
  border-color: #ff6b00;
  color: white;
}

.pagination > .disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ─── Toggle Switch ─────────────────────────── */
.pe-toggle-row,
.wc-toggle-row,
.we-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #0f0f10;
  border: 1px solid #2b2b30;
  border-radius: 12px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}

.pe-toggle-row:hover,
.wc-toggle-row:hover,
.we-toggle-row:hover {
  border-color: #3b3b40;
}

.pe-toggle-label,
.wc-toggle-label,
.we-toggle-label {
  color: #d5d5db;
  font-size: 14px;
  font-weight: 500;
}

.pe-toggle-label small,
.wc-toggle-label small,
.we-toggle-label small {
  display: block;
  color: #8f8f98;
  font-size: 12px;
  font-weight: 400;
  margin-top: 4px;
}

.pe-toggle-switch,
.wc-toggle-switch,
.we-toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.pe-toggle-switch input,
.wc-toggle-switch input,
.we-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.pe-toggle-slider,
.wc-toggle-slider,
.we-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2b2b30;
  transition: 0.3s;
  border-radius: 28px;
}

.pe-toggle-slider::before,
.wc-toggle-slider::before,
.we-toggle-slider::before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.pe-toggle-switch input:checked + .pe-toggle-slider,
.wc-toggle-switch input:checked + .wc-toggle-slider,
.we-toggle-switch input:checked + .we-toggle-slider {
  background-color: #ff6b00;
}

.pe-toggle-switch input:checked + .pe-toggle-slider::before,
.wc-toggle-switch input:checked + .wc-toggle-slider::before,
.we-toggle-switch input:checked + .we-toggle-slider::before {
  transform: translateX(24px);
}

/* ─── Category Chips ────────────────────────── */
.pe-categories-grid,
.wc-categories-grid,
.we-categories-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pe-category-chip,
.wc-category-chip,
.we-category-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: #0f0f10;
  border: 2px solid #2b2b30;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s;
  color: #a3a3ab;
  font-weight: 500;
  font-size: 14px;
  user-select: none;
}

.pe-category-chip:hover,
.wc-category-chip:hover,
.we-category-chip:hover {
  border-color: #3b3b40;
  background: #18181b;
}

.pe-category-chip.selected,
.wc-category-chip.selected,
.we-category-chip.selected {
  border-color: #ff6b00;
  background: rgba(255, 107, 0, 0.12);
  color: #ff6b00;
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.1);
}

.pe-category-chip i,
.wc-category-chip i,
.we-category-chip i {
  font-size: 18px;
}

.pe-category-chip input,
.wc-category-chip input,
.we-category-chip input {
  display: none;
}

/* ─── Avatar Upload ─────────────────────────── */
.pe-avatar-upload,
.wc-avatar-upload,
.we-avatar-upload {
  display: flex;
  align-items: center;
  gap: 24px;
}

.pe-avatar-preview,
.wc-avatar-preview,
.we-avatar-preview {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(255, 107, 0, 0.3);
  flex-shrink: 0;
}

.pe-avatar-preview img,
.wc-avatar-preview img,
.we-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pe-avatar-preview i,
.wc-avatar-preview i,
.we-avatar-preview i {
  font-size: 48px;
  color: white;
}

.pe-avatar-input,
.wc-avatar-input,
.we-avatar-input {
  flex: 1;
}

.pe-avatar-hint,
.wc-avatar-hint,
.we-avatar-hint {
  color: #8f8f98;
  font-size: 12px;
  margin-top: 8px;
}

/* ─── Upload Area ───────────────────────────── */
.wc-upload-wrap,
.we-upload-wrap {
  position: relative;
}

.wc-upload-btn,
.we-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 20px;
  background: #0f0f10;
  border: 1.5px dashed #3b3b40;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s;
  width: 100%;
}

.wc-upload-btn:hover,
.we-upload-btn:hover {
  border-color: #ff6b00;
  background: rgba(255, 107, 0, 0.04);
}

.wc-upload-btn i,
.we-upload-btn i {
  color: #ff6b00;
  font-size: 18px;
}

.wc-upload-title,
.we-upload-title {
  color: #f4f4f5;
  font-size: 14px;
  font-weight: 600;
}

.wc-upload-hint,
.we-upload-hint {
  color: #71717a;
  font-size: 12px;
  font-weight: 400;
  padding-left: 8px;
  border-left: 1px solid #27272a;
}

@media (max-width: 576px) {
  .wc-upload-btn,
  .we-upload-btn {
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
  }
  .wc-upload-hint,
  .we-upload-hint {
    border-left: none;
    padding-left: 0;
  }
}

.wc-upload-input,
.we-upload-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* ─── Preview Card ──────────────────────────── */
.pe-preview-card {
  background: linear-gradient(145deg, #18181b 0%, #121214 100%);
  border: 1px solid #2b2b30;
  border-radius: 24px;
  padding: 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.pe-preview-avatar {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  box-shadow: 0 8px 32px rgba(255, 107, 0, 0.3);
  overflow: hidden;
}

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

.pe-preview-info h3 {
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}

.pe-preview-info p {
  color: #8f8f98;
  font-size: 14px;
  margin-bottom: 12px;
}

.pe-preview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pe-preview-chip {
  padding: 6px 14px;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: 999px;
  color: #ff6b00;
  font-size: 12px;
  font-weight: 600;
}

.pe-preview-btn {
  padding: 12px 24px;
  background: #0f0f10;
  border: 1px solid #2b2b30;
  border-radius: 14px;
  color: #a3a3ab;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pe-preview-btn:hover {
  border-color: #ff6b00;
  color: #ff6b00;
  background: rgba(255, 107, 0, 0.05);
}

/* ─── Form Actions ──────────────────────────── */
.pe-form-actions,
.wc-form-actions,
.we-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

/* ─── Service Card Specifics ────────────────── */
.service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 107, 0, 0.15);
  color: #ff6b00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.service-status {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
}

.service-status.active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.service-status.inactive {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.service-card.inactive {
  opacity: 0.7;
}

.service-description {
  color: #a3a3ab;
  font-size: 14px;
  margin-bottom: 16px;
}

.service-price {
  background: #0f0f10;
  border: 1px solid #2b2b30;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.service-price-label {
  color: #8f8f98;
  font-size: 12px;
  margin-bottom: 6px;
}

.service-price-value {
  color: #ff6b00;
  font-size: 18px;
  font-weight: 700;
}

/* ─── Master Card Specifics ─────────────────── */
.master-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.master-profile {
  display: flex;
  gap: 16px;
}

.master-card .avatar {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: #2a2a30;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  flex-shrink: 0;
  overflow: hidden;
}

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

.master-spec {
  color: #ff6b00;
  font-weight: 600;
  margin-bottom: 12px;
}

.master-text {
  color: #a3a3ab;
  margin-bottom: 20px;
}

.master-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #c8c8cf;
  font-size: 14px;
  margin-bottom: 22px;
}

.master-meta div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.master-meta div i {
  color: #ff6b00;
  width: 16px;
}

.master-card .rating {
  background: #0f0f10;
  border: 1px solid #313136;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  height: fit-content;
  color: #fbbf24;
}

.master-card .rating i {
  color: #fbbf24;
}

/* ─── Modal ─────────────────────────────────── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

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

.modal {
  background: linear-gradient(145deg, #18181b 0%, #121214 100%);
  border: 1px solid #2b2b30;
  border-radius: 24px;
  padding: 32px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(-20px);
  transition: transform 0.3s;
}

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

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

.modal-title {
  font-size: 22px;
  font-weight: 700;
  color: white;
}

.modal-close {
  background: none;
  border: none;
  color: #8f8f98;
  font-size: 32px;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: white;
}

.modal-body {
  margin-bottom: 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-service-info {
  background: #0f0f10;
  border: 1px solid #2b2b30;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.modal-service-info-name {
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.modal-service-info-category {
  color: #8f8f98;
  font-size: 13px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  color: #8f8f98;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: #0f0f10;
  border: 1px solid #2b2b30;
  border-radius: 12px;
  padding: 14px 16px;
  color: white;
  font-size: 15px;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #ff6b00;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

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

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #0f0f10;
  border: 1px solid #2b2b30;
  border-radius: 12px;
  margin-bottom: 12px;
}

.toggle-label {
  color: #d5d5db;
  font-size: 14px;
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
}

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

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

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

.toggle-switch input:checked + .toggle-slider {
  background-color: #ff6b00;
}

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

.btn {
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 107, 0, 0.4);
}

.btn-secondary {
  background: #18181b;
  border: 1px solid #2b2b30;
  color: white;
}

.btn-secondary:hover {
  background: #1f1f23;
  border-color: #3b3b40;
}

/* ─── Responsive ────────────────────────────── */
@media (max-width: 1024px) {
  .master-layout,
  .dashboard-wrapper,
  .profile-edit-wrapper,
  .work-create-wrapper,
  .work-edit-wrapper {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
    order: -1;
  }

  .sidebar-menu {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .sidebar-link {
    flex-shrink: 0;
  }
  
  .pe-preview-card {
    grid-template-columns: auto 1fr;
  }
  
  .pe-preview-btn {
    grid-column: 1 / -1;
    justify-content: center;
  }
}
  
/* ============================================
   CAR AUTOCOMPLETE STYLES
   ============================================ */

/* ─── Profile Page Styles ───────────────────── */
.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.profile-info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-info-label {
  color: #8f8f98; 
  font-size: 12px;
  text-transform: uppercase; 
  letter-spacing: 0.5px;
  font-weight: 600;
}

.profile-info-value {
  color: #d5d5db;
  font-size: 16px;
  font-weight: 600;
}

.profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.profile-chip {
  padding: 8px 16px;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: 999px;
  color: #ff6b00;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ─── Car Autocomplete ──────────────────────── */
.car-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1a1a1f;
  border: 1px solid #2b2b30;
  border-radius: 12px;
  margin-top: 4px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  display: none;
}

.car-dropdown.active { 
  display: block; 
}

.car-option {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid #2b2b30;
}

.car-option:last-child { 
  border-bottom: none; 
}

.car-option:hover, 
.car-option.highlighted { 
  background: #2b2b30; 
}

.car-option-name { 
  font-weight: 500; 
  color: #fff; 
}

.car-option-type { 
  font-size: 11px; 
  color: #8f8f98; 
  text-transform: uppercase; 
  margin-top: 2px; 
}

.car-dropdown-empty { 
  padding: 16px; 
  text-align: center; 
  color: #8f8f98; 
}

.car-input-wrapper { 
  position: relative; 
}

/* Year input styling */
input[type="number"][name="car_year"] {
  width: 100%;
  box-sizing: border-box;
}

/* ============================================
   CAR AUTOCOMPLETE STYLES
   ============================================ */

/* ============================================
   MOBILE SIDEBAR TOGGLE BUTTON
   ============================================ */

.mobile-sidebar-toggle {
  display: none;
  position: fixed;
  top: 86px;
  left: 16px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(24, 24, 27, 0.95);
  border: 1px solid #2b2b30;
  color: #ff6b00;
  font-size: 20px;
  cursor: pointer;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  padding: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-sidebar-toggle:hover {
  background: rgba(255, 107, 0, 0.15);
  border-color: #ff6b00;
}

.mobile-sidebar-toggle.active {
  background: rgba(255, 107, 0, 0.2);
  border-color: #ff6b00;
  color: white;
}

@media (max-width: 768px) {
  .mobile-sidebar-toggle {
    display: flex !important;
  }
  
  .sidebar {
    position: fixed !important;
    top: 70px !important;
    left: -320px !important;
    width: 280px !important;
    height: calc(100vh - 70px) !important;
    background: rgba(15, 15, 16, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    border-right: 1px solid #2b2b30 !important;
    border-bottom: none !important;
    z-index: 9998 !important;
    transition: left 0.3s ease !important;
    overflow-y: auto !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5) !important;
  }
  
  .sidebar.mobile-open {
    left: 0 !important;
  }
  
  .sidebar-profile {
    padding: 24px 20px !important;
    border-bottom: 1px solid #2b2b30 !important;
  }
  
  .sidebar-menu {
    flex-direction: column !important;
    overflow-x: visible !important;
    overflow-y: auto !important;
    padding: 12px 0 !important;
    gap: 4px !important;
  }
  
  .sidebar-link {
    min-width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    justify-content: flex-start !important;
    padding: 14px 20px !important;
    margin: 0 !important;
    gap: 14px !important;
    border-radius: 0 !important;
    font-size: 14px !important;
  }
  
  .sidebar-link span {
    display: inline !important;
  }
  
  .sidebar-link i {
    font-size: 18px !important;
    width: 24px !important;
    margin: 0 !important;
  }
  
  /* Контент страницы */
  .master-layout {
    display: block !important;
  }
  
  .main-content {
    padding-top: 60px !important;
  }
  
  /* Stats grid - 2 колонки */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  
  .stat-card {
    padding: 16px !important;
  }
  
  .stat-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 16px !important;
    margin-bottom: 8px !important;
  }
  
  .stat-value {
    font-size: 22px !important;
  }
  
  .stat-label {
    font-size: 11px !important;
  }
  
  /* Profile card */
  .profile-card {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    gap: 20px !important;
  }
  
  .profile-avatar {
    width: 96px !important;
    height: 96px !important;
    margin: 0 auto !important;
  }
  
  .profile-info-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  /* Cards */
  .section-card,
  .content-card {
    padding: 16px !important;
    margin-bottom: 16px !important;
    border-radius: 16px !important;
  }
  
  .section-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  
  .section-title {
    font-size: 18px !important;
  }
  
  /* Works grid */
  .works-grid,
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  .work-image {
    height: 200px !important;
  }
  
  /* Buttons */
  .btn-dash,
  .btn {
    min-height: 44px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
  }
  
  .btn-dash-sm {
    padding: 10px 14px !important;
    font-size: 13px !important;
  }
  
  /* Forms */
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  input[type="url"],
  input[type="number"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px !important;
    min-height: 44px !important;
  }
  
  /* Reviews */
  .review-card {
    padding: 16px !important;
    margin-bottom: 12px !important;
  }
  
  .review-avatar {
    width: 40px !important;
    height: 40px !important;
  }
  
  /* Modal */
  .modal {
    padding: 20px !important;
    margin: 16px !important;
  }
  
  /* Review Response Mobile */
  .master-response {
    padding: 12px 16px !important;
  }
  
  .master-response-header {
    font-size: 12px !important;
  }
  
  .master-response-text {
    font-size: 13px !important;
  }
  
  .master-response-actions {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  
  .btn-respond {
    width: 100% !important;
    justify-content: center !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
  }
  
  .btn-edit-response,
  .btn-delete-response {
    font-size: 11px !important;
    padding: 4px 6px !important;
  }
  
  .form-textarea {
    font-size: 14px !important;
    min-height: 80px !important;
  }
  
  .btn-dash {
    padding: 10px 16px !important;
    font-size: 13px !important;
  }
}

/* ─── Small Mobile (<420px) ─────────────────── */
@media (max-width: 420px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .stat-value {
    font-size: 18px !important;
  }
  
  .stat-label {
    font-size: 10px !important;
  }
  
  .sidebar-name {
    font-size: 14px !important;
  }
  
  .dash-header {
    padding: 20px !important;
  }
  
  .dash-header-title h1 {
    font-size: 20px !important;
  }
}

/* ─── Review Response Forms ─────────────────── */
.form-textarea {
  background: #0f0f10;
  border: 1px solid #2b2b30;
  border-radius: 12px;
  padding: 14px 16px;
  color: white;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s;
  width: 100%;
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}

.form-textarea:focus {
  outline: none;
  border-color: #ff6b00;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.form-textarea::placeholder {
  color: #525255;
}

.btn-dash {
  padding: 9px 18px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-dash i {
  font-size: 13.5px;
}

.btn-dash-primary {
  background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.3);
}

.btn-dash-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 107, 0, 0.4);
}

.btn-dash-secondary {
  background: #18181b;
  border: 1px solid #2b2b30;
  color: white;
}

.btn-dash-secondary:hover {
  background: #1f1f23;
  border-color: #3b3b40;
  color: white;
}

/* ─── Share Profile Card ────────────────────── */
.dash-share-card {
  background: linear-gradient(145deg, #18181b 0%, #121214 100%);
  border: 1px solid #2b2b30;
  border-radius: 20px;
  padding: 22px 26px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.dash-share-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dash-share-title-wrap {
  flex: 1;
  min-width: 250px;
}

.dash-share-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #ff6b00;
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.25);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 8px;
}

.dash-share-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px 0;
}

.dash-share-desc {
  font-size: 13px;
  color: #8f8f98;
  margin: 0;
  line-height: 1.4;
}

.dash-share-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

.dash-share-item {
  background: #0f0f10;
  border: 1px solid #27272a;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.2s;
}

.dash-share-item:hover {
  border-color: #3f3f46;
}

.dash-share-item.highlight {
  border-color: rgba(255, 107, 0, 0.3);
  background: linear-gradient(145deg, rgba(255, 107, 0, 0.05) 0%, #0f0f10 100%);
}

.dash-share-item-info {
  min-width: 0;
  flex: 1;
}

.dash-share-item-label {
  font-size: 11px;
  font-weight: 600;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dash-share-item-url {
  font-size: 13px;
  font-weight: 600;
  color: #e4e4e7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.dash-share-item.highlight .dash-share-item-url {
  color: #ff8c00;
}

/* ─── Reviews Share Banner ─────────────────── */
.reviews-share-banner {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, #18181b 100%);
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.reviews-share-text {
  flex: 1;
  min-width: 260px;
}

.reviews-share-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.reviews-share-desc {
  font-size: 13px;
  color: #a1a1aa;
  margin: 0;
}

.reviews-share-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ─── Quick Reply Templates ────────────────── */
.reply-templates-box {
  background: #141416;
  border: 1px solid #27272a;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.reply-templates-title {
  font-size: 11px;
  font-weight: 600;
  color: #71717a;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.reply-templates-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.reply-template-chip {
  background: #1c1c1f;
  border: 1px solid #2f2f35;
  color: #d4d4d8;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.reply-template-chip:hover {
  background: rgba(255, 107, 0, 0.15);
  border-color: rgba(255, 107, 0, 0.4);
  color: #ff6b00;
  transform: translateY(-1px);
}

.reply-template-chip:active {
  transform: translateY(0);
}

/* ─── Cabinet Toast Notification ───────────── */
.cabinet-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #18181b;
  border: 1px solid #3f3f46;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 107, 0, 0.15);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  z-index: 10000;
  transform: translateY(60px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cabinet-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ─── Analytics Card ────────────────────────── */
.analytics-card {
  background: linear-gradient(145deg, #18181b 0%, #121214 100%);
  border: 1px solid #2b2b30;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

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

.analytics-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.analytics-period-badge {
  font-size: 12px;
  color: #a1a1aa;
  background: #202024;
  border: 1px solid #2e2e34;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
}

.analytics-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.analytics-kpi-card {
  background: #0f0f10;
  border: 1px solid #27272a;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s;
}

.analytics-kpi-card:hover {
  border-color: #3f3f46;
}

.analytics-kpi-card.highlight {
  border-color: rgba(255, 107, 0, 0.35);
  background: linear-gradient(145deg, rgba(255, 107, 0, 0.05) 0%, #0f0f10 100%);
}

.analytics-kpi-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.analytics-kpi-value {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.analytics-kpi-card.highlight .analytics-kpi-value {
  color: #ff8c00;
}

.analytics-kpi-sub {
  font-size: 12px;
  color: #8f8f98;
}

/* 14-days Activity Mini-Chart */
.analytics-chart-box {
  background: #0f0f10;
  border: 1px solid #242428;
  border-radius: 14px;
  padding: 16px 18px;
}

.analytics-chart-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #71717a;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.analytics-bars-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  height: 80px;
  padding-bottom: 22px;
  position: relative;
}

.analytics-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  position: relative;
}

.analytics-bar {
  width: 100%;
  max-width: 24px;
  min-height: 4px;
  background: #27272a;
  border-radius: 4px 4px 0 0;
  transition: all 0.25s ease;
  position: relative;
  cursor: pointer;
}

.analytics-bar:hover {
  background: #ff6b00;
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.4);
}

.analytics-bar.is-today {
  background: linear-gradient(180deg, #ff8c00 0%, #ff6b00 100%);
}

.analytics-bar-label {
  position: absolute;
  bottom: -20px;
  font-size: 9.5px;
  color: #71717a;
  white-space: nowrap;
}

/* ─── Before / After & Pinning (Stage 3) ─────── */
.toggle-switch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: #141417;
  border: 1px solid #27272a;
  border-radius: 14px;
  margin-bottom: 16px;
}
.toggle-switch-card:hover {
  border-color: #3f3f46;
}
.toggle-switch-card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.toggle-switch-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.toggle-switch-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toggle-switch-desc {
  font-size: 12.5px;
  color: #a1a1aa;
}

.switch-control {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
}
.switch-control input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #27272a;
  transition: .3s;
  border-radius: 28px;
  border: 1px solid #3f3f46;
}
.switch-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
.switch-control input:checked + .switch-slider {
  background-color: #ff6b00;
  border-color: #ff6b00;
}
.switch-control input:checked + .switch-slider:before {
  transform: translateX(22px);
}
.switch-control input:disabled + .switch-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.ba-dropzones-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 640px) {
  .ba-dropzones-grid {
    grid-template-columns: 1fr;
  }
}
.ba-dropzone-box {
  background: #0f0f10;
  border: 1.5px dashed #3b3b40;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 180px;
  position: relative;
  cursor: pointer;
  transition: all 0.25s;
}
.ba-dropzone-box:hover {
  border-color: #ff6b00;
  background: rgba(255, 107, 0, 0.03);
}
.ba-dropzone-box.has-file {
  border-style: solid;
  border-color: #27272a;
  padding: 8px;
}
.ba-dropzone-box input[type="file"] {
  display: none;
}
.ba-badge-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.ba-badge-before {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.ba-badge-after {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.ba-preview-container {
  width: 100%;
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.ba-preview-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-preview-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.ba-preview-remove:hover {
  background: #ef4444;
}

/* ─── Before / After Comparison Slider Component ─ */
.ba-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: #0f0f10;
  user-select: none;
  --pos: 50%;
}
.ba-slider-container img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-slider-after {
  width: 100%;
  height: 100%;
}
.ba-slider-before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  -webkit-clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(0,0,0,0.8), 0 0 4px #ff6b00;
  pointer-events: none;
  transform: translateX(-50%);
  z-index: 5;
}
.ba-slider-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ff6b00;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.ba-tag {
  position: absolute;
  top: 14px;
  z-index: 6;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.ba-tag-before {
  left: 14px;
  background: rgba(239, 68, 68, 0.85);
  color: #fff;
}
.ba-tag-after {
  right: 14px;
  background: rgba(34, 197, 94, 0.85);
  color: #fff;
}
.ba-range-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
  z-index: 10;
  -webkit-appearance: none;
  appearance: none;
}

