/* DIAMOND HOME MASTER CSS DESIGN SYSTEM */
:root {
  --primary-navy: #062A52;
  --dark-navy: #031F3D;
  --dark-slate: #031F3D;
  --sidebar-hover: #062A52;
  --accent-orange: #F47B20;
  --orange-hover: #D96512;
  --bg-light: #FAFAF8;
  --card-bg: #FFFFFF;
  --input-bg: #FFFFFF;
  --text-dark: #062A52;
  --body-text: #344054;
  --text-muted: #667085;
  --border-color: #E4E7EC;
  --success-green: #20A464;
  --shadow-sm: 0 1px 3px rgba(6,42,82,0.05);
  --shadow-md: 0 4px 12px rgba(6,42,82,0.08);
  --shadow-lg: 0 8px 25px rgba(6,42,82,0.08);
}

@keyframes dhSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
}

html, body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  position: relative;
}

body {
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.5;
}

/* PUBLIC CUSTOMER HEADER */
.dh-header {
  background: #ffffff;
  color: var(--primary-navy);
  padding: 8px 0;
  height: 80px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #E4E7EC;
  box-shadow: 0 2px 12px rgba(6, 42, 82, 0.05);
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  display: flex;
  align-items: center;
}

.dh-header-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.dh-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary-navy);
}

.dh-logo img {
  height: 56px;
  width: auto;
  max-height: 56px;
  object-fit: contain;
  display: block;
}

.dh-logo-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-orange);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
}

.dh-logo-text h1 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.1;
  color: var(--primary-navy);
}

.dh-logo-text span {
  display: none;
}

.dh-nav {
  display: flex;
  gap: 24px;
}

.dh-nav-link {
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s;
  cursor: pointer;
}

.dh-nav-link:hover, .dh-nav-link.active {
  color: var(--accent-orange);
}

.dh-btn-orange {
  background: var(--accent-orange);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dh-btn-orange:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}

.dh-btn-navy {
  background: #1E293B;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dh-btn-navy:hover {
  background: #334155;
}

/* HERO SECTION */
.dh-hero {
  background: linear-gradient(135deg, #0A1128 0%, #0F172A 100%);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.dh-hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.dh-hero-badge {
  display: inline-block;
  background: rgba(255,107,0,0.15);
  color: var(--accent-orange);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  border: 1px solid rgba(255,107,0,0.3);
}

.dh-hero-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.dh-hero-title span {
  color: var(--accent-orange);
}

.dh-hero-subtitle {
  font-size: 16px;
  color: #94A3B8;
  margin-bottom: 30px;
}

.dh-search-box {
  background: #fff;
  padding: 8px 8px 8px 20px;
  border-radius: 16px;
  display: flex;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  max-width: 540px;
}

.dh-search-box input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 15px;
}

/* STATS GRID */
.dh-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.dh-stat-item h3 {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-orange);
}

.dh-stat-item p {
  font-size: 13px;
  color: #94A3B8;
}

/* CARDS & SECTIONS */
.dh-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px;
}

.dh-section-title {
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.dh-section-title h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-navy);
}

.dh-section-title p {
  color: var(--text-muted);
  font-size: 14px;
}

.dh-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.dh-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.dh-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.dh-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,107,0,0.3);
}

.dh-card-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dh-price-tag {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-orange);
}

/* ========================================================= */
/* ENTERPRISE ADMIN PORTAL LAYOUT (DOUBLE SIDEBAR FLUSH TOUCH) */
/* ========================================================= */
#view-admin {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: #F8FAFC;
}

/* MAIN LEFT SIDEBAR - 100vh FLUSH TOP TO BOTTOM */
.dh-sidebar {
  width: 270px;
  height: 100vh;
  background: #0A1128;
  color: #fff;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.dh-sidebar-brand {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.dh-sidebar-brand-icon {
  width: 38px;
  height: 38px;
  background: var(--accent-orange);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.dh-sidebar-brand-text h2 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
}

.dh-sidebar-brand-text span {
  font-size: 11px;
  color: #94A3B8;
}

