/* =========================================================
   NO HEART — DASHBOARD.CSS CLEAN VERSION
========================================================= */

/* Dashboard layout fixes */
.twitter-dashboard-main .twitter-composer-card,
.twitter-dashboard-main .twitter-feed-card,
.twitter-dashboard-main .twitter-dashboard-stats {
  position: relative !important;
  top: auto !important;
  z-index: 1 !important;
}

.twitter-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.twitter-stat-card {
  padding: 18px;
  border-radius: 20px;
  display: grid;
  gap: 8px;
}

.twitter-stat-card strong,
.twitter-stat-card h3 {
  font-size: 2rem;
  margin: 0;
}

#overviewPanel {
  position: relative !important;
  top: auto !important;
}

#producerPostsSection,
#uploadBeat,
#producerLibrarySection,
#notificationsSection,
#customRequestsSection {
  position: relative !important;
  z-index: 1 !important;
  margin-top: 18px;
}

#dashboardFeed,
#producerPostsList,
#myBeatsGrid,
.notifications-list,
.request-list {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.twitter-dashboard-shell .dashboard-form textarea {
  min-height: 120px;
}

.twitter-dashboard-shell .profile-avatar-preview,
.twitter-dashboard-shell .profile-avatar-fallback {
  width: 96px;
  height: 96px;
}

.producer-avatar-preview-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Calendar */
.dashboard-calendar-card {
  width: 100%;
  overflow: hidden;
}

.dashboard-mini-calendar {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.dashboard-calendar-head {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  gap: 8px;
}

.dashboard-calendar-head strong,
#calendarMonthLabel {
  text-align: center;
  font-size: 0.95rem;
  white-space: nowrap;
}

.dashboard-calendar-head .btn {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
}

.dashboard-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
}

.dashboard-calendar-grid span {
  text-align: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 700;
  overflow: hidden;
}

.dashboard-calendar-grid button {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 0;
  font-size: 0.82rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 215, 120, 0.12);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-weight: 700;
}

.dashboard-calendar-grid button.active {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #111;
  border-color: transparent;
}

.dashboard-calendar-grid button.empty {
  opacity: 0.2;
  pointer-events: none;
}

.dashboard-calendar-grid button.has-available {
  border-color: rgba(127, 255, 165, 0.32);
  box-shadow: inset 0 -3px 0 rgba(127, 255, 165, 0.55);
}

.dashboard-calendar-grid button.has-booked {
  border-color: rgba(255, 156, 156, 0.32);
  box-shadow: inset 0 -3px 0 rgba(255, 156, 156, 0.55);
}

.dashboard-calendar-list {
  display: grid;
  gap: 10px;
}

.dashboard-calendar-list div {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 215, 120, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.dashboard-calendar-list strong {
  display: block;
}

.dashboard-calendar-list span {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.dashboard-calendar-card .full-btn {
  width: 100%;
  min-height: 46px;
  font-size: 0.9rem;
}

/* Upload page */
.upload-pro-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 380px !important;
  gap: 24px !important;
  align-items: start !important;
}

.upload-pro-card {
  width: 100% !important;
  min-width: 0 !important;
}

body.upload-page .upload-pro-layout {
  max-width: 1440px !important;
  margin: 0 auto !important;
}

.bulk-upload-zone {
  position: relative;
  margin-top: 22px;
  padding: 34px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.28);
  text-align: center;
  transition: 0.25s ease;
}

.bulk-upload-zone:hover,
.bulk-upload-zone.drag-active {
  border-color: rgba(245, 199, 82, 0.75);
  background: rgba(245, 199, 82, 0.06);
}

.bulk-upload-zone input {
  width: 100%;
  margin-top: 16px;
}

.bulk-upload-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(245, 199, 82, 0.12);
  color: #f5c752;
  font-size: 2rem;
  border: 1px solid rgba(245, 199, 82, 0.3);
}

.artwork-zone {
  padding: 26px;
}

