:root {
  --bg: #F8F7F5;
  --card: rgba(255,255,255,0.82);
  --card-solid: #ffffff;
  --blue: #8FAED1;
  --blue-light: #D6E3F1;
  --blue-dark: #4F7DAE;
  --text: #3F3A36;
  --muted: #6F685F;
  --soft: #8C847B;
  --line: #E8E3DC;
  --shadow: 0 24px 70px rgba(63,58,54,0.10);
}

* {
  box-sizing: border-box;
}

body.customer-dashboard-page {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 10%, rgba(143,174,209,0.22), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(214,227,241,0.85), transparent 30%),
    radial-gradient(circle at 74% 70%, rgba(143,174,209,0.14), transparent 26%),
    linear-gradient(180deg, #fffdfa 0%, #f8f7f5 45%, #eef4fb 100%);
  background-attachment: fixed;
}

.customer-dashboard-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.customer-dashboard-bg::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 42px;
}

.customer-topbar {
  position: sticky;
  top: 18px;
  z-index: 10;
  width: min(calc(100% - 56px), 1320px);
  margin: 18px auto 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(232,227,220,0.9);
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(63,58,54,0.07);
}

.customer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
}

.customer-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.customer-topnav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.customer-topnav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 16px;
  border-radius: 999px;
}

.customer-topnav a.active,
.customer-topnav a:hover {
  background: #eef4fb;
  color: var(--blue-dark);
}

.customer-shell {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 56px), 1320px);
  margin: 0 auto;
  padding: 58px 0 80px;
}

.customer-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  min-height: 310px;
  padding: 48px;
  border-radius: 42px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.58)),
    radial-gradient(circle at top right, rgba(143,174,209,0.34), transparent 38%);
  border: 1px solid rgba(232,227,220,0.95);
  box-shadow: var(--shadow);
}

.customer-hero::after {
  content: "";
  position: absolute;
  right: -130px;
  top: -150px;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143,174,209,0.32), transparent 68%);
}

.eyebrow {
  margin: 0;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.customer-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 14px 0 16px;
  font-size: clamp(46px, 6vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.055em;
  color: #1f2740;
}

.customer-hero p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.primary-action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, #9eb9d8, #6f95bf);
  box-shadow: 0 18px 42px rgba(79,125,174,0.24);
  font-size: 15px;
  font-weight: 700;
}

.customer-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 24px 0;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  min-height: 150px;
  border-radius: 30px;
  background: rgba(255,255,255,0.76);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(232,227,220,0.95);
  box-shadow: 0 18px 45px rgba(63,58,54,0.06);
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -45px;
  top: -45px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(143,174,209,0.16);
}

.stat-card p {
  margin: 0 0 14px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
}

.stat-card h2 {
  margin: 0 0 10px;
  color: #1f2740;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) 410px;
  gap: 24px;
  align-items: start;
}

.premium-panel {
  border-radius: 34px;
  padding: 30px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(232,227,220,0.95);
  box-shadow: 0 22px 60px rgba(63,58,54,0.075);
}

.panel-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.panel-header h2 {
  margin: 8px 0 0;
  color: #1f2740;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.bookings-list {
  display: grid;
  gap: 16px;
}

.booking-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, #ffffff, #fbfaf8);
  border: 1px solid rgba(232,227,220,0.95);
  transition: 0.22s ease;
}

.booking-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(63,58,54,0.08);
  border-color: rgba(143,174,209,0.75);
}

.booking-date {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: #eef4fb;
  color: var(--blue-dark);
}

.booking-date strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.booking-date span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.booking-info h3 {
  margin: 0 0 6px;
  color: #1f2740;
  font-size: 18px;
}

.booking-info p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.booking-meta {
  text-align: right;
}

.booking-meta strong {
  display: block;
  margin-bottom: 10px;
  color: #1f2740;
  font-size: 22px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: capitalize;
}

.status-pill.pending {
  background: #fff5df;
  color: #a66b00;
}

.status-pill.confirmed {
  background: #eaf8f0;
  color: #267344;
}

.status-pill.completed {
  background: #eef4fb;
  color: var(--blue-dark);
}

.status-pill.cancelled {
  background: #fff0f0;
  color: #b72f2f;
}

.dashboard-side {
  display: grid;
  gap: 24px;
}

.quick-actions {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.quick-actions a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text);
  padding: 16px 18px;
  border-radius: 18px;
  background: #fbfaf8;
  border: 1px solid rgba(232,227,220,0.95);
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s ease;
}

.quick-actions a::after {
  content: "→";
  color: var(--blue-dark);
}

.quick-actions a:hover {
  transform: translateX(4px);
  border-color: var(--blue);
  background: #ffffff;
}

.soft-blue {
  background:
    radial-gradient(circle at top right, rgba(143,174,209,0.30), transparent 45%),
    linear-gradient(135deg, #f7fbff, #ffffff);
}

.soft-blue h3 {
  margin: 10px 0 12px;
  color: #1f2740;
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.soft-blue p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.empty-card {
  padding: 56px 26px;
  text-align: center;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.86), rgba(251,250,248,0.8));
  border: 1.5px dashed #d8d0c6;
}

.empty-card h3 {
  margin: 0 0 10px;
  color: #1f2740;
  font-size: 24px;
}

.empty-card p {
  margin: 0 auto;
  max-width: 420px;
  color: var(--muted);
  line-height: 1.7;
}

.empty-card a {
  display: inline-flex;
  margin-top: 22px;
  padding: 13px 20px;
  border-radius: 999px;
  background: #eef4fb;
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 800;
}