.dh-sidebar-menu {
  list-style: none;
  padding: 20px 0;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.dh-sidebar-menu::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.dh-sidebar-header {
  font-size: 10px;
  font-weight: 800;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 16px 24px 6px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 6px;
}

.dh-sidebar-menu > .dh-sidebar-header:first-child {
  border-top: none;
  margin-top: 0;
}

.dh-sidebar-item {
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #94A3B8;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.dh-sidebar-item:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}

.dh-sidebar-item.active {
  background: var(--accent-orange);
  color: #fff;
  font-weight: 700;
}

/* RIGHT MAIN WRAPPER (TOPBAR + MIDDLE CONTENT) */
.dh-admin-main-wrap {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  overflow: hidden !important;
  min-width: 0 !important;
}

/* TOPBAR - ON THE RIGHT SIDE OF MAIN SIDEBAR */
.dh-admin-topbar {
  height: 64px !important;
  background: #0F172A !important;
  color: #ffffff !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0 32px !important;
  border-bottom: 3px solid var(--accent-orange) !important;
  flex-shrink: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 50 !important;
}

/* MIDDLE CONTENT AREA */
.dh-admin-content {
  flex: 1;
  height: calc(100vh - 70px);
  overflow-y: auto;
  padding: 32px;
  background: #F8FAFC;
}

/* TOP SUB-TABS STYLING */
.dh-sub-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 2px solid #E2E8F0;
  padding-bottom: 12px;
}

.dh-tab-btn {
  background: #FFFFFF;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dh-tab-btn:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.dh-tab-btn.active {
  background: var(--primary-navy);
  color: #FFFFFF;
  border-color: var(--primary-navy);
}

/* INNER DOUBLE SETTINGS SUB-NAVIGATION LAYOUT */
#admin-tab-settings {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  width: 100%;
}

.dh-settings-layout {
  display: flex !important;
  flex-direction: row !important;
  min-height: 650px;
  width: 100%;
}

.dh-settings-subnav {
  width: 260px;
  background: #F8FAFC;
  border-right: 1px solid #E2E8F0;
  padding: 24px 0;
  flex-shrink: 0;
  display: block !important;
}

.dh-settings-subitem {
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
}

.dh-settings-subitem:hover {
  background: #F1F5F9;
  color: var(--primary-navy);
}

.dh-settings-subitem.active {
  background: #FFFFFF;
  color: var(--accent-orange);
  border-left: 4px solid var(--accent-orange);
  box-shadow: var(--shadow-sm);
}

.dh-settings-content {
  flex: 1;
  padding: 36px 40px;
  background: #FFFFFF;
  display: block !important;
}


/* TABLES */
.dh-table-container {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.dh-table {
  width: 100%;
  border-collapse: collapse;
}

.dh-table th {
  background: #F8FAFC;
  padding: 14px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
}

.dh-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.dh-table tr:last-child td {
  border-bottom: none;
}

.dh-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.dh-badge-green { background: #DCFCE7; color: #15803D; }
.dh-badge-orange { background: #FFEDD5; color: #C2410C; }
.dh-badge-blue { background: #DBEAFE; color: #1D4ED8; }

/* MODALS */
.dh-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15,23,42,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
}

.dh-modal {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 540px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.dh-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #F1F5F9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
}

/* FORM ELEMENTS */
.dh-form-group {
  margin-bottom: 18px;
}

.dh-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.dh-form-group input, .dh-form-group select, .dh-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.dh-form-group input:focus, .dh-form-group select:focus, .dh-form-group textarea:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.15);
}

/* =====================================================================
   CONTRACTOR PANEL STYLES
   ===================================================================== */
#view-contractor-panel { font-family: var(--font-primary); }

.cp-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 4px;
  background: transparent;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}