.upload-queue-panel {
  position: relative;
  padding: 22px;
  border-radius: 28px;
  background: rgba(18, 17, 14, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.queue-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 14px;
}

.queue-panel-header h2 {
  margin: 4px 0 0;
  font-size: 1.45rem;
}

.queue-count {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(245, 199, 82, 0.12);
  color: #f5c752;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.queue-help {
  padding: 12px 14px;
  border-radius: 16px;
  color: #b8b8b8;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 16px;
}

.upload-queue-list {
  display: grid;
  gap: 12px;
}

.queue-pro-item {
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr 26px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.queue-art,
.empty-art {
  width: 62px;
  height: 62px;
  border-radius: 15px;
  object-fit: cover;
  background: #080808;
}

.empty-art {
  display: grid;
  place-items: center;
  color: #777;
  font-size: 0.65rem;
  line-height: 1.1;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.queue-info {
  min-width: 0;
}

.queue-info strong,
.queue-info span,
.queue-info small {
  display: block;
}

.queue-info strong {
  color: #fff;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-info span {
  color: #aaa;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-info small {
  color: #777;
  font-size: 0.74rem;
  margin-top: 2px;
}

.queue-remove {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}

.queue-progress {
  height: 6px;
  margin-top: 10px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.queue-progress-bar {
  height: 100%;
  border-radius: 99px;
  background: #f5c752;
  transition: width 0.25s ease;
}

/* Social app feed */
#dashboardFeed {
  display: grid !important;
  gap: 24px !important;
  margin-top: 22px !important;
}

.feed-card {
  overflow: hidden !important;
  padding: 0 !important;
  border-radius: 30px !important;
  background:
    radial-gradient(circle at top left, rgba(245, 199, 82, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(24, 22, 18, 0.96), rgba(10, 10, 10, 0.96)) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42) !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.feed-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 199, 82, 0.18) !important;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.55) !important;
}

.feed-header {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 18px 20px !important;
}

.feed-header strong {
  color: #fff !important;
  font-size: 1rem !important;
}

.feed-header .muted {
  margin: 3px 0 0 !important;
  font-size: 0.86rem !important;
  color: rgba(255, 255, 255, 0.55) !important;
}

.producer-post-avatar {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  border-radius: 999px !important;
  object-fit: cover !important;
  display: grid !important;
  place-items: center !important;
  background: rgba(245, 199, 82, 0.12) !important;
  border: 1px solid rgba(245, 199, 82, 0.28) !important;
  color: #f5c752 !important;
  font-weight: 900 !important;
}

.feed-cover {
  width: 100% !important;
  aspect-ratio: 16 / 10 !important;
  max-height: 460px !important;
  object-fit: cover !important;
  display: block !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.feed-card h3 {
  margin: 0 !important;
  padding: 18px 20px 6px !important;
  font-size: 1.45rem !important;
  line-height: 1.08 !important;
  color: #fff !important;
}

.feed-card audio {
  width: calc(100% - 40px) !important;
  height: 46px !important;
  margin: 14px 20px !important;
}

.feed-card > p {
  margin: 0 !important;
  padding: 4px 20px 22px !important;
  color: rgba(255, 255, 255, 0.88) !important;
  line-height: 1.55 !important;
  font-size: 1rem !important;
}

.feed-meta {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px 20px 20px !important;
}

.feed-meta span {
  padding: 8px 12px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-weight: 800 !important;
  font-size: 0.85rem !important;
}

.feed-meta span:last-child {
  color: #111 !important;
  background: linear-gradient(135deg, #f5c752, #ffe08a) !important;
}


/* Sticky dashboard sidebars */
.producer-tools-card,
.studio-calendar-card,
.dashboard-sidebar,
.dashboard-left,
.dashboard-right,
.twitter-dashboard-left,
.twitter-dashboard-right {
  position: sticky !important;
  top: 110px !important;
  align-self: start !important;
  height: fit-content !important;
  max-height: calc(100vh - 130px) !important;
  overflow-y: auto !important;
}

/* cleaner sidebar scrolling */
.producer-tools-card::-webkit-scrollbar,
.studio-calendar-card::-webkit-scrollbar,
.dashboard-sidebar::-webkit-scrollbar,
.dashboard-left::-webkit-scrollbar,
.dashboard-right::-webkit-scrollbar,
.twitter-dashboard-left::-webkit-scrollbar,
.twitter-dashboard-right::-webkit-scrollbar {
  width: 6px;
}

.producer-tools-card::-webkit-scrollbar-thumb,
.studio-calendar-card::-webkit-scrollbar-thumb,
.dashboard-sidebar::-webkit-scrollbar-thumb,
.dashboard-left::-webkit-scrollbar-thumb,
.dashboard-right::-webkit-scrollbar-thumb,
.twitter-dashboard-left::-webkit-scrollbar-thumb,
.twitter-dashboard-right::-webkit-scrollbar-thumb {
  background: rgba(245, 200, 75, 0.35);
  border-radius: 999px;
}

@media (max-width: 1180px) {
  .producer-tools-card,
  .studio-calendar-card,
  .dashboard-sidebar,
  .dashboard-left,
  .dashboard-right,
  .twitter-dashboard-left,
  .twitter-dashboard-right {
    position: relative !important;
    top: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

/* Responsive */
@media (max-width: 1180px) {
  .twitter-dashboard-right {
    display: none;
  }
}

@media (max-width: 1050px) {
  .upload-pro-layout,
  body.upload-page .upload-pro-layout {
    grid-template-columns: 1fr !important;
  }

  body.upload-page .upload-queue-panel {
    width: 100% !important;
  }
}

@media (max-width: 980px) {
  .twitter-dashboard-stats {
    grid-template-columns: 1fr;
  }

  .twitter-dashboard-right {
    display: block;
  }
}

@media (max-width: 700px) {
  .feed-card {
    border-radius: 24px !important;
  }

  .feed-card h3 {
    font-size: 1.25rem !important;
  }
}

/* =========================================================
   ENGINEER DASHBOARD CALENDAR — FINAL CLEAN FIX
========================================================= */

#availability {
  scroll-margin-top: 140px;
}

#calendarMonthLabel {
  display: block !important;
  text-align: center !important;
  font-weight: 900 !important;
  margin: 20px 0 !important;
}

#prevMonthBtn,
#nextMonthBtn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 78px !important;
  margin: 0 10px 18px 0 !important;
}

/* Main calendar grid */
#engineerCalendarGrid {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(70px, 1fr)) !important;
  gap: 10px !important;
  max-width: 820px !important;
  margin: 24px auto 28px !important;
  align-items: stretch !important;
}

/* Week labels */
#engineerCalendarGrid > span {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 28px !important;
  color: rgba(255, 255, 255, 0.65) !important;
  font-size: 0.82rem !important;
  font-weight: 900 !important;
}

