:root {
  --pp-navy: #082452;
  --pp-navy-deep: #061936;
  --pp-blue: #0b72c9;
  --pp-blue-soft: #d9ecff;
  --pp-gold: #f0b90b;
  --pp-gold-soft: #fff4c7;
  --pp-ink: #142033;
  --pp-muted: #667085;
  --pp-line: rgba(187, 203, 224, .62);
  --pp-glass: rgba(255, 255, 255, .72);
  --pp-glass-strong: rgba(255, 255, 255, .88);
  --pp-shadow: 0 22px 60px rgba(8, 36, 82, .14);
  --pp-radius: 8px;
}

html {
  background: #eef5fb;
}

body {
  color: var(--pp-ink);
  background:
    linear-gradient(135deg, rgba(11, 114, 201, .14), rgba(255, 255, 255, 0) 34%),
    linear-gradient(315deg, rgba(240, 185, 11, .16), rgba(255, 255, 255, 0) 36%),
    linear-gradient(180deg, #f4f9fd 0%, #edf4fb 54%, #f7f3e8 100%) !important;
  background-attachment: fixed !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .54), rgba(255, 255, 255, 0) 42%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .2) 0 1px, transparent 1px 92px);
}

header,
.navbar,
.topbar,
.dashboard-header,
.admin-header,
.engineer-header {
  background: linear-gradient(135deg, rgba(8, 36, 82, .94), rgba(6, 25, 54, .9)) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
  box-shadow: 0 14px 36px rgba(8, 36, 82, .18) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

header .nav-links,
header nav,
header .auth-buttons {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

header .nav-links a,
header .auth-buttons a {
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  padding: .68rem 1rem !important;
  border: 1px solid rgba(217, 236, 255, .62) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, .08) !important;
  color: #f8fbff !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease !important;
}

header .nav-links a:hover,
header .auth-buttons a:hover {
  background: rgba(255, 255, 255, .16) !important;
  border-color: rgba(240, 185, 11, .95) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.back-link .back-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  padding: .72rem 1.15rem !important;
  border: 1px solid rgba(11, 114, 201, .72) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, .72) !important;
  color: var(--pp-navy) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: 0 10px 26px rgba(8, 36, 82, .08) !important;
}

.back-link .back-button:hover {
  background: var(--pp-blue) !important;
  border-color: var(--pp-blue) !important;
  color: #ffffff !important;
}

header .btn-signup,
header .btn-dashboard {
  background: linear-gradient(135deg, var(--pp-blue), #0a4f9d) !important;
  border-color: rgba(11, 114, 201, .72) !important;
  color: #ffffff !important;
}

body.home-page header {
  background: rgba(255, 255, 255, .9) !important;
  border-bottom: 1px solid rgba(187, 203, 224, .7) !important;
  box-shadow: 0 14px 36px rgba(8, 36, 82, .12) !important;
}

body.home-page header .nav-links a,
body.home-page header .auth-buttons a {
  border-color: rgba(11, 114, 201, .44) !important;
  background: rgba(255, 255, 255, .72) !important;
  color: var(--pp-navy) !important;
}

body.home-page header .nav-links a:hover,
body.home-page header .auth-buttons a:hover {
  background: rgba(217, 236, 255, .75) !important;
  border-color: rgba(11, 114, 201, .72) !important;
  color: var(--pp-navy) !important;
}

body.home-page header .btn-signup,
body.home-page header .btn-dashboard {
  background: linear-gradient(135deg, var(--pp-blue), #0a4f9d) !important;
  border-color: rgba(11, 114, 201, .72) !important;
  color: #ffffff !important;
}

.sidebar,
.side-menu,
.dashboard-sidebar,
.admin-sidebar {
  background:
    linear-gradient(160deg, rgba(8, 36, 82, .96), rgba(6, 25, 54, .94)) !important;
  border-right: 1px solid rgba(255, 255, 255, .12) !important;
  box-shadow: 14px 0 40px rgba(8, 36, 82, .16) !important;
}

.sidebar .sidebar-menu,
.side-menu,
.dashboard-sidebar .sidebar-menu,
.admin-sidebar .sidebar-menu {
  padding: .75rem .75rem 1.25rem !important;
}

.sidebar .sidebar-menu li,
.dashboard-sidebar .sidebar-menu li,
.admin-sidebar .sidebar-menu li {
  margin: 0 0 .35rem !important;
}

.sidebar .sidebar-menu a,
.side-menu a,
.dashboard-sidebar .sidebar-menu a,
.admin-sidebar .sidebar-menu a {
  display: flex !important;
  align-items: center !important;
  gap: .75rem !important;
  min-height: 46px !important;
  padding: .82rem 1rem !important;
  border-left: 3px solid transparent !important;
  border-radius: 8px !important;
  color: #eef6ff !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  opacity: 1 !important;
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease !important;
}

.sidebar .sidebar-menu a:hover,
.side-menu a:hover,
.dashboard-sidebar .sidebar-menu a:hover,
.admin-sidebar .sidebar-menu a:hover {
  background: rgba(255, 255, 255, .14) !important;
  border-left-color: rgba(240, 185, 11, .92) !important;
  color: #ffffff !important;
}

.sidebar .sidebar-menu a.active,
.side-menu a.active,
.dashboard-sidebar .sidebar-menu a.active,
.admin-sidebar .sidebar-menu a.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(217, 236, 255, .9)) !important;
  border-left-color: var(--pp-gold) !important;
  color: var(--pp-navy) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .16) !important;
}