.cp-nav-btn:hover { background: #F8FAFC; color: #0F172A; }
.cp-nav-btn.cp-nav-active {
  background: linear-gradient(135deg, #FFF7ED, #FED7AA);
  color: #C2410C;
  font-weight: 700;
}
.cp-nav-btn.cp-nav-active svg { stroke: #C2410C; }

/* =====================================================================
   MOBILE RESPONSIVE DESIGN TOKENS & MEDIA QUERIES (100% RESPONSIVE)
   ===================================================================== */
.dh-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1024px) {
  .dh-container { padding: 0 16px; }
  .dh-admin-layout { flex-direction: column; }
  .dh-admin-sidebar { width: 100%; height: auto; position: relative; }
  .dh-admin-main { margin-left: 0; padding: 16px; }
}

/* MOBILE HAMBURGER MENU & SLIDE-OUT DRAWER SYSTEM */
.dh-mobile-hamburger-btn {
  display: none;
  background: #FFF7ED;
  border: 1.5px solid #FED7AA;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--accent-orange);
  cursor: pointer;
  margin-left: 10px;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.dh-mobile-hamburger-btn:hover {
  background: var(--accent-orange);
  color: #FFFFFF;
}

.dh-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  display: flex;
}

.dh-mobile-drawer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
}

.dh-mobile-drawer-content {
  position: relative;
  z-index: 2;
  width: 290px;
  max-width: 85%;
  background: #ffffff;
  height: 100%;
  padding: 24px 20px;
  box-shadow: 10px 0 30px rgba(0,0,0,0.25);
  animation: slideInLeft 0.22s ease-out;
  overflow-y: auto;
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.dh-mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--primary-navy);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.dh-mobile-nav-link:hover {
  background: #FFF7ED;
  color: var(--accent-orange);
}

@media (max-width: 900px) {
  #main-public-header .dh-nav {
    display: none !important;
  }
  #cust-nav-dropdown {
    display: none !important;
  }
  .dh-mobile-hamburger-btn {
    display: inline-flex !important;
  }
}