/* Calendar day buttons */
#engineerCalendarGrid button,
#engineerCalendarGrid .calendar-cell {
  width: 100% !important;
  min-height: 58px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(247, 200, 67, 0.25) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  color: #fff !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

#engineerCalendarGrid button:hover,
#engineerCalendarGrid .calendar-cell:hover {
  border-color: rgba(247, 200, 67, 0.75) !important;
  transform: translateY(-1px);
}

#engineerCalendarGrid button.empty,
#engineerCalendarGrid .calendar-cell.empty {
  visibility: hidden !important;
  pointer-events: none !important;
}

#engineerCalendarGrid button.selected,
#engineerCalendarGrid button.active,
#engineerCalendarGrid .calendar-cell.selected {
  background: linear-gradient(135deg, #f7c843, #d99b1d) !important;
  color: #050505 !important;
}

#engineerCalendarGrid button.has-open,
#engineerCalendarGrid .calendar-cell.has-open {
  border-color: rgba(247, 200, 67, 0.95) !important;
  box-shadow: 0 0 0 1px rgba(247, 200, 67, 0.28) !important;
}

/* Form spacing */
#availabilityForm {
  margin-top: 24px !important;
}

#slotListGrid,
#sessionsGrid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 360px)) !important;
  gap: 18px !important;
}

/* ENGINEER CALENDAR HTML STRUCTURE FIX */

.custom-calendar {
  max-width: 860px;
  margin: 28px auto 0;
}

.calendar-toolbar {
  display: grid !important;
  grid-template-columns: 100px 1fr 100px !important;
  align-items: center !important;
  gap: 16px !important;
  margin-bottom: 20px !important;
}

.calendar-toolbar h3 {
  text-align: center !important;
  margin: 0 !important;
  font-weight: 900 !important;
}

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

