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

body {
  background: radial-gradient(circle at top right, #7b2ff7, #0b0f2a 60%);
}

html.home-modal-scroll-lock,
body.home-modal-scroll-lock {
  overflow: hidden;
  overscroll-behavior: none;
}

/* HERO BACKGROUND Size Settings */
.hero {
  padding: 10px 60px 10px;  /* top se thoda space, sides se zyada space, bottom se kitna dawn wo space */
  min-height: auto;
  background: radial-gradient(circle at top right, #7b2ff7, #0b0f2a 60%);
  color: white;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-box {
  width: 54px;
  height: 54px;
  border-radius: 0;
  object-fit: contain;
  display: block;
}

.logo h2 {
  font-size: 18px;
}

.logo-accent {
  color: #ff8a2a;
  background: linear-gradient(90deg, #ff4fc4 0%, #ff7a18 52%, #ffb02e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo p {
  font-size: 10px;
  color: #aaa;
}

/* Menu */
.menu {
  display: none;
  list-style: none;
  gap: 25px;
}

.menu li {
  cursor: pointer;
  color: #ccc;
}

.menu .active {
  color: #00eaff;
  border-bottom: 2px solid #00eaff;
}

/* Buttons */
.nav-btns {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.google-login-btn,
.desktop-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: white;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  white-space: nowrap;
}

.google-login-btn,
.home-user-chip {
  width: 190px;
}

.home-auth-box {
  display: flex;
  align-items: center;
}

.google-login-btn span {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.google-login-btn[hidden],
.home-user-chip[hidden] {
  display: none;
}

.google-login-btn:disabled {
  cursor: wait;
  opacity: 0.68;
}

.home-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 5px 6px 5px 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.home-user-photo {
  width: 38px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  object-fit: cover;
}

.home-user-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.86rem;
}

.home-logout-btn {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  cursor: pointer;
}

.desktop-menu-btn {
  min-width: 112px;
}

.desktop-menu {
  position: relative;
}

.desktop-menu-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 20;
  display: none;
  width: 230px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(9, 15, 38, 0.96);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

.desktop-menu.is-open .desktop-menu-dropdown {
  display: grid;
  gap: 8px;
}

.desktop-menu-dropdown button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: transparent;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.desktop-menu-dropdown button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.desktop-menu-dropdown span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #23e9ff;
  background: rgba(255, 255, 255, 0.12);
}

.desktop-delete-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.desktop-delete-tabs[hidden],
.mobile-delete-tabs[hidden] {
  display: none;
}

.desktop-menu-dropdown .desktop-delete-tabs button {
  justify-content: center;
  min-height: 48px;
  padding: 0 6px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.desktop-menu-dropdown .desktop-delete-tabs button + button {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.desktop-menu-dropdown .desktop-delete-tabs button:hover {
  background: rgba(255, 79, 114, 0.18);
}
.mobile-home-menu {
  display: none;
}

@media (min-width: 1025px) and (max-width: 1400px) {
  .hero {
    padding: 10px 64px 8px;
  }

  .hero-content {
    gap: 28px;
    margin-top: 4px;
  }

  .left h1 {
    font-size: 28px;
    line-height: 1.18;
  }

  .badges {
    gap: 10px;
    margin: 16px 0;
  }

  .badges span {
    padding: 7px 12px;
  }

  .search-box {
    margin: 20px 0;
  }

  .right img {
    max-width: 410px;
  }

  .layout {
    padding: 8px 64px;
  }
}

.home-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 6, 18, 0.72);
  backdrop-filter: blur(14px);
}

.home-modal-backdrop.is-open {
  display: flex;
}

.home-profiles-modal {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  color: #fff;
  background: rgba(15, 20, 48, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.home-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 79, 196, 0.22);
  font-weight: 800;
  cursor: pointer;
}

.home-modal-heading {
  margin-bottom: 18px;
  padding-right: 48px;
}

.home-modal-heading p {
  margin: 0 0 8px;
  color: #00eaff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-modal-heading h2 {
  font-size: 28px;
  line-height: 1.1;
}
.home-profile-list {
  display: grid;
  gap: 12px;
}

.home-profile-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.home-profile-item img {
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  object-fit: cover;
}

.home-profile-item > div {
  min-width: 0;
  overflow: hidden;
}

.home-profile-item h3 {
  display: block;
  max-width: 100%;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.home-profile-item p,
.home-profile-id,
.home-profile-empty {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.home-profile-kind {
  display: inline-block;
  margin-top: 4px;
  color: #00eaff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-profile-id {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-profile-view {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(45deg, #ff7a18, #ff3cac);
  font-weight: 800;
  cursor: pointer;
}

.home-profile-view:disabled {
  cursor: wait;
  filter: grayscale(0.2);
  opacity: 0.72;
}

.home-profile-view.is-delete {
  background: linear-gradient(45deg, #ff4f72, #ff7a18);
}

.home-profile-empty {
  display: none;
  padding: 22px 0 4px;
  text-align: center;
}

.home-profile-empty.is-visible {
  display: block;
}

.home-profile-status {
  min-height: 18px;
  margin-top: 14px;
  color: #3df7c8;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.home-account-reset-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 79, 114, 0.35);
  border-radius: 20px;
  background: rgba(255, 79, 114, 0.09);
}

.home-account-reset-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(45deg, #ff4f72, #ff7a18);
  font-size: 26px;
  font-weight: 900;
}

.home-account-reset-card h3 {
  margin: 2px 0 6px;
  font-size: 18px;
}

.home-account-reset-card p,
.home-account-reset-card li {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.5;
}

.home-account-reset-card ul {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding-left: 20px;
}

.home-account-reset-btn {
  grid-column: 1 / -1;
  min-height: 46px;
  margin-top: 4px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(45deg, #ff4f72, #ff7a18);
  font-weight: 900;
  cursor: pointer;
}

.home-account-reset-btn:disabled {
  cursor: wait;
  filter: grayscale(0.15);
  opacity: 0.72;
}

.home-confirm-modal {
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  color: #fff;
  background: rgba(15, 20, 48, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.home-confirm-modal h2 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.15;
}

.home-confirm-modal p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.45;
}

.home-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.home-confirm-actions button {
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.home-confirm-no {
  background: rgba(255, 255, 255, 0.12);
}

.home-confirm-yes {
  background: linear-gradient(45deg, #ff4f72, #ff7a18);
}

/* HERO CONTENT */
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;   /* Agar future me lagta hai ki --> text navbar ke bahut paas aa raha hai to 20px kar dena */
  gap: 40px;
}


/* LEFT */
.left {
  width: 50%;
}

.left h1 {
  font-size: 30px;
  line-height: 1.2;
}

.left span {
  color: #00eaff;
}

.mobile-title-break {
  display: none;
}

/* BADGES */
.badges {
  margin: 20px 0;
  display: flex;
  gap: 15px;
}

.badges span {
  background: rgba(255,255,255,0.08);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
}

/* SEARCH */
.search-box {
  margin: 25px 0;
  display: flex;
  background: #1a1f3c;
  border-radius: 30px;
  overflow: hidden;
}

.search-box input {
  flex: 1;
  padding: 14px;
  border: none;
  outline: none;
  background: transparent;
  color: white;
}

.search-box button {
  padding: 14px 30px;
  border: none;
  background: linear-gradient(45deg, #ff7a18, #ff3cac);
  color: white;
  cursor: pointer;
}

/* TAGS */
.tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tags span {
  background: rgba(255,255,255,0.08);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  cursor: pointer;
}

/* RIGHT IMAGE */
.right img {
  width: 100%;
  max-width: 430px;   /* Hero Banner --> Image size adjustment  */
  height: auto;
  object-fit: contain;
}

.mobile-hero-banner {
  display: none;
}

/* ===== SIDEBAR QUICK CATEGORIES ===== */
/* ===== MAIN LAYOUT ===== */
.layout {
  display: flex;
  gap: 25px;
  padding: 10px 60px;
  align-items: flex-start;
}

.right-content {
  flex: 1;
  width: 100%;   /* new line added */
  overflow: hidden; /* ðŸ”¥ blank remove */
}
/* ===== SIDEBAR QUICK CATEGORIES ===== */

.sidebar {
  width: 260px;
  background: rgba(18, 22, 60, 0.75);
  border-radius: 20px;
  padding: 20px 15px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 
    0 0 25px rgba(0,0,0,0.5);
}

/* Heading */
.sidebar h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  color: #ffffff; /* bright white */

  letter-spacing: 0.5px;

  /* glow effect (premium look) */
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.sidebar .arrow {
  font-size: 18px;
  color: #aaa;
}

/* List */
.sidebar ul {
  list-style: none;
  margin-bottom: 15px;
}

/* List item */
.sidebar ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 12px;    /* vertical box ka ize kam jada ke liye*/
  border-radius: 12px;
  margin-bottom: 4px;
  cursor: pointer;
  color: #cfd3ff;
  font-size: 14px;
  transition: all 0.3s ease;
}

/* ICON */
.sidebar ul li i {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;

  background: linear-gradient(135deg, #5f6fff, #9b5cff);
  color: white;

  box-shadow: 0 0 10px rgba(120, 100, 255, 0.6);
}

/* Hover */
.sidebar ul li:hover {
  background: rgba(255,255,255,0.06);
}

/* ACTIVE ITEM */
.sidebar ul li.active {
  background: linear-gradient(90deg, #3a7bfd, #6f4cff);
  color: white;
  box-shadow: 0 0 15px rgba(80,120,255,0.6);
}

/* Active icon */
.sidebar ul li.active i {
  background: white;
  color: #4b5cff;
  box-shadow: 0 0 12px rgba(255,255,255,0.8);
}

/* BUTTON */
.post-btn {
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;

  background: linear-gradient(45deg, #ff7a18, #ff3cac);
  color: white;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;

  box-shadow: 0 0 20px rgba(255, 100, 150, 0.5);
  transition: 0.3s;
}

/* Button hover */
.post-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255, 100, 150, 0.8);
}

@media (min-width: 1025px) {
  .sidebar {
    padding: 20px 15px 18px;
  }

  .sidebar h3 {
    font-size: 18.5px;
    margin-bottom: 9px;
  }

  .sidebar ul {
    margin-bottom: 14px;
  }

  .sidebar ul li {
    gap: 11px;
    padding: 5px 12px;
    margin-bottom: 3px;
    font-size: 14px;
    min-height: 38px;
  }

  .sidebar ul li i {
    width: 29px;
    height: 29px;
    border-radius: 10px;
    font-size: 13.5px;
  }

  .post-btn {
    padding: 11px;
  }
}


.category-row {
  display: flex;
  gap: 15px;

  overflow-x: auto;
  scroll-behavior: smooth;

  flex-wrap: nowrap;

  width: 100%;          /* ðŸ”¥ FIX: max-content hatao */
  padding-bottom: 10px;

  cursor: grab;         /* ðŸ”¥ drag feel */
}

.category-row:active {
  cursor: grabbing;
}

.category-card {
  min-width: 150px;
  flex-shrink: 0;
}

/* Scrollbar hide */
.category-row::-webkit-scrollbar {
  display: none;
}

.more-card {
  text-decoration: none;
}




/* ===== STATS AND WHY ===== */
.stats-and-why {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}

/* LEFT SIDE */
.trending-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0; /* no extra gap */
}

/* ===== STATS ROW FIXED ===== */
.stats-row {
  display: flex;
  flex-direction: row;
  gap: 15px;

  width: 100%; /* full width inside flex */

  align-items: right;
  justify-content: space-between;
  margin: 0px 0px 0px 0px;    /*ðŸ‘ˆ (top = 0, right = 0, bottom = 20px, left = 0) outside box ka gap control */
  padding: 20px;

  border-radius: 18px;

  background: rgba(20, 25, 60, 0.9);

  backdrop-filter: blur(12px);

  box-shadow: 
    0 0 25px rgba(0,0,0,0.5),
    inset 0 0 10px rgba(255,255,255,0.05);

  position: relative;
  overflow: visible;

  flex-wrap: nowrap;            /* ðŸ”¥ LINE BREAK NA HO */
}

/* LIGHT EFFECT */
.stats-row::before {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.04), transparent 60%);
  pointer-events: none;
}

/* ===== EACH ITEM ===== */
.stat-box {
  display: flex;
  align-items: center;
  justify-content: flex-start;  /* <<<< */
  gap: 8px;
  flex: 0 0 auto;
  height: 15px;

  color: white;
}

/* ===== ICON ===== */
.stat-box i {
  font-size: 16px;  /* ðŸ”¹ inside Circle ICON SIZE CONTROL */

  width: 35px;    /* Circle size control */
  height: 35px;   /* Circle size control */
  border-radius: 50%; /* icon size circle - square control */

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

  background: linear-gradient(135deg, #00eaff, #5b86e5);
  color: white;

  box-shadow:
    0 0 10px rgba(0, 234, 255, 0.4),
    0 0 20px rgba(91, 134, 229, 0.3);

  flex-shrink: 0;
}

/* ===== TEXT ===== */
.stat-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-text h3 {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 0 4px rgba(255,255,255,0.3);
}

.stat-text p {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}


.trending-left {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  overflow: hidden;     /* ye use krne se stat row box card hide nhi hoga front se */
}

/* ===== CARD BASE ===== */
.category-card {
  margin-top: 8px;
  width: 140px;           /* ðŸ”¹ FIXED WIDTH (left-right control) */

  min-width: 140px;       /* ðŸ”¹ SAME rakho (conflict avoid) */
  flex-shrink: 0;         /* ðŸ”¹ card compress nahi hoga scroll me */

  height: 140px;          /* ðŸ”¹ HEIGHT control (top-bottom size) */

  padding: 8px;           /* ðŸ”¹ INNER spacing (chota karne ke liye kam kiya) */

  border-radius: 15px;
  border: 0;
  color: white;
  font: inherit;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;

  backdrop-filter: blur(12px);
  box-shadow: 0 0 25px rgba(0,0,0,0.4);

  display: flex;                /* ðŸ”¥ ADD: better alignment */
  flex-direction: column;       /* ðŸ”¥ ADD: vertical layout */
  align-items: center;          /* ðŸ”¥ ADD: center horizontally */
  justify-content: space-between;      /* ðŸ”¥ ADD: center vertically */
}



/* ===== DIFFERENT GRADIENTS ===== */
.category-card:nth-child(1) {
  background: linear-gradient(135deg, #1fd1a5, #2a5298);
}

.category-card:nth-child(2) {
  background: linear-gradient(135deg, #36d1dc, #5b86e5);
}

.category-card:nth-child(3) {
  background: linear-gradient(135deg, #ff758c, #ff7eb3);
}

.category-card:nth-child(4) {
  background: linear-gradient(135deg, #ff9966, #ff5e62);
}

.category-card:nth-child(5) {
  background: linear-gradient(135deg, #4776e6, #8e54e9);
}

.category-card:nth-child(6) {
  background: linear-gradient(135deg, #7f00ff, #e100ff);
}

.category-card:nth-child(7) {
  background: linear-gradient(135deg, #f7971e, #ffd200);
}

.category-card:nth-child(8) {
  background: linear-gradient(135deg, #24c6dc, #514a9d);
}

.category-card.more-card {
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at 50% 30%, rgba(35, 233, 255, 0.11), transparent 45%),
    #17172f;
  box-shadow: inset 0 0 24px rgba(115, 72, 255, 0.08);
}

/* ===== GLOW EFFECT ===== */
.category-card::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 60%);
}

/* ===== HOVER ===== */
.category-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 0 35px rgba(0,0,0,0.6);
}

/* ===== ICON ===== */
.category-card i {
  font-size: 28px;
  margin: 0 auto 10px;   /* ðŸ”¥ center + spacing */

  display: flex;         /* change inline-flex â†’ flex */
  align-items: center;
  justify-content: center;

  width: 45px;
  height: 45px;
  border-radius: 12px;

  background: rgba(255,255,255,0.2);
  color: white;

  box-shadow: 0 0 12px rgba(255,255,255,0.4);
}

.category-card {
  text-align: center;   /* ðŸ”¥ sab center ho jayega */
}


/* ===== 2.TITLE --> Home Services ===== */
.category-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  line-height: 1.1;
}

/* ===== 3.SUBTEXT --> Cleaning Cook ===== */
.category-card p {
  font-size: 12.5px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 5px;
}

/* ===== 4.BADGE ===== */
.category-card span {
  font-size: 11px;
  background: rgba(0,0,0,0.25);
  padding: 4px 10px;
  border-radius: 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 70px;
}

/* ICON inside badge */
.category-card span i {
  font-size: 10px;
  background: none;
  box-shadow: none;
  width: auto;
  height: auto;
}

/* ===== MORE CARD CENTER ALIGN ===== */
.more-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.more-card h4 {
  margin-top: 8px;
}

.category-card.more-card i {
  background: transparent;
  color: #9eeeff;
  box-shadow: 0 0 18px rgba(35, 233, 255, 0.3);
}


/* ===== 3rd Row TRENDING SECTION ===== */

/* HEADER */
.trending-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 0px;
  padding: 0 5px;
}

.trending-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;

  text-shadow: 0 0 8px rgba(255,255,255,0.4);
}

/* VIEW ALL BUTTON */
.view-all {
  appearance: none;
  background: transparent;
  border: 0;
  text-decoration: none;
  font-size: 14px;
  font: inherit;
  color: #cfd3ff;
  cursor: default;

  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 78px;
  min-height: 28px;

  transition: color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.view-all:hover {
  color: #00eaff;
  transform: none;
}

/* ===== ROW ===== */
.trending-row {
  display: flex;
  gap: 15px;

  overflow-x: auto;
  scroll-behavior: smooth;

  padding-bottom: 10px;
}

/* HIDE SCROLLBAR */
.trending-row::-webkit-scrollbar {
  display: none;
}

/* ===== CARD ===== */
/* ===== CARD ===== */
.service-card {
  min-width: 180px;
  max-width: 180px;

  border-radius: 16px;
  padding: 10px 10px 20px 10px;

  background: rgba(20, 25, 60, 0.85);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow: 
    0 0 25px rgba(0,0,0,0.6),
    inset 0 0 8px rgba(255,255,255,0.05);

  color: white;

  flex-shrink: 0;

  display: flex;
  flex-direction: column;

  /* âŒ animation off */
  transition: none;
}

/* âŒ IMPORTANT: hover fully disable */
.service-card:hover {
  transform: none !important;
  box-shadow: 
    0 0 25px rgba(0,0,0,0.6),
    inset 0 0 8px rgba(255,255,255,0.05) !important;
}


/* IMAGE */
.service-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;

  margin-bottom: 8px;
}

/* TITLE */
.service-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

/* RATING */
.rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 5px;
  font-size: 12px;
  line-height: 1;
}

.rating-stars {
  color: #ffd33d;
  letter-spacing: 1px;
  white-space: nowrap;
}

.rating-count {
  color: #ffd33d;
  font-weight: 700;
  white-space: nowrap;
}

/* PRICE */
.service-card p {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}

/* BUTTON */
.service-card button {
  width: 100%;
  padding: 7px;

  border: none;
  border-radius: 10px;

  font-size: 12px;
  cursor: pointer;

  background: linear-gradient(45deg, #3a7bfd, #6f4cff);
  color: white;

  box-shadow: 0 0 10px rgba(80,120,255,0.5);

  margin-top: auto;
}

/* ONLY BUTTON HOVER (ALLOWED) */
.service-card button:hover {
  transform: scale(1.05);
}

.marketplace-card {
  padding-bottom: 12px;
}

.marketplace-card p {
  line-height: 1.35;
  margin-bottom: 12px;
}

.marketplace-card button {
  min-height: 36px;
  margin-top: auto;
  padding: 8px 10px;
}






/* ===== TRENDING SECTION ===== */
.trending-section {
  width: 100%;
  margin-top: 0px; /* pull up 10px */
}

/* LEFT SIDE INNER */
.trending-left-inner {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* RIGHT SIDE FIX (MAIN FIX) */
.why-box {
  width: 260px;
  min-width: 260px;
   /* ðŸ”¥ FIX: height control */

  flex-shrink: 0;
  align-self: flex-start; /* ðŸ”¥ MOST IMPORTANT LINE */

  position: sticky;
  top: 20px; /* optional premium effect */

  padding: 15px 0px 14px 15px;   /* 15r 15left space manage 5px bottom increase --> top right bottom left */
  border-radius: 18px;

  background: linear-gradient(135deg, rgba(30, 20, 80, 0.95), rgba(80, 30, 120, 0.95));
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);

  color: #fff;
}

.why-box h3 {     /* Why choose us? Title Adjustment*/
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  margin-top: 2px;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.why-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.why-item i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00eaff, #5b86e5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 10px rgba(0, 234, 255, 0.4);
  flex-shrink: 0;
}

.why-item div h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: -2px;
  color: #ffffff;
}

.why-item div p {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-bottom: -2px;
}

.start-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 25px;
  background: linear-gradient(45deg, #ff7a18, #ff3cac);
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  box-shadow: 0 0 20px rgba(255, 100, 150, 0.5);
  transition: 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255, 100, 150, 0.8);
}

.join-text {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-top: 10px;
}

.trending-left {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* ITEMS */
.why-item {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
}

/* ICON */
.why-item i {
  width: 36px;
  height: 36px;

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

  border-radius: 50%;
  background: linear-gradient(135deg, #6a5cff, #00c6ff);
}

/* TEXT */
.why-item h4 {
  font-size: 14px;
  margin: 0;
}

.why-item p {
  font-size: 12px;
  opacity: 0.7;
  margin: 2px 0 0;
}

/* BUTTON */
.start-btn {
  width: 100%;
  margin-top: 10px;

  padding: 10px;
  border: none;
  border-radius: 10px;

  background: linear-gradient(90deg, #ff7a18, #ff3d77);
  color: #fff;

  cursor: pointer;
}

/* TEXT */
.join-text {
  text-align: center;
  font-size: 12px;
  margin-top: 10px;
  opacity: 0.7;
}

/* ===== REMOVE OLD ISSUE ===== */
.right-content {
  margin-right: 0 !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .layout {
    flex-direction: column;
    padding: 10px 20px;
  }
  
  .sidebar {
    position: static;
    width: 100%;
  }
  
  .stats-and-why {
    flex-direction: column;
  }
  
  .why-box {
    width: 100%;
  }
  
  .category-row {
    flex-wrap: wrap;
    overflow-x: visible;
  }
  
  .stats-row {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .trending-row {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 10px 20px;
  }
  
  .layout {
    padding: 10px 10px;
  }
  
  .trending-row {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}
[data-service-link] {
  cursor: pointer;
}

.google-login-btn,
.desktop-menu-btn,
.home-logout-btn,
.desktop-menu-dropdown button,
.mobile-home-menu > button,
.search-box button,
.post-btn,
.mobile-action-card,
.category-card,
.mobile-compact-grid button,
.service-card button,
.start-btn,
[data-service-link],
[data-own-profiles-link],
[data-delete-profiles-link],
[data-delete-account-link] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.google-login-btn:active,
.desktop-menu-btn:active,
.home-logout-btn:active,
.desktop-menu-dropdown button:active,
.mobile-home-menu > button:active,
.search-box button:active,
.post-btn:active,
.mobile-action-card:active,
.category-card:active,
.mobile-compact-grid button:active,
.service-card button:active,
.start-btn:active,
[data-own-profiles-link]:active,
[data-delete-profiles-link]:active,
[data-delete-account-link]:active {
  transform: scale(0.97);
  box-shadow: 0 0 0 4px rgba(70, 231, 255, 0.12), 0 10px 24px rgba(0, 0, 0, 0.22);
}

.mobile-action-card,
.category-card,
.mobile-compact-grid button,
.post-btn,
.search-box button,
.start-btn {
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
}
.why-item-extra,
.mobile-header-actions,
.mobile-action-strip,
.mobile-section-header,
.mobile-compact-categories {
  display: none;
}

/* ===== LANDING MOBILE / TABLET POLISH ===== */
@media (max-width: 1024px) {
  body {
    overflow-x: hidden;
    background: radial-gradient(circle at top right, #261070 0, #020817 58%, #020817 100%);
  }

  .hero {
    position: relative;
    z-index: 10;
    padding: 20px 28px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .navbar {
    gap: 16px;
    align-items: center;
    flex-wrap: nowrap;
  }

  .logo {
    flex: 1;
    min-width: 0;
  }

  .logo-box {
    width: 54px;
    height: 54px;
    border-radius: 0;
    object-fit: contain;
  }

  .logo h2 {
    font-size: 26px;
    letter-spacing: 0;
  }

  .logo p {
    font-size: 14px;
    color: rgba(255,255,255,0.78);
  }

  .menu,
  .nav-btns,
  .right,
  .sidebar {
    display: none;
  }

  .mobile-header-actions {
    position: relative;
    z-index: 1000;
    display: flex;
    gap: 18px;
    align-items: center;
  }

  .mobile-header-actions button {
    width: 44px;
    height: 44px;
    border: 0;
    color: #fff;
    background: transparent;
    font-size: 34px;
    cursor: pointer;
    transition: transform 120ms ease, filter 120ms ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  #mobileHomeMenuButton:active {
    transform: scale(0.92);
    filter: brightness(0.9);
  }
  .mobile-home-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 1001;
    display: grid;
    width: min(246px, calc(100vw - 28px));
    max-height: 0;
    overflow: hidden;
    gap: 6px;
    padding: 0 8px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 16px;
    background: #061229;
    box-shadow: 0 18px 44px rgba(0,0,0,0.48);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: max-height 180ms ease, padding 180ms ease, opacity 160ms ease, transform 160ms ease;
  }
  .mobile-header-actions.is-open .mobile-home-menu {
    max-height: min(calc(100vh - 92px), 560px);
    overflow-y: visible;
    padding: 8px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero:has(.mobile-header-actions.is-open) {
    overflow: visible;
  }

  .mobile-home-menu > button,
  .mobile-home-menu .home-user-chip {
    width: 100%;
    min-height: 42px;
  }

  .mobile-home-menu > button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: rgba(255,255,255,0.05);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-align: left;
    cursor: pointer;
  }

  .mobile-home-menu > button:hover {
    background: rgba(255,255,255,0.1);
  }

  .mobile-delete-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
  }

  .mobile-delete-tabs button {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0 8px;
    border: 0;
    color: #fff;
    background: transparent;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.15;
    cursor: pointer;
  }

  .mobile-delete-tabs button + button {
    border-left: 1px solid rgba(255,255,255,0.14);
  }

  .mobile-delete-tabs button:active {
    background: rgba(255,79,114,0.22);
  }

  .mobile-home-menu > button span {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border-radius: 50%;
    color: #23e9ff;
    background: rgba(255,255,255,0.12);
    font-size: 13px;
  }

  .mobile-home-menu .google-login-btn {
    justify-content: flex-start;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
  }

  .mobile-home-menu .google-login-btn span {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    color: #fff;
    background: rgba(255,255,255,0.14);
  }

  .mobile-home-menu .home-user-chip {
    display: flex;
    max-width: 100%;
    min-width: 0;
    min-height: 50px;
    gap: 10px;
    padding: 5px 6px 5px 5px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
  }

  .mobile-home-menu .home-user-chip[hidden] {
    display: none;
  }

  .mobile-home-menu .home-user-photo {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  .mobile-home-menu .home-user-name {
    min-width: 0;
    font-size: 13px;
  }

  .mobile-home-menu .home-user-chip .home-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 34px;
    min-width: 68px;
    min-height: 34px;
    flex: 0 0 auto;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-header-actions .mobile-home-menu > button {
    font-size: 14px;
  }

  .mobile-header-actions .mobile-home-menu > button i {
    font-size: 14px;
  }

  .mobile-header-actions .mobile-home-menu .google-login-btn {
    min-height: 50px;
    font-size: 14px;
  }

  .mobile-header-actions .mobile-home-menu .google-login-btn:focus,
  .mobile-header-actions .mobile-home-menu .google-login-btn:focus-visible {
    outline: none;
    box-shadow: none;
  }

  .hero-content {
    position: relative;
    display: block;
    margin-top: 28px;
  }

  .mobile-hero-banner {
    position: absolute;
    top: 2px;
    right: -4px;
    z-index: 0;
    display: block;
    width: clamp(104px, 31vw, 190px);
    pointer-events: none;
  }

  .mobile-hero-banner img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .left {
    position: relative;
    z-index: 1;
    width: 100%;
  }

  .left h1 {
    max-width: 720px;
    font-size: 44px;
    line-height: 1.16;
    letter-spacing: 0;
  }

  .left span {
    color: #18e8ff;
  }

  .badges {
    gap: 12px;
    margin: 24px 0 22px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .badges::-webkit-scrollbar,
  .tags::-webkit-scrollbar,
  .category-row::-webkit-scrollbar,
  .trending-row::-webkit-scrollbar,
  .stats-row::-webkit-scrollbar {
    display: none;
  }

  .badges span {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    color: #20ecff;
    background: rgba(255,255,255,0.08);
    font-size: 15px;
    font-weight: 700;
  }

  .search-box {
    height: 68px;
    margin: 0 0 24px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    background: rgba(9, 15, 38, 0.82);
  }

  .search-box input {
    min-width: 0;
    padding: 0 28px;
    font-size: 21px;
  }

  .search-box button {
    min-width: 170px;
    padding: 0 30px;
    border-radius: 999px;
    font-size: 20px;
    font-weight: 800;
  }

  .tags {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .tags span {
    flex: 0 0 auto;
    padding: 13px 22px;
    border-radius: 999px;
    color: #20ecff;
    background: rgba(255,255,255,0.08);
    font-size: 16px;
    font-weight: 700;
  }

  .mobile-action-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 22px 28px;
    background: rgba(5, 8, 25, 0.94);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .mobile-action-card {
    position: relative;
    display: grid;
    grid-template-columns: 52px 1fr 44px;
    grid-template-areas: "icon title arrow" "icon copy arrow";
    align-items: center;
    gap: 4px 14px;
    min-height: 92px;
    padding: 18px 18px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    color: #fff;
    background: rgba(255,255,255,0.07);
    text-align: left;
    cursor: pointer;
  }

  .mobile-action-card--job {
    background: linear-gradient(135deg, rgba(0, 188, 155, 0.38), rgba(9, 16, 34, 0.9));
  }

  .mobile-action-card--worker {
    background: linear-gradient(135deg, rgba(42, 83, 255, 0.42), rgba(9, 16, 34, 0.9));
  }

  .mobile-action-card span {
    grid-area: icon;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255,255,255,0.12);
    color: #23e9ff;
    font-size: 24px;
  }

  .mobile-action-card strong {
    grid-area: title;
    font-size: 22px;
    line-height: 1.1;
  }

  .mobile-action-card small {
    grid-area: copy;
    color: rgba(255,255,255,0.78);
    font-size: 16px;
  }

  .mobile-action-card .action-arrow {
    grid-area: arrow;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 234, 255, 0.22);
    color: #fff;
    font-size: 20px;
  }

  .layout {
    display: block;
    padding: 26px 28px 34px;
  }

  .right-content {
    overflow: visible;
  }

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

  .mobile-section-header--categories {
    position: relative;
    min-height: 64px;
    padding: 12px 12px 24px 14px;
    border: 1px solid rgba(35, 233, 255, 0.28);
    border-radius: 16px;
    background:
      linear-gradient(135deg, rgba(35, 233, 255, 0.16), rgba(155, 92, 255, 0.16)),
      rgba(255, 255, 255, 0.05);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  .mobile-section-header--categories::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -10px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #23e9ff, rgba(155, 92, 255, 0.8), transparent);
  }

  .mobile-section-header--categories::after {
    content: "Services";
    position: absolute;
    left: 8px;
    bottom: 8px;
    width: max-content;
    padding: 3px 8px;
    border-radius: 999px;
    color: #23e9ff;
    background: rgba(35, 233, 255, 0.12);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
  }

  .mobile-section-header--categories h2 {
    display: grid;
    gap: 2px;
    text-align: center;
    transform: translateY(8px);
  }

  .mobile-section-header--categories .section-title-text {
    justify-self: start;
    margin-left: 0;
  }

  .mobile-section-header--categories h2::after {
    content: none;
  }

  .mobile-section-header h2,
  .mobile-compact-categories h2,
  .trending-header h2,
  .why-box h3 {
    color: #fff;
    font-size: 26px;
    line-height: 1.2;
    text-shadow: none;
  }

  .mobile-section-header a,
  .mobile-section-header .header-view-more,
  .view-all {
    color: #9b5cff;
    font-weight: 800;
    text-decoration: none;
    font-size: 18px;
  }

  .category-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    overflow: visible;
    padding-bottom: 28px;
  }

  .category-card,
  .category-card.more-card {
    min-width: 0;
    min-height: 218px;
    border-radius: 24px;
    padding: 24px 14px 20px;
    justify-content: center;
  }

  .category-card i {
    width: 70px;
    height: 70px;
    margin-bottom: 18px;
    font-size: 34px;
    border-radius: 50%;
  }

  .category-card h4 {
    font-size: 22px;
    line-height: 1.08;
  }

  .category-card p {
    font-size: 15px;
  }

  .category-card span {
    margin-top: 12px;
    font-size: 16px;
    padding: 8px 14px;
  }

  .mobile-compact-categories {
    display: block;
    padding: 0 0 24px;
  }

  .mobile-compact-categories h2 {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-height: 64px;
    margin-bottom: 18px;
    padding: 12px 12px 24px 14px;
    border: 1px solid rgba(35, 233, 255, 0.28);
    border-radius: 16px;
    background:
      linear-gradient(135deg, rgba(35, 233, 255, 0.14), rgba(155, 92, 255, 0.15)),
      rgba(255, 255, 255, 0.05);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  .mobile-compact-categories .compact-view-more {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 6px 10px;
    border: 1px solid rgba(198, 210, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: #dbe3ff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  }

  .mobile-compact-categories h2::after {
    content: "Jobs";
    position: absolute;
    left: 8px;
    bottom: 8px;
    width: max-content;
    padding: 3px 8px;
    border-radius: 999px;
    color: #23e9ff;
    background: rgba(35, 233, 255, 0.12);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
  }

  .mobile-compact-categories h2::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -10px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #23e9ff, rgba(155, 92, 255, 0.8), transparent);
  }

  .mobile-compact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .mobile-compact-grid button {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 7px;
    min-height: 150px;
    padding: 16px 10px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    color: #fff;
    background: rgba(255,255,255,0.07);
    box-shadow: inset 0 0 24px rgba(115, 72, 255, 0.08);
    cursor: pointer;
  }

  .mobile-compact-grid i {
    color: #aeeeff;
    font-size: 44px;
    text-shadow: 0 0 18px rgba(87, 116, 255, 0.75);
  }

  .mobile-compact-grid strong {
    font-size: 17px;
    line-height: 1.12;
  }

  .mobile-compact-grid span {
    max-width: 100%;
    color: rgba(255,255,255,0.72);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-view-more {
    border-style: dashed !important;
    border-color: rgba(137, 78, 255, 0.9) !important;
  }

  .stats-and-why {
    display: flex;
    flex-direction: column;
    gap: 26px;
  }

  .trending-left {
    display: flex;
    flex-direction: column;
  }

  .trending-section {
    order: 1;
    margin-top: 0;
  }

  .stats-row {
    order: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    overflow: visible;
    margin-top: 0;
    padding: 20px;
    border-radius: 22px;
  }

  .stat-box {
    min-width: 0;
    justify-content: center;
    padding: 0 14px;
    border-right: 1px solid rgba(255,255,255,0.12);
  }

  .stat-box:last-child {
    border-right: 0;
  }

  .stat-box i {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .stat-text h3 {
    font-size: 24px;
  }

  .stat-text p {
    font-size: 15px;
  }

  .trending-left-inner {
    gap: 18px;
  }

  .trending-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2px;
  }

  .trending-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    overflow: visible;
    padding-bottom: 0;
  }

  .service-card {
    min-width: 0;
    max-width: none;
    padding: 12px 12px 16px;
    border-radius: 18px;
  }

  .service-card:nth-child(n+5) {
    display: none;
  }

  .service-card img {
    height: 132px;
    border-radius: 14px;
  }

  .service-card h4 {
    font-size: 18px;
  }

  .rating {
    font-size: 14px;
    gap: 4px;
  }

  .rating-stars {
    letter-spacing: 0;
  }

  .service-card p {
    font-size: 16px;
  }

  .service-card button {
    min-height: 46px;
    font-size: 18px;
    border-radius: 12px;
  }

  .why-box {
    position: static;
    width: 100%;
    min-width: 0;
    padding: 34px 28px;
    border-radius: 24px;
  }

  .why-box h3 {
    margin-bottom: 24px;
  }

  .why-box {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .why-box h3,
  .start-btn,
  .join-text {
    grid-column: 1 / -1;
  }

  .why-item-extra {
    display: grid;
  }

  .why-item {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 14px;
    align-items: center;
    min-height: 112px;
    margin-bottom: 0;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
  }

  .why-item i {
    width: 58px;
    height: 58px;
    font-size: 24px;
  }

  .why-item div h4 {
    font-size: 17px;
    margin-bottom: 6px;
  }

  .why-item div p {
    font-size: 15px;
    line-height: 1.35;
  }

  .start-btn {
    width: min(680px, 100%);
    min-height: 64px;
    justify-self: center;
    margin-top: 8px;
    border-radius: 16px;
    font-size: 22px;
  }

  .join-text {
    font-size: 16px;
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 18px 18px 22px;
  }

  .logo-box {
    width: 50px;
    height: 50px;
  }

  .logo h2 {
    font-size: 23px;
  }

  .logo p {
    font-size: 13px;
  }

  .mobile-header-actions {
    gap: 12px;
  }

  .mobile-header-actions button {
    width: 38px;
    height: 38px;
    font-size: 30px;
  }

  .left h1 {
    font-size: 34px;
  }

  .badges span {
    padding: 10px 14px;
    font-size: 13px;
  }

  .search-box {
    height: 60px;
  }

  .search-box input {
    padding: 0 18px;
    font-size: 17px;
  }

  .search-box button {
    min-width: 128px;
    font-size: 18px;
  }

  .tags span {
    padding: 11px 17px;
    font-size: 15px;
  }

  .mobile-action-strip {
    gap: 14px;
    padding: 18px;
  }

  .mobile-action-card {
    grid-template-columns: 42px 1fr 36px;
    min-height: 82px;
    padding: 14px;
    gap: 4px 10px;
  }

  .mobile-action-card span {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .mobile-action-card strong {
    font-size: 18px;
  }

  .mobile-action-card small {
    font-size: 14px;
  }

  .mobile-action-card .action-arrow {
    width: 36px;
    height: 36px;
  }

  .layout {
    padding: 22px 18px 28px;
  }

  .mobile-section-header h2,
  .mobile-compact-categories h2,
  .trending-header h2,
  .why-box h3 {
    font-size: 23px;
  }

  .category-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .category-card,
  .category-card.more-card {
    min-height: 178px;
    border-radius: 18px;
    padding: 18px 9px 14px;
  }

  .category-card i {
    width: 54px;
    height: 54px;
    font-size: 28px;
    margin-bottom: 12px;
  }

  .category-card h4 {
    font-size: 18px;
  }

  .category-card p {
    font-size: 13px;
  }

  .category-card span {
    font-size: 13px;
    padding: 7px 11px;
  }

  .mobile-compact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .mobile-compact-grid button {
    min-height: 126px;
    border-radius: 14px;
  }

  .mobile-compact-grid i {
    font-size: 34px;
  }

  .mobile-compact-grid strong {
    font-size: 14px;
  }

  .mobile-compact-grid span {
    font-size: 11px;
  }

  .trending-row {
    gap: 12px;
  }

  .service-card img {
    height: 106px;
  }

  .service-card h4 {
    font-size: 16px;
  }

  .rating {
    font-size: 12px;
  }

  .service-card p {
    font-size: 14px;
  }

  .service-card button {
    min-height: 42px;
    font-size: 16px;
  }

  .stats-row {
    padding: 16px;
  }

  .stat-box {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 8px;
    padding: 0 8px;
  }

  .stat-text h3 {
    font-size: 21px;
  }

  .stat-text p {
    font-size: 13px;
  }

  .why-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 24px 18px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 16px 16px 20px;
  }

  .logo-box {
    width: 46px;
    height: 46px;
  }

  .logo h2 {
    font-size: 21px;
  }

  .logo p {
    font-size: 12px;
  }

  .mobile-header-actions button {
    font-size: 28px;
  }

  .left h1 {
    font-size: 29px;
  }

  .search-box button {
    min-width: 108px;
    font-size: 16px;
  }

  .mobile-action-strip {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .layout {
    padding: 20px 16px 26px;
  }

  .category-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-card,
  .category-card.more-card {
    min-height: 170px;
  }

  .mobile-compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trending-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 0;
  }

  .stat-box:nth-child(2) {
    border-right: 0;
  }

  .why-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .left h1 {
    font-size: 26px;
  }

  .search-box input {
    font-size: 15px;
    padding: 0 14px;
  }

  .search-box button {
    min-width: 96px;
  }

  .category-card h4 {
    font-size: 16px;
  }

  .service-card img {
    height: 92px;
  }
}
/* ===== MOBILE STEP FIXES FROM USER FEEDBACK ===== */
@media (max-width: 768px) {
  .hero {
    padding: 14px 16px 18px;
  }

  .hero-content {
    margin-top: 16px;
  }

  .mobile-hero-banner {
    top: -12px;   /* Phone Ka banner position up dawn krne ke liye */
    right: 13px;  /* HeroBanner left right position  */
    width: clamp(112px, 38vw, 165px);
  }

  .left h1 {
    max-width: calc(100% - 18px);
    padding-right: 16px;
    font-size: 28px;
    line-height: 1.14;
  }

  .badges {
    gap: 8px;
    margin: 18px 0 16px;
  }

  .badges span {
    gap: 6px;
    padding: 9px 12px;
    font-size: 12px;
  }

  .badges span i {
    font-size: 12px;
  }

  @media (max-width: 480px) {
    .badges {
      display: grid;
      grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr);
      gap: 6px;
      overflow: visible;
    }

    .badges span {
      justify-content: center;
      min-width: 0;
      gap: 4px;
      padding: 8px 4px;
      font-size: clamp(8.4px, 2.35vw, 10px);
      line-height: 1;
      white-space: nowrap;
    }

    .badges span i {
      font-size: 9px;
    }
  }

  .search-box {
    height: 52px;
    margin-bottom: 16px;
  }

  .search-box input {
    padding: 0 16px;
    font-size: 15px;
  }

  .search-box button {
    min-width: 116px;
    padding: 0 18px;
    font-size: 16px;
  }

  .tags {
    gap: 8px;
  }

  .tags span {
    padding: 9px 13px;
    font-size: 12px;
  }

  .mobile-action-strip {    /* Post a Job + Become a worker button for mobile  */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;            
    padding: 8px 10px;   /* 12px 16px tha mene apne according 8px & 10x kia.  */
  }

  .mobile-action-card {
    grid-template-columns: 32px minmax(0, 1fr) 30px;
    min-height: 68px;
    padding: 10px;
    gap: 3px 8px;
    border-radius: 14px;
  }

  .mobile-action-card span {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 16px;
  }

  .mobile-action-card strong {
    font-size: 15px;
    white-space: nowrap;
  }

  .mobile-action-card small {
    font-size: 11px;
    white-space: nowrap;
  }

  .mobile-action-card .action-arrow {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .mobile-section-header {
    margin-bottom: 14px;
  }

  .mobile-section-header--categories {
    margin-bottom: 18px;
  }

  .mobile-section-header h2,
  .mobile-compact-categories h2,
  .trending-header h2,
  .why-box h3 {
    font-size: 22px;
  }

  .mobile-section-header a,
  .mobile-section-header .header-view-more,
  .view-all {
    font-size: 15px;
  }

  .category-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-bottom: 24px;
  }

  .category-card,
  .category-card.more-card {
    min-height: 184px;
    width: 100%;
    padding: 16px 10px 14px;
    display: grid;
    grid-template-rows: 54px auto auto 1fr auto;
    justify-items: center;
    align-items: start;
  }

  .category-card i {
    grid-row: 1;
    width: 52px;
    height: 52px;
    margin: 0;
    font-size: 27px;
  }

  .category-card h4 {
    grid-row: 2;
    align-self: start;
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.1;
  }

  .category-card p {
    grid-row: 3;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.25;
  }

  .category-card span {
    grid-row: 5;
    align-self: end;
    margin-top: 0;
    padding: 7px 11px;
    font-size: 12px;
  }

  .category-card span i {
    width: auto;
    height: auto;
    margin: 0;
    font-size: 12px;
  }

  .stats-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 10px 8px;
    border-radius: 18px;
  }

  .stat-box {
    min-width: 0;
    padding: 0 5px;
    gap: 5px;
  }

  .stat-box i {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .stat-text h3 {
    font-size: 14px;
    line-height: 1.05;
  }

  .stat-text p {
    font-size: 10px;
    line-height: 1.18;
  }

  .why-box {
    padding: 20px 16px;
    gap: 10px;
    border-radius: 20px;
  }

  .why-box h3 {
    margin-bottom: 8px;
  }

  .why-item {
    grid-template-columns: 42px 1fr;
    gap: 10px;
    min-height: 72px;
    padding: 10px;
    border-radius: 14px;
  }

  .why-item i {
    width: 42px;
    height: 42px;
    font-size: 17px;
  }

  .why-item div h4 {
    font-size: 14px;
    margin-bottom: 3px;
  }

  .why-item div p {
    font-size: 12px;
    line-height: 1.25;
  }

  .start-btn {
    min-height: 50px;
    font-size: 17px;
    border-radius: 14px;
  }

  .join-text {
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  .left h1 {
    font-size: 25px;
  }

  .tags span {
    padding: 8px 11px;
    font-size: 11px;
  }

  .mobile-action-card {
    grid-template-columns: 28px minmax(0, 1fr) 26px;
    padding: 9px 8px;
  }

  .mobile-action-card span {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .mobile-action-card strong {
    font-size: 13px;
  }

  .mobile-action-card small {
    font-size: 10px;
  }

  .mobile-action-card .action-arrow {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .category-row {
    gap: 10px;
  }

  .category-card,
  .category-card.more-card {
    min-height: 174px;
    padding: 14px 8px 12px;
  }

  .category-card h4 {
    font-size: 15px;
  }

  .category-card p,
  .category-card span {
    font-size: 11px;
  }

  .stat-box i {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .stat-text h3 {
    font-size: 13px;
  }

  .stat-text p {
    font-size: 9px;
  }
}
/* ===== STATS STRIP VISIBILITY FIX ===== */
@media (max-width: 768px) {
  .stats-row {
    min-height: 76px;
    padding: 12px 8px;
    align-items: center;
  }

  .stat-box {
    min-height: 52px;
    align-content: center;
    justify-items: center;
    gap: 4px;
    overflow: visible;
  }

  .stat-box i {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .stat-text {
    gap: 2px;
    min-width: 0;
  }

  .stat-text h3 {
    font-size: 12px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .stat-text p {
    font-size: 9px;
    line-height: 1.15;
  }
}

@media (max-width: 420px) {
  .stats-row {
    min-height: 72px;
    padding: 10px 6px;
  }

  .stat-box {
    min-height: 50px;
    padding: 0 3px;
  }

  .stat-box i {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }

  .stat-text h3 {
    font-size: 11px;
  }

  .stat-text p {
    font-size: 8.5px;
  }
}

/* Keep mobile stats icons and labels locked to the same positions. */
@media (max-width: 768px) {
  .stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
  }

  .stat-box {
    display: grid;
    grid-template-rows: 24px 1fr;
    justify-items: center;
    align-items: start;
    align-content: start;
    text-align: center;
    gap: 5px;
    min-height: 52px;
    padding: 0 4px;
  }

  .stat-box i {
    grid-row: 1;
    align-self: center;
    justify-self: center;
    margin: 0;
  }

  .stat-text {
    grid-row: 2;
    align-items: center;
    justify-content: start;
    text-align: center;
    width: 100%;
  }

  .stat-text h3,
  .stat-text p {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .stat-box {
    grid-template-rows: 22px 1fr;
    min-height: 50px;
    gap: 4px;
    padding: 0 3px;
  }
}
/* ===== MOBILE ACTION BUTTON CLEANUP ===== */
@media (max-width: 768px) {
  .mobile-action-card {
    grid-template-columns: 26px minmax(0, 1fr);
    grid-template-areas: "icon title" "icon copy";
  }

  .mobile-action-card span {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 13px;
  }

  .mobile-action-card .action-arrow {
    display: none;
  }
}

@media (max-width: 420px) {
  .mobile-action-card {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .mobile-action-card span {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
}
/* ===== MOBILE ACTION WIDTH / THEME TUNE ===== */
@media (max-width: 768px) {
  .mobile-action-strip {
    gap: 5px;
    padding-left: 12px;
    padding-right: 12px;
    background: linear-gradient(135deg, #03091d 0%, #091238 52%, #17063f 100%);
  }

  .mobile-action-card {
    min-width: 0;
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 14px 28px rgba(0,0,0,0.22), inset 0 0 18px rgba(255,255,255,0.04);
  }

  .mobile-action-card--job {
    background: linear-gradient(135deg, rgba(0, 210, 180, 0.34), rgba(8, 16, 45, 0.96));
  }

  .mobile-action-card--worker {
    background: linear-gradient(135deg, rgba(77, 83, 255, 0.38), rgba(14, 13, 55, 0.96));
  }
}

@media (max-width: 420px) {
  .mobile-action-strip {
    gap: 4px;
    padding-left: 10px;   /* Post a Job + Become a worker button -> left right gap adjustment for Phone View  */
    padding-right: 10px;
  }
}
/* ===== MOBILE ACTION REMOVE BLACK BACKGROUND ===== */
@media (max-width: 768px) {
  .mobile-action-strip {
    background: linear-gradient(135deg, rgba(10, 16, 46, 0.82), rgba(44, 11, 92, 0.72));
  }

  .mobile-action-card--job {
    background: linear-gradient(135deg, rgba(14, 214, 184, 0.58), rgba(32, 112, 180, 0.38));
  }

  .mobile-action-card--worker {
    background: linear-gradient(135deg, rgba(75, 99, 255, 0.62), rgba(141, 62, 255, 0.38));
  }
}

/* Slightly reduce mobile search bar height. */
@media (max-width: 768px) {
  .search-box {
    height: 42px;   /* Search Box ki height Control */
  }

  .search-box input {   /* input left-right space */
    padding: 0 15px;
    font-size: 15px;    /* input text size */
  }

  .search-box button {
    min-width: 92px;   /* search button width */
    padding: 0 16px;    /* button left-right space */
    font-size: 15px;    /* button text size */
  }
}

@media (max-width: 380px) {
  .search-box {
    height: 46px;
  }

  .search-box input {
    padding: 0 13px;
    font-size: 14px;
  }

  .search-box button {
    min-width: 92px;
    padding: 0 14px;
    font-size: 14px;
  }
}

/* Phone heading line and size control. */
@media (max-width: 768px) {
  .left h1 {
    max-width: calc(100% - 28px);   /* right side gap */
    padding-right: 22px;            /* right side inner gap */
    font-size: 24px;                /* phone heading size */
    line-height: 1.18;              /* line gap */
  }

  .desktop-title-break {
    display: none;
  }

  .mobile-title-break {
    display: block;
  }
}

@media (max-width: 380px) {
  .left h1 {
    max-width: calc(100% - 24px);
    padding-right: 18px;
    font-size: 20px;
  }
}

.marketplace-card h4 {
  margin-bottom: 3px;
  line-height: 1.12;
}

.marketplace-card {
  padding: 8px 10px 10px;
}

.marketplace-card img {
  margin-bottom: 6px;
}

.marketplace-card p {
  min-height: 30px;
  margin-bottom: 6px;
  line-height: 1.25;
}

.marketplace-card button {
  min-height: 34px;
  margin-top: auto;
  padding: 7px 10px;
  font-size: 13px;
  line-height: 1.1;
}

@media (min-width: 769px) {
  .marketplace-card {
    padding: 9px 10px 10px;
  }

  .marketplace-card img {
    height: 122px;
  }

  .marketplace-card p {
    min-height: 32px;
    font-size: 13px;
  }

  .marketplace-card button {
    min-height: 34px;
    font-size: 13px;
    border-radius: 11px;
  }
}

/* Phone and tablet marketplace images need a little more visual room. */
@media (max-width: 1024px) {
  .marketplace-card:nth-child(-n + 4) img {
    height: 142px;
  }
}

@media (max-width: 768px) {
  .marketplace-card:nth-child(-n + 4) img {
    height: 118px;
  }
}

@media (max-width: 380px) {
  .marketplace-card:nth-child(-n + 4) img {
    height: 108px;
  }
}

/* Phone trending heading line control. */
@media (max-width: 768px) {
  .mobile-trending-break {
    display: block;
  }

  .trending-header {
    position: relative;
    min-height: 64px;
    margin-bottom: 18px;
    padding: 12px 12px 24px 14px;
    border: 1px solid rgba(35, 233, 255, 0.28);
    border-radius: 16px;
    background:
      linear-gradient(135deg, rgba(35, 233, 255, 0.16), rgba(155, 92, 255, 0.16)),
      rgba(255, 255, 255, 0.05);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  .trending-header::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -10px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #23e9ff, rgba(155, 92, 255, 0.8), transparent);
  }
}

/* Phone header action buttons: Quick Categories / Trending Service. */
@media (max-width: 768px) {
  .mobile-section-header,
  .trending-header {
    align-items: flex-start;
    gap: 10px;
  }

  .trending-header {
    align-items: flex-start;
  }

  .mobile-section-header a,
  .mobile-section-header .header-view-more,
  .view-all {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 6px 10px;
    border: 1px solid rgba(198, 210, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: #dbe3ff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  }

  .mobile-section-header .header-view-more,
  .mobile-compact-categories .compact-view-more {
    cursor: default;
    user-select: none;
  }

  .view-all {
    margin-top: 0;
    gap: 4px;
  }

  .view-all i {
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  .mobile-section-header a,
  .mobile-section-header .header-view-more,
  .view-all,
  .mobile-compact-categories .compact-view-more {
    min-height: 26px;
    padding: 5px 8px;
    font-size: 11px;
  }
}

/* Phone smoothness / no-overlap safety. */
@media (max-width: 560px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .hero,
  .layout,
  .mobile-action-strip,
  .right-content {
    max-width: 100%;
    overflow-x: hidden;
  }

  .mobile-action-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .mobile-action-card {
    grid-template-columns: 22px minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 8px 6px;
    gap: 2px 4px;
    border-radius: 12px;
  }

  .mobile-action-card span {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    font-size: 11px;
  }

  .mobile-action-card strong,
  .mobile-action-card small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-action-card strong {
    align-self: end;
    font-size: 12px;
    line-height: 1.05;
  }

  .mobile-action-card small {
    align-self: start;
    font-size: 9.5px;
    line-height: 1.15;
  }

  .category-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .category-card,
  .category-card.more-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}

/* Phone section polish from visual review. */
@media (max-width: 560px) {
  .mobile-section-header,
  .trending-header {
    margin-bottom: 8px;
    padding: 0;
    gap: 8px;
  }

  .mobile-section-header h2,
  .trending-header h2 {
    font-size: 20px;
    line-height: 1.05;
  }

  .mobile-section-header a,
  .mobile-section-header .header-view-more,
  .view-all {
    min-height: 24px;
    padding: 5px 8px;
    font-size: 11px;
  }

  .category-card,
  .category-card.more-card {
    display: grid;
    grid-template-rows: 52px minmax(36px, auto) 34px 1fr 28px;
    min-height: 174px;
    padding: 14px 8px 12px;
  }

  .category-card.more-card {
    align-content: center;
    grid-template-rows: auto auto;
    gap: 12px;
  }

  .category-card i {
    grid-row: 1;
    align-self: start;
  }

  .category-card h4 {
    grid-row: 2;
    align-self: start;
    margin-top: 6px;
  }

  .category-card.more-card h4 {
    margin-top: 0;
    align-self: center;
  }

  .category-card p {
    grid-row: 3;
    align-self: start;
    min-height: 30px;
    margin-top: 4px;
  }

  .category-card span {
    grid-row: 5;
    align-self: end;
    justify-self: center;
    margin-top: 0;
  }

  .why-box {
    padding: 16px 14px;
    gap: 8px;
    border-radius: 18px;
  }

  .why-box h3 {
    margin-bottom: 6px;
    font-size: 20px;
    line-height: 1.1;
  }

  .why-item {
    grid-template-columns: 38px 1fr;
    min-height: 58px;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 13px;
  }

  .why-item i {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .why-item div h4 {
    font-size: 13px;
    line-height: 1.1;
    margin-bottom: 2px;
  }

  .why-item div p {
    font-size: 11px;
    line-height: 1.18;
  }

  .start-btn {
    min-height: 42px;
    margin-top: 2px;
    font-size: 14px;
    border-radius: 12px;
  }

  .join-text {
    font-size: 11px;
  }
}

/* Phone vertical gap tuning for category sections. */
@media (max-width: 560px) {
  .layout {
    padding-top: 12px;
  }

  .mobile-section-header {
    margin-bottom: 8px;
  }

  .mobile-section-header--categories {
    margin-bottom: 18px;
  }

  .category-row {
    padding-bottom: 12px;
  }

  .mobile-compact-categories {
    padding-top: 2px;
    padding-bottom: 18px;
  }

  .mobile-compact-categories h2 {
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.05;
  }

  .mobile-compact-categories > h2 {
    margin-bottom: 18px;
    line-height: 1.2;
  }

}

@media (max-width: 1024px) {
  .mobile-header-actions .mobile-home-menu > button,
  .mobile-header-actions .mobile-home-menu .google-login-btn {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    white-space: nowrap;
  }

  .mobile-header-actions .mobile-home-menu .google-login-btn {
    justify-content: flex-start;
  }

  .mobile-header-actions .mobile-home-menu .mobile-delete-tabs button {
    width: 100%;
    height: auto;
    font-size: 14px;
  }
}

@media (max-width: 1024px) {
  .mobile-section-header.mobile-section-header--categories {
    min-height: 64px;
    padding: 12px 12px 24px 14px;
  }

  .mobile-section-header.mobile-section-header--categories h2 {
    transform: translateY(8px);
  }

  .mobile-section-header.mobile-section-header--categories::after {
    left: 8px;
    bottom: 8px;
  }
}

@media (max-width: 560px) {
  .mobile-section-header.mobile-section-header--categories h2 {
    transform: translateY(5px);
  }

  .trending-header {
    min-height: 56px;
    margin-bottom: 18px;
    padding: 10px 12px 18px 14px;
  }

  .trending-header h2 {
    transform: translateY(3px);
  }

  .service-card button {
    min-height: 34px;
    padding: 5px 8px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.05;
  }
}

@media (max-width: 768px) {
  .layout {
    padding-left: 8px;
    padding-right: 8px;
  }

  .category-card,
  .category-card:hover {
    transform: none;
  }

  #workerProfiles .category-card {
    transition: transform 120ms ease, box-shadow 120ms ease;
  }

  #workerProfiles .category-card:active {
    transform: scale(0.97);
    box-shadow: 0 0 25px rgba(0,0,0,0.4);
  }
}