@media (max-width: 768px) {
  /* Header & Navigation */
  #main-public-header {
    padding: 10px 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .dh-logo img { height: 38px !important; }

  /* UNIVERSAL GRID STACKING ON MOBILE (Eliminates horizontal overflow & right blank space) */
  div[style*="grid-template-columns"]:not(#bw-cal-grid):not(#bw-time-slots):not(.bw-cal-day-labels):not(.dh-hero-stats-grid) {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hero Stats Grid (2x2 Grid: 2 Top, 2 Bottom) */
  .dh-hero-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px 20px !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 auto !important;
  }

  /* Prevent any container from exceeding viewport width */
  html, body, main, .dh-view, .dh-section, .dh-hero, .dh-card, .dh-modal, .dh-container {
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* Calendar 7-Column Grid Mobile Preservation */
  .bw-cal-day-labels,
  #bw-cal-grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 4px !important;
    text-align: center !important;
    width: 100% !important;
  }

  .bw-cal-day-labels span {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #94A3B8 !important;
    text-align: center !important;
    display: block !important;
  }

  /* Time slots 2-column grid on mobile */
  #bw-time-slots {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }

  /* Booking Wizard Stepper Mobile Responsiveness */
  #booking-modal .dh-modal {
    padding: 16px 14px !important;
    max-height: 94vh !important;
  }
  
  #booking-modal [id^="bw-label-"], 
  #booking-modal span[style*="white-space: nowrap"] {
    font-size: 9px !important;
    letter-spacing: -0.2px !important;
  }

  /* Modals Full Responsiveness */
  .dh-modal {
    width: 95% !important;
    max-width: 100% !important;
    margin: 10px auto !important;
    padding: 18px 14px !important;
    max-height: 92vh !important;
    overflow-y: auto !important;
    border-radius: 18px !important;
  }

  /* Responsive Tables with Horizontal Scroll */
  .dh-table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    display: block !important;
  }

  /* Hero Banner Mobile Center-Alignment Optimization */
  .dh-hero {
    padding: 40px 0 30px 0 !important;
    min-height: auto !important;
    width: 100% !important;
    text-align: center !important;
  }

  .dh-hero-container {
    padding: 0 16px !important;
    width: 100% !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .dh-hero-container > div {
    margin: 0 auto !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .dh-hero h1 {
    font-size: 26px !important;
    line-height: 1.22 !important;
    margin-bottom: 12px !important;
    letter-spacing: -0.5px !important;
    text-align: center !important;
  }

  .dh-hero p {
    font-size: 13px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
  }

  /* Hero Search Box Mobile (Centered) */
  .dh-hero div[style*="background: #ffffff"],
  .dh-hero div[style*="background:#ffffff"] {
    padding: 4px 4px 4px 12px !important;
    margin-bottom: 24px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .dh-hero input[type="text"] {
    font-size: 13px !important;
  }

  .dh-hero button.dh-btn-orange {
    padding: 10px 18px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
  }

  /* Hero Stats Grid (2x2 Centered on Mobile) */
  .dh-hero div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
    padding-top: 16px !important;
    width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  .dh-hero div[style*="grid-template-columns: repeat(4, 1fr)"] h3 {
    font-size: 20px !important;
    text-align: center !important;
  }

  .dh-hero div[style*="grid-template-columns: repeat(4, 1fr)"] p {
    font-size: 11px !important;
    margin-top: 2px !important;
    text-align: center !important;
  }

  /* Inner Section Padding */
  .dh-section {
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .dh-view,
  main,
  #view-home {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }

  .dh-section-title {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
  }

  .dh-section-title button,
  .dh-section-title a {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  .dh-card {
    padding: 20px 16px !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  /* Responsive Admin Sidebar & Header */
  .dh-admin-sidebar {
    width: 100% !important;
    position: relative !important;
    height: auto !important;
  }

  /* Typography Adjustments for Mobile */
  h1, .dh-hero-title { font-size: 22px !important; line-height: 1.3 !important; }
  h2 { font-size: 18px !important; }
  h3 { font-size: 15px !important; }
}

@media (max-width: 480px) {
  #bw-cal-grid div {
    height: 32px !important;
    font-size: 12px !important;
    line-height: 32px !important;
  }
  .bw-time-slot {
    padding: 8px !important;
    font-size: 12px !important;
  }
}

/* =========================================================================
   EXACT FIGMA 07. LOGIN / REGISTER AUTHENTICATION DESIGN SYSTEM
   ========================================================================= */

.dh-auth-wrapper {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F7F8FA;
  padding: 40px 20px;
}

.dh-auth-container-figma {
  max-width: 480px;
  width: 100%;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 24, 60, 0.08);
  border: 1px solid #E3E7ED;
  overflow: hidden;
  display: block;
  margin: 0 auto;
}

.dh-auth-branding-panel {
  display: none !important;
}

.dh-auth-card-figma {
  background: #FFFFFF;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Tabs Pill Header */
.dh-auth-tabs-pill {
  display: flex;
  background: #F1F3F6;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 28px;
  gap: 4px;
}

.dh-auth-tab-btn {
  flex: 1;
  height: 42px;
  border: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dh-auth-tab-btn.active-login {
  background: #00183C;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 24, 60, 0.2);
}

.dh-auth-tab-btn.active-register {
  background: #FF8A00;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(255, 138, 0, 0.25);
}

.dh-auth-tab-btn.inactive {
  background: transparent;
  color: #667085;
}

.dh-auth-tab-btn.inactive:hover {
  color: #00183C;
}

/* Form Group & Inputs */
.dh-auth-field {
  margin-bottom: 20px;
}

.dh-auth-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #00183C;
  margin-bottom: 7px;
}

.dh-auth-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.dh-auth-input {
  width: 100%;
  height: 48px;
  background: #F7F8FA;
  border: 1.5px solid #E3E7ED;
  border-radius: 10px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  outline: none;
  font-family: 'Poppins', sans-serif;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.dh-auth-input:focus {
  background: #FFFFFF;
  border-color: #FF8A00;
  box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.12);
}

.dh-auth-pwd-toggle {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: #667085;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dh-auth-pwd-toggle:hover {
  color: #FF8A00;
}

.dh-auth-forgot {
  display: block;
  text-align: right;
  font-size: 13px;
  font-weight: 500;
  color: #00183C;
  text-decoration: none;
  margin-top: 6px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.dh-auth-forgot:hover {
  color: #FF8A00;
}

/* Action Buttons */
.dh-auth-btn-navy {
  width: 100%;
  height: 48px;
  background: #00183C;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 24, 60, 0.2);
  transition: all 0.25s ease;
  margin-top: 10px;
}

.dh-auth-btn-navy:hover {
  background: #FF8A00;
  box-shadow: 0 4px 18px rgba(255, 138, 0, 0.35);
  transform: translateY(-1px);
}

.dh-auth-btn-orange {
  width: 100%;
  height: 48px;
  background: #FF8A00;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(255, 138, 0, 0.3);
  transition: all 0.25s ease;
  margin-top: 10px;
}

.dh-auth-btn-orange:hover {
  background: #E97800;
  box-shadow: 0 4px 18px rgba(233, 120, 0, 0.4);
  transform: translateY(-1px);
}

/* Divider & Social Login */
.dh-auth-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: #667085;
  font-size: 12px;
  font-weight: 500;
}

.dh-auth-divider::before,
.dh-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E3E7ED;
}

.dh-auth-divider span {
  padding: 0 14px;
}

.dh-auth-social-row {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.dh-social-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid #E3E7ED;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dh-social-btn:hover {
  background: #F7F8FA;
  border-color: #FF8A00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

@media (max-width: 900px) {
  .dh-auth-container-figma {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .dh-auth-branding-panel {
    display: none;
  }
  .dh-auth-card-figma {
    padding: 32px 24px;
  }
}

/* Base Desktop Styles for Trust Features, Why Choose Us Features & Stats Row Bar */
.dh-hero-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 520px;
}
.dh-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dh-trust-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #E4E7EC;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #F47B20;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.dh-trust-text {
  font-size: 11px;
  font-weight: 600;
  color: #344054;
  line-height: 1.25;
}
.dh-why-choose-us-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.dh-stats-row-bar {
  padding: 28px 0;
}
.dh-stats-row-grid {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: center;
  text-align: center;
}

/* ==========================================================================
   COMPREHENSIVE MOBILE & TABLET RESPONSIVE SYSTEM
   ========================================================================== */

@media (max-width: 1024px) {
  .dh-header-container {
    padding: 0 24px !important;
  }
  .dh-hero {
    padding: 50px 0 !important;
  }
  .dh-hero-container {
    padding: 0 24px !important;
  }
  #home-services-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  #all-services-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  .dh-footer-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 28px !important;
  }
}

@media (max-width: 768px) {
  /* HIDE TOP ANNOUNCEMENT BAR ON MOBILE (Content moved to mobile menu drawer) */
  #main-top-announcement-bar {
    display: none !important;
  }

  /* Header Navbar Mobile Fix */
  .dh-header {
    height: 64px !important;
  }
  .dh-header-container {
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .dh-header .dh-nav {
    display: none !important;
  }
  .dh-mobile-hamburger-btn {
    display: flex !important;
  }
  .dh-header img {
    height: 34px !important;
  }
  #cust-nav-btn-login {
    padding: 6px 10px !important;
    font-size: 12px !important;
  }
  .dh-header-book-btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  /* Track Service Ticket Mobile Form Stacking */
  .dh-track-search-form {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .dh-track-search-form input {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .dh-track-search-form button {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
  }

  /* Hero Section Mobile Fix */
  .dh-hero {
    padding: 24px 0 24px 0 !important;
    min-height: auto !important;
    background: #FAFAF8 !important;
  }
  .dh-hero-container {
    padding: 0 16px !important;
  }
  .dh-hero-content {
    max-width: 100% !important;
    text-align: center !important;
  }
  .dh-hero h1 {
    font-size: 28px !important;
    line-height: 1.15 !important;
    margin-bottom: 12px !important;
  }
  .dh-hero p {
    font-size: 13.5px !important;
    margin-bottom: 16px !important;
    max-width: 100% !important;
  }

  /* Mobile Hero Image Banner Visible & Framed */
  .dh-mobile-hero-img {
    display: block !important;
    margin: 16px 0 20px 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 24px rgba(6,42,82,0.12) !important;
    border: 1px solid #E4E7EC !important;
  }
  .dh-mobile-hero-img img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    object-position: center 30% !important;
    display: block !important;
  }

  /* 3-Part Hero Search Component Mobile Stacking - Full Width */
  .dh-hero-search-box {
    flex-direction: column !important;
    gap: 10px !important;
    padding: 14px 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: 0 6px 24px rgba(6,42,82,0.08) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .dh-search-divider {
    display: none !important;
  }
  .dh-hero-search-box > div {
    width: 100% !important;
    padding: 10px 12px !important;
    border-bottom: 1px solid #E4E7EC !important;
    box-sizing: border-box !important;
  }
  .dh-hero-search-box button {
    width: 100% !important;
    justify-content: center !important;
    padding: 13px !important;
    font-size: 15px !important;
    margin-top: 4px !important;
  }

  /* HIDE TRUST GRID & FLOATING BADGE ON MOBILE AS REQUESTED BY USER */
  .dh-hero-trust-grid {
    display: none !important;
  }
  .dh-hero-floating-badge {
    display: none !important;
  }

  /* ALWAYS 2 SERVICE CARDS PER ROW ON MOBILE SCREENS */
  #home-services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  #all-services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  /* Why Choose Us Mobile Stacking */
  .dh-why-choose-us-grid {
    grid-template-columns: 1fr !important;
  }
  .dh-why-choose-us-img {
    height: 220px !important;
  }
  .dh-why-choose-us-content {
    padding: 28px 16px !important;
  }
  .dh-why-choose-us-features {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .dh-why-choose-us-features > div {
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .dh-why-choose-us-features > div > div:nth-child(2) {
    font-size: 13px !important;
    word-break: break-word !important;
  }

  /* Stats Row Bar Mobile (Strict 2x2 Grid) */
  .dh-stats-row-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px 8px !important;
    padding: 20px 12px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .dh-stats-row-grid > div {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 2px 0 !important;
  }
  .dh-stats-row-grid > div > div:first-child {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    flex-shrink: 0 !important;
  }
  .dh-stats-row-grid > div > div:first-child svg {
    width: 18px !important;
    height: 18px !important;
  }
  .dh-stats-row-grid > div > div:last-child div:first-child {
    font-size: 18px !important;
    line-height: 1.1 !important;
  }
  .dh-stats-row-grid > div > div:last-child div:last-child {
    font-size: 11px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
  }

  /* Ready to Get Started Callout Mobile */
  .dh-callout-card {
    flex-direction: column !important;
    text-align: center !important;
    gap: 16px !important;
    padding: 28px 20px !important;
  }
  .dh-callout-card > div:first-child {
    text-align: center !important;
  }
  .dh-callout-trust {
    display: none !important; /* Hide 100% satisfaction trust shield on mobile as requested by user */
  }
  .dh-callout-card button {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Footer Mobile Grid (Clean 2-Column Layout) */
  .dh-footer-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 28px 20px !important;
    padding-bottom: 32px !important;
  }
  .dh-footer-grid > div:first-child {
    grid-column: 1 / -1 !important;
    margin-bottom: 8px !important;
  }
  .dh-footer-grid > div:last-child {
    grid-column: 1 / -1 !important;
    margin-top: 8px !important;
  }
  .dh-footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 12px !important;
    padding-top: 20px !important;
  }
}

@media (max-width: 480px) {
  .dh-hero h1 {
    font-size: 24px !important;
  }
  #home-services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  #all-services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .dh-why-choose-us-features {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px 6px !important;
  }
  .dh-stats-row-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px 6px !important;
    padding: 16px 8px !important;
  }
  .dh-footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px 16px !important;
  }
}

/* Service Detail Category Page Responsive Overrides */
@media (max-width: 1024px) {
  .dh-sd-hero-container {
    grid-template-columns: 1fr !important;
  }
  .dh-sd-main-grid {
    grid-template-columns: 1fr !important;
  }
  #sd-subservices-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .dh-sd-guarantees-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .dh-sd-why-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
  }
}