.calendar-weekdays div {
  text-align: center !important;
  font-size: 0.82rem !important;
  font-weight: 900 !important;
  color: rgba(255, 255, 255, 0.65) !important;
}

#engineerCalendarGrid.calendar-grid-custom,
#engineerCalendarGrid {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 860px !important;
  margin: 0 auto 28px !important;
}

#engineerCalendarGrid .calendar-cell,
#engineerCalendarGrid button {
  min-height: 58px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(247, 200, 67, 0.25) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  color: #fff !important;
  font-weight: 900 !important;
}

#engineerCalendarGrid .calendar-cell.empty,
#engineerCalendarGrid button.empty {
  visibility: hidden !important;
  pointer-events: none !important;
}

#engineerCalendarGrid .calendar-cell.selected,
#engineerCalendarGrid button.selected {
  background: linear-gradient(135deg, #f7c843, #d99b1d) !important;
  color: #050505 !important;
}

.dashboard-side {
  display: grid !important;
  gap: 10px !important;
  align-content: start !important;
}

.dashboard-side a {
  display: block !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800 !important;
}

/* FIX: Engineer dashboard sidebar layout */
.dashboard-grid {
  display: grid !important;
  grid-template-columns: 240px minmax(0, 1fr) !important;
  gap: 24px !important;
  align-items: start !important;
  width: 100% !important;
}

.dashboard-side {
  position: sticky !important;
  top: 100px !important;
  display: grid !important;
  gap: 10px !important;
  align-self: start !important;
  width: 100% !important;
  max-width: 240px !important;
}

.dashboard-main {
  min-width: 0 !important;
  width: 100% !important;
  display: grid !important;
  gap: 18px !important;
}

.dashboard-main > .card {
  width: 100% !important;
}

@media (max-width: 980px) {
  .dashboard-grid {
    grid-template-columns: 1fr !important;
  }

  .dashboard-side {
    position: static !important;
    max-width: 100% !important;
  }
}

.booking-profile-page {
  padding: 40px 0;
}

.booking-hero-card,
.booking-side-card,
.service-card,
.empty-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border-radius: 28px;
  padding: 28px;
}

.booking-hero-card h1 {
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: .9;
  margin: 8px 0 18px;
}

.profile-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(255,255,255,.7);
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.services-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.service-card {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.service-card p {
  color: rgba(255,255,255,.68);
  margin: 0 0 10px;
}

.service-card span {
  color: rgba(255,255,255,.55);
}

.service-price-box {
  display: grid;
  gap: 12px;
  justify-items: end;
  min-width: 110px;
}

.service-price-box strong {
  font-size: 1.15rem;
}

.gold-btn {
  background: #f5c84b;
  color: #050505 !important;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
}

.booking-side-card {
  position: sticky;
  top: 110px;
}

.booking-side-card h3 {
  margin-top: 0;
}

.booking-side-card p,
.muted {
  color: rgba(255,255,255,.65);
}

.error-text {
  color: #ff6b6b;
}

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

  .booking-side-card {
    position: static;
  }

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

  .service-price-box {
    justify-items: start;
  }
}

/* ENGINEER EDIT PROFILE UPGRADE */

.engineer-edit-card {
  max-width: 760px;
  padding: 34px;
}

.engineer-edit-card h1 {
  max-width: 680px;
  letter-spacing: -0.04em;
}

.engineer-profile-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.engineer-form-section {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.035);
  border-radius: 24px;
  padding: 22px;
  margin-top: 20px;
}

.engineer-form-section-title {
  font-size: 1rem;
  margin: 0 0 16px;
  color: #f5c84b;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.engineer-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.engineer-form-grid .full {
  grid-column: 1 / -1;
}

.engineer-preview-card {
  padding: 28px;
  max-width: 760px;
}

.engineer-preview-inner {
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(circle at top left, rgba(245,200,75,.18), transparent 35%),
    rgba(255,255,255,.045);
  border-radius: 28px;
  padding: 28px;
}

.engineer-preview-avatar {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}

.engineer-preview-fallback {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-weight: 900;
}

.engineer-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.engineer-preview-pill {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.24);
  padding: 9px 12px;
  border-radius: 999px;
  font-size: .88rem;
  color: rgba(255,255,255,.75);
}