@media (max-width: 1150px) {
  .customer-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 780px) {
  .customer-topbar,
  .customer-shell {
    width: min(calc(100% - 28px), 1320px);
  }

  .customer-topnav {
    display: none;
  }

  .customer-hero {
    grid-template-columns: 1fr;
    padding: 34px 26px;
    min-height: auto;
  }

  .customer-stats-grid {
    grid-template-columns: 1fr;
  }

  .booking-card {
    grid-template-columns: 1fr;
  }

  .booking-meta {
    text-align: left;
  }
}

.leave-review-btn {
  margin-top: 12px;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  background: linear-gradient(
    135deg,
    #8FAED1,
    #6F95BF
  );
  color: white;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.review-submitted {
  margin-top: 10px;
  color: #267344;
  font-size: 13px;
  font-weight: 600;
}

.review-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);

  display: none;
  align-items: center;
  justify-content: center;

  z-index: 9999;
}

.review-modal-backdrop.show {
  display: flex;
}

.review-modal-card {
  width: 100%;
  max-width: 620px;

  background: white;

  border-radius: 32px;

  padding: 32px;

  position: relative;

  box-shadow:
    0 30px 80px rgba(0,0,0,0.18);
}

.review-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;

  width: 40px;
  height: 40px;

  border: none;
  border-radius: 50%;

  background: #f5f5f5;

  font-size: 20px;
  cursor: pointer;
}

.review-modal-card h2 {
  margin: 10px 0 24px;
  font-size: 32px;
  color: #1f2740;
}

.star-row {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.star-row button {
  border: none;
  background: none;

  font-size: 40px;

  color: #d9d9d9;

  cursor: pointer;
}

.star-row button.active {
  color: #f5b301;
}

#review-text {
  width: 100%;
  min-height: 150px;

  border: 1px solid #E8E3DC;
  border-radius: 18px;

  padding: 18px;

  font-family: inherit;
  font-size: 14px;

  resize: vertical;
}

.submit-review-btn {
  margin-top: 18px;

  border: none;
  border-radius: 999px;

  padding: 14px 22px;

  background:
    linear-gradient(
      135deg,
      #8FAED1,
      #6F95BF
    );

  color: white;

  font-family: inherit;
  font-weight: 700;

  cursor: pointer;
}

#review-message {
  margin-top: 14px;
  font-size: 14px;
  color: #6F685F;
}

.rebook-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #eef4fb;
  color: #4f7dae;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.rebook-btn:hover {
  background: #8faed1;
  color: white;
}

.pay-now-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #8FAED1, #6F95BF);
  color: white;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.pay-now-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* CUSTOMER DASHBOARD 10/10 SAAS UPGRADE */
.customer-hero-upgraded {
  align-items: center;
}

.hero-action-stack {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.secondary-action,
.support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(214,227,241,0.95);
  color: var(--blue-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.next-clean-card {
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(143,174,209,0.22), rgba(255,255,255,0.88)),
    #ffffff;
  border: 1px solid rgba(143,174,209,0.35);
  box-shadow: 0 22px 60px rgba(79,125,174,0.12);
}

.next-clean-card h2 {
  margin: 8px 0 8px;
  color: #1f2740;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.next-clean-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.next-clean-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.next-clean-meta strong {
  color: #1f2740;
  font-size: 18px;
}

.split-panel-header {
  margin-top: 42px;
  padding-top: 34px;
  border-top: 1px solid rgba(232,227,220,0.95);
}

.compact-list .booking-card {
  background: linear-gradient(135deg, #fffdfa, #eef4fb);
  border-color: rgba(143,174,209,0.35);
}

.booking-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
  margin-top: 12px;
}

.leave-review-btn,
.rebook-btn,
.pay-now-btn {
  width: max-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 15px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.leave-review-btn {
  border: none;
  color: white;
  background: linear-gradient(135deg, #9eb9d8, #6f95bf);
  box-shadow: 0 12px 28px rgba(79,125,174,0.18);
}

.review-complete-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  background: #eaf8f0;
  color: #267344;
  font-size: 12px;
  font-weight: 800;
  cursor: default;
}

.payment-warning {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px !important;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff5df;
  color: #a66b00 !important;
  font-weight: 800;
  font-size: 12px !important;
}

.positive-empty {
  background: linear-gradient(135deg, #ffffff, #eef8f1);
  border-color: rgba(38,115,68,0.16);
}

.support-link {
  margin-top: 16px;
}

@media (max-width: 980px) {
  .next-clean-card,
  .customer-hero-upgraded {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

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

  .hero-action-stack {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .next-clean-card {
    padding: 24px;
    border-radius: 28px;
  }

  .booking-card {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .booking-date {
    width: 70px;
    height: 70px;
  }

  .booking-meta {
    width: 100%;
    text-align: left;
  }

  .booking-actions {
    justify-items: start;
  }

  .leave-review-btn,
  .rebook-btn,
  .pay-now-btn {
    width: 100%;
  }
}

.see-more-link {
  margin-top: 18px;
  border: none;
  background: none;
  color: #4f7dae;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.see-more-link:hover {
  text-decoration: underline;
}

/* CUSTOMER DASHBOARD - MOBILE LOGOUT */
.customer-mobile-logout {
  display: none;
}

@media (max-width: 780px) {
  .customer-topbar {
    top: 12px;
    padding: 12px 14px;
  }

  .customer-mobile-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: #eef4fb;
    color: var(--blue-dark);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid rgba(143,174,209,0.28);
  }
}