@media (max-width: 768px) {
  #sd-subservices-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .dh-sd-guarantees-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .dh-sd-why-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  .dh-sd-why-grid > div {
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    padding-bottom: 14px !important;
  }
}

@media (max-width: 480px) {
  #sd-subservices-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .dh-sd-guarantees-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .dh-sd-why-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

/* ── Mobile 2-Column Grid for Home Services ── */
@media (max-width: 768px) {
  #home-services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  #home-services-grid > div {
    padding: 14px 8px !important;
    border-radius: 14px !important;
  }
  #home-services-grid > div svg {
    width: 32px !important;
    height: 32px !important;
  }
  #home-services-grid > div > div:nth-child(2) {
    font-size: 12px !important;
  }
  #home-services-grid > div > div:nth-child(3) {
    font-size: 10px !important;
  }

  #all-services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  #all-services-grid > div {
    padding: 14px 8px !important;
    border-radius: 14px !important;
  }
}

/* ── Admin Dashboard Mobile Responsiveness Overrides ── */
@media (max-width: 1024px) {
  #view-admin {
    position: relative !important;
  }

  /* Hamburger Toggle Button Display */
  #dh-admin-sidebar-toggle,
  .dh-sidebar-close-btn,
  .dh-admin-mobile-logo {
    display: flex !important;
  }

  /* Fixed Mobile Sidebar Slide-out Drawer */
  .dh-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    width: 280px !important;
    z-index: 99999 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 10px 0 30px rgba(0,0,0,0.4) !important;
  }

  /* Open Mobile Sidebar State */
  #view-admin.dh-sidebar-open .dh-sidebar {
    transform: translateX(0) !important;
  }

  /* Backdrop Overlay */
  #view-admin.dh-sidebar-open #dh-admin-sidebar-backdrop {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Topbar Adjustments */
  .dh-admin-topbar {
    padding: 0 14px !important;
  }

  /* Main Content Area */
  .dh-admin-content {
    padding: 16px 12px !important;
    height: calc(100vh - 64px) !important;
  }

  /* Section Title & Header Responsiveness */
  .dh-section-title {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
  }

  .dh-section-title > div:last-child {
    width: 100% !important;
    flex-wrap: wrap !important;
  }

  .dh-section-title button,
  .dh-section-title a {
    flex: 1 1 auto !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* Cards & Filter Grids Responsiveness */
  .dh-card[style*="grid-template-columns"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .dh-card {
    padding: 16px !important;
    border-radius: 14px !important;
  }

  /* Table Containers for Horizontal Scrolling */
  .dh-table-container,
  .dh-card > div[style*="overflow-x"],
  div[style*="overflow-x"] {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    margin-top: 8px !important;
  }

  .dh-table {
    min-width: 650px !important;
  }

  .dh-admin-layout {
    grid-template-columns: 1fr !important;
  }

  .dh-admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .dh-admin-form-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

@media (max-width: 640px) {
  .dh-card[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  #admin-session-name {
    display: none !important;
  }

  #topbar-user-menu-wrap button {
    padding: 4px 8px !important;
  }

  .dh-admin-topbar {
    padding: 0 10px !important;
  }

  .dh-admin-kpi-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .dh-admin-table-wrap, div[style*="overflow-x"] {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .dh-admin-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
}

/* MOBILE BOTTOM APP NAVBAR (Native Mobile App Style - Home, Bookings, Wallet, Profile) */
.dh-mobile-bottom-nav {
  display: none;
}

.dh-standalone-hidden {
  display: none !important;
}

.dh-mobile-bottom-nav-container {
  display: flex !important;
  justify-content: space-around !important;
  align-items: center !important;
  height: 100% !important;
  width: 100% !important;
  max-width: 500px !important;
  margin: 0 auto !important;
  padding: 0 8px !important;
}

.dh-mnav-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 !important;
  text-decoration: none !important;
  color: #64748B !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  padding: 4px 0 !important;
  border-radius: 8px !important;
}

.dh-mnav-item:hover, .dh-mnav-item.active {
  color: #F47B20 !important;
}

.dh-mnav-item.active .dh-mnav-icon svg {
  stroke: #F47B20 !important;
}

.dh-mnav-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 2px !important;
  transition: transform 0.2s ease !important;
}

.dh-mnav-label {
  font-size: 11px !important;
  line-height: 1.1 !important;
  font-weight: 600 !important;
}

@media screen and (max-width: 1024px), (max-device-width: 1024px) {
  .dh-mobile-bottom-nav:not(.dh-standalone-hidden) {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 64px !important;
    background: #FFFFFF !important;
    border-top: 1px solid #E2E8F0 !important;
    box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.18) !important;
    z-index: 99999999 !important;
    transform: translateZ(0) !important;
  }
  
  body {
    padding-bottom: 74px !important;
  }
}