@media (max-width: 800px) {
  .engineer-form-grid {
    grid-template-columns: 1fr;
  }

  .engineer-edit-card,
  .engineer-preview-card {
    padding: 22px;
  }
}

/* ===============================
   ENGINEER EDIT PROFILE - PRO LAYOUT
================================ */

.engineer-edit-layout {
  display: grid;
  grid-template-columns: 260px 1fr 420px;
  gap: 28px;
  align-items: start;
}

/* FORM COLUMN */
.engineer-edit-card {
  max-width: 780px;
  width: 100%;
}

/* PREVIEW COLUMN */
.engineer-preview-card {
  position: sticky;
  top: 110px;
  height: fit-content;
  padding: 26px;
}

/* Make preview look like real card */
.engineer-preview-inner {
  border-radius: 20px;
  padding: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Avatar */
.engineer-preview-avatar,
.engineer-preview-fallback {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin-bottom: 14px;
}

.engineer-preview-avatar {
  object-fit: cover;
}

.engineer-preview-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  font-weight: 600;
}

/* Pills */
.engineer-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.engineer-preview-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  font-size: 12px;
}

/* FORM SECTION CARD UPGRADE */
.engineer-form-section {
  margin-bottom: 22px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
}

.engineer-form-section-title {
  font-size: 13px;
  letter-spacing: .12em;
  color: #d4af37;
  margin-bottom: 12px;
}

/* GRID INPUTS */
.engineer-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.engineer-form-grid .full {
  grid-column: span 2;
}

/* AVATAR ROW */
.engineer-avatar-upload-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.engineer-avatar-preview-bubble {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* STICKY SAVE BAR */
.sticky-save-bar {
  position: sticky;
  bottom: 0;
  margin-top: 20px;
  padding-top: 14px;
  background: linear-gradient(to top, #000, transparent);
}

/* MOBILE */
@media (max-width: 1100px) {
  .engineer-edit-layout {
    grid-template-columns: 1fr;
  }

  .engineer-preview-card {
    position: relative;
    top: 0;
  }
}

/* FIXED ENGINEER EDIT LAYOUT (2-COLUMN INSIDE MAIN) */

.engineer-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: start;
}

/* Form full width */
.engineer-edit-card {
  width: 100%;
  max-width: 100%;
}

/* Sticky preview */
.engineer-preview-card {
  position: sticky;
  top: 110px;
}

/* Responsive */
@media (max-width: 1100px) {
  .engineer-two-col {
    grid-template-columns: 1fr;
  }

  .engineer-preview-card {
    position: relative;
    top: 0;
  }
}

/* FINAL FIX — ENGINEER EDIT PROFILE TWO COLUMN */

.engineer-edit-page .twitter-dashboard-shell {
  grid-template-columns: 290px minmax(0, 1fr) !important;
  max-width: 1500px !important;
}

.engineer-edit-page .engineer-two-col {
  display: grid !important;
  grid-template-columns: minmax(620px, 1fr) 420px !important;
  gap: 28px !important;
  align-items: start !important;
  width: 100% !important;
}

.engineer-edit-page .engineer-edit-card {
  max-width: none !important;
  width: 100% !important;
  padding: 34px !important;
}

.engineer-edit-page .engineer-preview-card {
  position: sticky !important;
  top: 110px !important;
  width: 100% !important;
  max-width: 420px !important;
}

.engineer-edit-page .engineer-form-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
}

.engineer-edit-page .engineer-form-grid .full {
  grid-column: 1 / -1 !important;
}

.engineer-edit-page .dashboard-form input,
.engineer-edit-page .dashboard-form textarea {
  width: 100% !important;
  min-width: 0 !important;
}

@media (max-width: 1200px) {
  .engineer-edit-page .engineer-two-col {
    grid-template-columns: 1fr !important;
  }

  .engineer-edit-page .engineer-preview-card {
    position: relative !important;
    top: 0 !important;
    max-width: none !important;
  }
}

/* BOOK ENGINEER CALENDAR FIX */