.sidebar .sidebar-menu a i,
.sidebar .sidebar-menu .icon,
.sidebar .sidebar-menu a span,
.side-menu a i,
.side-menu a span,
.dashboard-sidebar .sidebar-menu a i,
.dashboard-sidebar .sidebar-menu a span,
.admin-sidebar .sidebar-menu a i,
.admin-sidebar .sidebar-menu .icon,
.admin-sidebar .sidebar-menu a span {
  color: inherit !important;
  opacity: 1 !important;
}

.sidebar .sidebar-menu a.is-locked,
body.profile-incomplete .sidebar .sidebar-menu a.is-locked {
  color: rgba(226, 236, 248, .74) !important;
  background: rgba(255, 255, 255, .055) !important;
  border-left-color: transparent !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

main,
.main-content,
.content,
.dashboard-content,
.admin-content {
  color: var(--pp-ink);
}

.container,
.page-container,
.dashboard-card,
.card,
.stat-card,
.metric-card,
.profile-card,
.booking-card,
.quote-card,
.payment-card,
.job-card,
.invoice-card,
.property-card,
.notification-card,
.form-section,
.panel,
.section-card,
.table-card,
.modal,
.modal-content,
.confirmation-modal,
.setup-panel,
.signin-container,
.signup-container,
.login-card,
.reset-password-modal,
.password-card,
.verify-card {
  border: 1px solid var(--pp-line) !important;
  border-radius: var(--pp-radius) !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .62)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .82),
    var(--pp-shadow) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.card .card,
.form-section .card,
.dashboard-card .card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72), 0 10px 24px rgba(8, 36, 82, .07) !important;
}

input,
select,
textarea,
.form-input,
.styled-select {
  border: 1px solid rgba(187, 203, 224, .8) !important;
  border-radius: var(--pp-radius) !important;
  background: rgba(255, 255, 255, .78) !important;
  color: var(--pp-ink) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82) !important;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease !important;
}

input:focus,
select:focus,
textarea:focus,
.form-input:focus,
.styled-select:focus {
  border-color: rgba(11, 114, 201, .74) !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 0 0 4px rgba(11, 114, 201, .12) !important;
  outline: none !important;
}

.btn,
button.btn,
.primary-btn,
.btn-primary,
.btn-success,
.submit-btn {
  border-radius: var(--pp-radius) !important;
  border: 0 !important;
  background: linear-gradient(135deg, var(--pp-blue), var(--pp-navy)) !important;
  color: #fff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .24),
    0 14px 30px rgba(11, 114, 201, .22) !important;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease !important;
}

.btn:hover,
button.btn:hover,
.primary-btn:hover,
.btn-primary:hover,
.btn-success:hover,
.submit-btn:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    0 18px 36px rgba(8, 36, 82, .24) !important;
}

.signin-container .btn-signin,
.signup-container .btn-signup,
.login-card .login-btn,
.login-card .btn-login,
.reset-password-modal .reset-btn {
  border-radius: var(--pp-radius) !important;
  border: 0 !important;
  background: linear-gradient(135deg, var(--pp-blue), var(--pp-navy)) !important;
  color: #fff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .24),
    0 14px 30px rgba(11, 114, 201, .22) !important;
}