.calendar-grid-custom {
  display: grid;
  grid-template-columns: repeat(7, minmax(90px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.calendar-cell {
  min-height: 72px;
  border-radius: 16px;
  border: 1px solid rgba(245, 200, 75, 0.28);
  background: rgba(255,255,255,0.045);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  padding: 12px;
  text-align: center;
}

.calendar-cell:hover {
  border-color: rgba(245, 200, 75, 0.8);
  transform: translateY(-1px);
}

.calendar-cell.empty {
  visibility: hidden;
  pointer-events: none;
}

.calendar-cell.has-open {
  border-color: #f5c84b;
  box-shadow: 0 0 0 1px rgba(245, 200, 75, 0.25);
}

.calendar-cell.selected {
  background: linear-gradient(135deg, #f5c84b, #d9a824);
  color: #050505;
}

.calendar-date-number {
  font-size: 1.1rem;
  font-weight: 900;
}

.calendar-cell-meta {
  margin-top: 5px;
  font-size: 0.78rem;
}

.open-dot {
  color: #f5c84b;
  font-weight: 800;
}

.booked-dot {
  color: #ff7b7b;
  font-weight: 800;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(90px, 1fr));
  gap: 12px;
  margin-top: 28px;
  color: rgba(255,255,255,0.65);
  font-weight: 800;
  text-align: center;
}

@media (max-width: 800px) {
  .calendar-grid-custom,
  .calendar-weekdays {
    grid-template-columns: repeat(7, minmax(38px, 1fr));
    gap: 6px;
  }

  .calendar-cell {
    min-height: 48px;
    padding: 6px;
    font-size: 0.8rem;
  }
}

/* FIX ENGINEER EDIT PROFILE WIDTH */

.engineer-edit-pro-layout {
  width: min(100%, 1380px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(560px, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.engineer-edit-main {
  min-width: 0;
}

.engineer-live-preview {
  width: 340px;
  max-width: 340px;
  overflow: hidden;
}

.engineer-live-preview .card,
.engineer-live-preview-card,
.profile-preview-card {
  max-width: 100%;
  overflow: hidden;
}

@media (max-width: 1250px) {
  .engineer-edit-pro-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .engineer-live-preview {
    width: 100%;
    max-width: 100%;
    position: relative;
    top: auto;
  }
}

/* PERFECT 3-COLUMN ALIGNMENT */

.engineer-edit-pro-layout {
  width: min(1400px, 100%);
  margin: 0 auto;

  display: grid;
  grid-template-columns: 260px 1fr 320px;
  gap: 28px;

  align-items: start;
}

/* LEFT SIDEBAR */
.engineer-sidebar {
  position: sticky;
  top: 100px;
}

/* MAIN COLUMN */
.engineer-edit-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

/* RIGHT PREVIEW */
.engineer-live-preview {
  position: sticky;
  top: 100px;

  display: flex;
  flex-direction: column;
  gap: 20px;

  width: 100%;
  max-width: 320px;
}

/* FIX CARD WIDTH INSIDE PREVIEW */
.engineer-live-preview .card {
  width: 100%;
}

/* MAKE ALL CARDS CONSISTENT */
.engineer-edit-main .card,
.engineer-sidebar .card,
.engineer-live-preview .card {
  width: 100%;
  box-sizing: border-box;
}

/* ALIGN HEADINGS NICELY */
.engineer-edit-main h1 {
  max-width: 720px;
}

/* RESPONSIVE FALLBACK */
@media (max-width: 1200px) {
  .engineer-edit-pro-layout {
    grid-template-columns: 240px 1fr;
  }

  .engineer-live-preview {
    grid-column: span 2;
    position: relative;
    top: auto;
    max-width: 100%;
  }
}

/* ===== FINAL GRID LOCK (OVERWRITE EVERYTHING ABOVE) ===== */

.engineer-edit-pro-layout {
  width: min(1400px, 100%);
  margin: 0 auto;

  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr) 320px !important;
  gap: 32px;

  align-items: start;
}

/* FORCE COLUMN BEHAVIOR */
.engineer-sidebar {
  grid-column: 1;
  position: sticky;
  top: 100px;
}

.engineer-edit-main {
  grid-column: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.engineer-live-preview {
  grid-column: 3;
  position: sticky;
  top: 100px;

  width: 100%;
  max-width: 320px;
}

/* REMOVE WIDTH DRIFT */
.engineer-sidebar,
.engineer-edit-main,
.engineer-live-preview {
  width: 100%;
}

/* REMOVE CONFLICTING MAX WIDTHS */
.engineer-edit-card,
.engineer-preview-card {
  max-width: none !important;
  width: 100% !important;
}

/* KILL OLD LAYOUTS */
.engineer-edit-layout,
.engineer-two-col {
  display: contents !important;
}

/* FINAL OVERRIDE — MAKE ENGINEER EDIT FORM WIDE */

.engineer-edit-page .twitter-dashboard-shell {
  max-width: 1480px !important;
  grid-template-columns: 300px minmax(0, 1fr) !important;
}

.engineer-edit-page .engineer-two-col {
  grid-template-columns: minmax(680px, 760px) 360px !important;
  justify-content: center !important;
  gap: 28px !important;
}

.engineer-edit-page .engineer-edit-card {
  min-width: 680px !important;
  max-width: 760px !important;
}

.engineer-edit-page .engineer-edit-card h1 {
  font-size: clamp(3.2rem, 5vw, 5rem) !important;
  line-height: 0.95 !important;
}

.engineer-edit-page .engineer-preview-card {
  width: 360px !important;
  max-width: 360px !important;
}

@media (max-width: 1250px) {
  .engineer-edit-page .engineer-two-col {
    grid-template-columns: 1fr !important;
  }

  .engineer-edit-page .engineer-edit-card {
    min-width: 0 !important;
    max-width: none !important;
  }

  .engineer-edit-page .engineer-preview-card {
    width: 100% !important;
    max-width: none !important;
  }
}

.social-post-actions,
.social-counts,
.dashboard-comments,
.dashboard-comment-form {
  margin-top: 16px;
}

.social-post-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.social-action-btn,
.social-buy-btn {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.social-action-btn.liked {
  background: linear-gradient(135deg, #f6d365, #d8a928);
  color: #050505;
}

.social-buy-btn {
  background: linear-gradient(135deg, #f6d365, #d8a928);
  color: #050505;
}

.social-counts {
  display: flex;
  gap: 14px;
  color: rgba(255,255,255,.65);
  font-weight: 700;
}

.dashboard-comment {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 12px 14px;
  margin-top: 10px;
}

.dashboard-comment-form {
  display: flex;
  gap: 10px;
}

.dashboard-comment-form input {
  flex: 1;
  background: #090909;
  color: #fff;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 12px 14px;
}

.dashboard-comment-form button {
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #f6d365, #d8a928);
  color: #050505;
  font-weight: 900;
}

.dashboard-comments {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.comment-item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
}

.comment-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg,#f7cf57,#b98616);
  color: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: .78rem;
}

.comment-meta {
  display: grid;
  gap: 2px;
}

.comment-meta strong {
  color: #fff;
}

.comment-meta span {
  color: rgba(255,255,255,.55);
  font-size: .8rem;
}

.comment-controls {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.dashboard-edit-comment-btn,
.dashboard-delete-comment-btn {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255,255,255,.05);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.dashboard-delete-comment-btn {
  color: #ff8d8d;
}

.dashboard-comment-text {
  color: rgba(255,255,255,.86);
  line-height: 1.55;
  padding-left: 52px;
}

.dashboard-comment-form {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.dashboard-comment-form input {
  flex: 1;
  min-height: 48px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.09);
  background: #070707;
  color: #fff;
  padding: 0 16px;
  outline: none;
}

.dashboard-comment-form button {
  border: 0;
  border-radius: 18px;
  padding: 0 22px;
  background: linear-gradient(135deg,#f7cf57,#d79a20);
  color: #050505;
  font-weight: 900;
}

.dashboard-comments .comment-avatar-image,
.dashboard-comments .comment-avatar img {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
}

.dashboard-comments .comment-head {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.dashboard-comments .comment-item {
  overflow: hidden !important;
}

/* FINAL FIX: comment profile image size */
.dashboard-comments .comment-avatar-image {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
  flex: 0 0 44px !important;
}

.dashboard-comments .comment-head {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.dashboard-comments .comment-item img:not(.comment-avatar-image) {
  display: none !important;
}