.btn-google {
  border-radius: var(--pp-radius) !important;
  box-shadow: 0 12px 26px rgba(8, 36, 82, .14) !important;
}

.btn-secondary,
.btn.secondary,
.secondary-btn {
  background: rgba(255, 255, 255, .58) !important;
  border: 1px solid var(--pp-line) !important;
  color: var(--pp-navy) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82) !important;
}

.badge,
.pill,
.status,
.tag {
  border-radius: 999px !important;
  border: 1px solid rgba(187, 203, 224, .72) !important;
  background: rgba(255, 255, 255, .66) !important;
  color: var(--pp-navy) !important;
}

table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

th {
  color: var(--pp-navy) !important;
  background: rgba(217, 236, 255, .58) !important;
}

td,
th {
  border-color: rgba(187, 203, 224, .54) !important;
}

a {
  color: var(--pp-blue);
}

h1,
h2,
h3 {
  color: var(--pp-ink);
  letter-spacing: 0;
}

.rail .rail-copy h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .28);
}

.rail .rail-copy p {
  color: rgba(239, 246, 255, .9) !important;
}

.dashboard-header,
.bookings-header,
.jobs-header,
.calendar-toolbar {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid rgba(11, 114, 201, .72) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.dashboard-header .section-title,
.bookings-header .section-title,
.jobs-header .section-title {
  color: var(--pp-blue) !important;
}

.form-section {
  padding: 1.35rem !important;
  margin-bottom: 1.25rem !important;
}

.form-group {
  margin-bottom: 1.35rem !important;
}

.form-group label {
  display: block;
  margin-bottom: .5rem;
  line-height: 1.35;
}

.checkbox-grid {
  gap: 1rem !important;
}

.checkbox-card,
.radio-card {
  display: flex !important;
  align-items: flex-start !important;
  gap: .75rem !important;
  min-height: 68px !important;
  padding: 1rem !important;
  line-height: 1.45 !important;
}

.checkbox-card input,
.radio-card input,
input[type="checkbox"],
input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  min-width: 18px !important;
  flex: 0 0 18px !important;
  margin: .2rem 0 0 !important;
}

.checkbox-card span,
.radio-card span {
  display: block;
  min-width: 0;
  line-height: 1.35;
}

.accent,
.eyebrow,
.section-eyebrow {
  color: #b88705 !important;
}

@media (max-width: 900px) {
  .container,
  .page-container,
  .dashboard-card,
  .card,
  .form-section,
  .panel {
    box-shadow: 0 12px 34px rgba(8, 36, 82, .1) !important;
  }

  .dashboard-header,
  .bookings-header,
  .jobs-header,
  .calendar-toolbar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 1rem !important;
  }

  .dashboard-header .section-title,
  .bookings-header .section-title,
  .jobs-header .section-title {
    width: 100% !important;
    margin: 0 !important;
  }

  .dashboard-actions,
  .payment-actions,
  .otp-actions,
  .job-modal-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .dashboard-actions .btn,
  .dashboard-actions .btn-book-job,
  .bookings-header .btn,
  .bookings-header .btn-book-job,
  .jobs-header .btn,
  .jobs-header .btn-book-job,
  .payment-actions .btn,
  .otp-actions .btn,
  .job-modal-actions .btn {
    width: 100% !important;
    min-height: 46px !important;
    margin: 0 !important;
    text-align: center !important;
  }
}

@media (max-width: 900px) {
  header .nav-links.open,
  header .auth-buttons.open {
    display: flex !important;
    flex-direction: column !important;
    gap: .65rem !important;
    background: rgba(255, 255, 255, .98) !important;
    border: 1px solid rgba(187, 203, 224, .86) !important;
    border-radius: 10px !important;
    box-shadow: 0 18px 38px rgba(8, 36, 82, .22) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    z-index: 2500 !important;
  }

  header .nav-links.open a,
  header .auth-buttons.open a {
    background: rgba(255, 255, 255, .96) !important;
    border-color: rgba(187, 203, 224, .8) !important;
    color: var(--pp-navy) !important;
  }

  header .auth-buttons.open .btn-signup,
  header .auth-buttons.open .btn-dashboard {
    background: linear-gradient(135deg, var(--pp-blue), #0a4f9d) !important;
    border-color: rgba(11, 114, 201, .72) !important;
    color: #ffffff !important;
  }
}
