/**
 * CityHubPro - Main Stylesheet
 * Modern, premium design with glassmorphism and animations
 */

/* ===== CSS Variables ===== */
:root {
  /* Primary Colors */
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;

  /* Secondary Colors */
  --secondary: #0ea5e9;
  --secondary-light: #38bdf8;
  --secondary-dark: #0284c7;

  /* Accent Colors */
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Neutral Colors */
  --dark: #0f172a;
  --dark-light: #1e293b;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --light: #f1f5f9;
  --white: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #64748b;

  /* Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--secondary) 100%
  );
  --gradient-dark: linear-gradient(
    135deg,
    var(--dark) 0%,
    var(--dark-light) 100%
  );
  --gradient-hero: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.9) 0%,
    rgba(14, 165, 233, 0.9) 100%
  );

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
}

/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Navbar ===== */
.navbar {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  padding: 1rem 0;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background: rgba(15, 23, 42, 0.98);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white) !important;
  display: flex;
  align-items: center;
}

.navbar-brand i {
  color: var(--primary);
}

.navbar-brand span {
  color: var(--primary);
}

.nav-link {
  color: var(--gray-light) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white) !important;
}

.dropdown-menu {
  background: var(--dark-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 0.5rem;
  box-shadow: var(--shadow-xl);
}

.dropdown-item {
  color: var(--gray-light);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--primary);
  color: var(--white);
}

.dropdown-divider {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Search Form */
.search-form .input-group {
  width: 250px;
}

.search-form .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 0.5rem 1rem;
}

.search-form .form-control::placeholder {
  color: var(--gray-light);
}

.search-form .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary);
  box-shadow: none;
}

.search-form .btn {
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* User Menu */
.user-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-img-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

/* ===== Buttons ===== */
.btn {
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  background: var(--gradient-primary);
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  background:
    var(--gradient-hero),
    url("../images/hero-bg.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero h1 span {
  background: linear-gradient(to right, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 600px;
}

/* Hero Search */
.hero-search {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: 1rem;
  max-width: 700px;
}

.hero-search .form-control,
.hero-search .form-select {
  background: var(--white);
  border: none;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  border-radius: var(--radius);
}

.hero-search .form-control:focus,
.hero-search .form-select:focus {
  box-shadow: none;
}

.hero-search .btn {
  padding: 1rem 2rem;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
}

.hero-stat {
  color: var(--white);
}

.hero-stat h3 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.hero-stat p {
  font-size: 0.875rem;
  opacity: 0.8;
  margin: 0;
}

/* Hero Visual (Desktop) */
.hero-visual {
  position: relative;
  max-width: 500px;
  margin-left: auto;
  animation-delay: 0.15s;
}

.hero-visual-main {
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  padding: 12px;
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(8px);
}

.hero-visual-main img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.hero-visual-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 0.45rem 0.8rem 0.45rem 0.45rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  font-weight: 600;
  font-size: 0.86rem;
}

.hero-visual-chip img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(99, 102, 241, 0.35);
}

.hero-visual-chip.chip-top {
  top: 24px;
  right: -30px;
}

.hero-visual-chip.chip-middle {
  top: 50%;
  left: -48px;
  transform: translateY(-50%);
}

.hero-visual-chip.chip-bottom {
  bottom: 30px;
  right: -16px;
}

/* ===== Section Styling ===== */
.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--gray);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* ===== Category Cards ===== */
.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid transparent;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.category-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--white);
  transition: var(--transition);
}

.category-card:hover .category-icon {
  transform: scale(1.1);
}

.category-card h5 {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.category-card p {
  color: var(--gray);
  font-size: 0.875rem;
  margin: 0;
}

/* ===== Service Cards ===== */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.service-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--gradient-primary);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
}

.service-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.service-title:hover {
  color: var(--primary);
}

.service-provider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.service-provider img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.service-provider span {
  color: var(--gray);
  font-size: 0.875rem;
}

.service-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--light);
}

.service-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.service-price small {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--gray);
}

.service-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--accent);
  font-weight: 600;
}

.service-rating i {
  font-size: 0.875rem;
}

/* ===== Provider Card ===== */
.provider-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.provider-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.provider-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 4px solid var(--light);
}

.provider-name {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.provider-specialty {
  color: var(--gray);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* ===== How It Works ===== */
.how-it-works {
  background: var(--gradient-dark);
  color: var(--white);
}

.how-it-works .section-title,
.how-it-works .section-subtitle {
  color: var(--white);
}

.step-card {
  text-align: center;
  padding: 2rem;
  position: relative;
}

.step-number {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
}

.step-card h4 {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step-card p {
  color: var(--gray-light);
  font-size: 0.9rem;
}

/* Step connector line */
.step-connector {
  position: absolute;
  top: 55px;
  left: 60%;
  width: 100%;
  height: 2px;
  background: var(--primary);
  opacity: 0.3;
}

/* ===== CTA Section ===== */
.cta-section {
  background: var(--gradient-primary);
  padding: 5rem 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.cta-section .btn {
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
}

.cta-section .btn:hover {
  background: var(--dark);
  color: var(--white);
}

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: var(--gray-light);
  padding: 4rem 0 0;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-brand span {
  color: var(--primary);
}

.footer-desc {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.footer h5 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--gray-light);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.footer-contact i {
  color: var(--primary);
  width: 20px;
}

.footer-contact a {
  color: var(--gray-light);
}

.footer-contact a:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 3rem 0 0;
}

.footer-bottom {
  padding: 1.5rem 0;
  font-size: 0.875rem;
}

.footer-bottom a {
  color: var(--gray-light);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ===== Dashboard Styles ===== */
.dashboard-sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  position: sticky;
  top: 100px;
}

.dashboard-user {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--light);
  margin-bottom: 1.5rem;
}

.dashboard-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 4px solid var(--primary);
}

.dashboard-user h5 {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.dashboard-user p {
  color: var(--gray);
  font-size: 0.875rem;
  margin: 0;
}

.dashboard-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dashboard-nav li {
  margin-bottom: 0.5rem;
}

.dashboard-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--gray);
  border-radius: var(--radius);
  font-weight: 500;
  transition: var(--transition-fast);
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
  background: var(--gradient-primary);
  color: var(--white);
}

.dashboard-nav a i {
  width: 20px;
  text-align: center;
}

/* Dashboard Cards */
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
}

.stat-icon.primary {
  background: var(--gradient-primary);
}
.stat-icon.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.stat-icon.warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.stat-icon.info {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.stat-content h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.stat-content p {
  color: var(--gray);
  margin: 0;
  font-size: 0.875rem;
}

/* ===== Forms ===== */
.form-control,
.form-select {
  padding: 0.75rem 1rem;
  border: 2px solid var(--light);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-label {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

/* Auth Forms */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-dark);
  padding: 6rem 1rem 2rem;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 3rem;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-xl);
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo a {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
}

.auth-logo a span {
  color: var(--primary);
}

.auth-title {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-title h2 {
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.auth-title p {
  color: var(--gray);
}

/* Role Selection */
.role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.role-option {
  position: relative;
}

.role-option input {
  position: absolute;
  opacity: 0;
}

.role-option label {
  display: block;
  padding: 1.5rem;
  border: 2px solid var(--light);
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.role-option label i {
  font-size: 2rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
  display: block;
  transition: var(--transition);
}

.role-option label span {
  font-weight: 600;
  color: var(--dark);
}

.role-option input:checked + label {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.role-option input:checked + label i {
  color: var(--primary);
}

/* ===== Tables ===== */
.table-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.table {
  margin: 0;
}

.table thead {
  background: var(--light);
}

.table th {
  font-weight: 600;
  color: var(--dark);
  padding: 1rem;
  border: none;
}

.table td {
  padding: 1rem;
  vertical-align: middle;
  border-color: var(--light);
}

/* ===== Badges ===== */
.badge {
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  border-radius: var(--radius);
}

/* ===== Alerts ===== */
.alert {
  border: none;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.alert-info {
  background: rgba(14, 165, 233, 0.1);
  color: #0284c7;
}

/* ===== Star Rating ===== */
.star-rating {
  display: inline-flex;
  gap: 2px;
}

.star-rating .fas,
.star-rating .far {
  font-size: 0.875rem;
}

/* ===== Page Header ===== */
.page-header {
  background: var(--gradient-primary);
  padding: 8rem 0 4rem;
  color: var(--white);
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.page-header .breadcrumb {
  justify-content: center;
  margin: 0;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
}

.page-header .breadcrumb-item.active {
  color: var(--white);
}

/* ===== Responsive ===== */

/* Tablet Landscape and below */
@media (max-width: 991px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-stats {
    gap: 2rem;
  }

  .hero-stat h3 {
    font-size: 2rem;
  }

  .search-form {
    display: none !important;
  }

  .step-connector {
    display: none;
  }

  /* Mobile Navigation */
  .navbar-collapse {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: var(--dark);
    padding: 5rem 1.5rem 2rem;
    transition: left 0.3s ease;
    z-index: 1050;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
  }

  .navbar-collapse.show {
    left: 0;
  }

  /* Mobile nav overlay */
  .navbar-collapse.show::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }

  .navbar-collapse .navbar-nav {
    flex-direction: column;
  }

  .navbar-collapse .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-collapse .nav-link {
    padding: 1rem 0 !important;
    font-size: 1.1rem;
  }

  /* Touch-friendly dropdown */
  .navbar-collapse .dropdown-menu {
    position: static !important;
    display: block !important;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
    transform: none !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  /* Show dropdown when parent has show class */
  .navbar-collapse .dropdown.show .dropdown-menu,
  .navbar-collapse .nav-item.dropdown.show .dropdown-menu {
    max-height: 500px;
  }

  .navbar-collapse .dropdown-item {
    padding: 0.75rem 1rem 0.75rem 1.5rem;
    font-size: 1rem;
    color: var(--gray-light);
  }

  .navbar-collapse .dropdown-item:hover,
  .navbar-collapse .dropdown-item:focus {
    background: rgba(99, 102, 241, 0.2);
    color: var(--white);
  }

  .navbar-collapse .dropdown-divider {
    margin: 0.25rem 1rem;
    border-color: rgba(255, 255, 255, 0.1);
  }

  /* Make dropdown toggle look clickable */
  .navbar-collapse .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .navbar-collapse .dropdown-toggle::after {
    transition: transform 0.3s ease;
  }

  .navbar-collapse .dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
  }

  /* Hamburger animation */
  .navbar-toggler {
    border: none;
    padding: 0.5rem;
    z-index: 1060;
  }

  .navbar-toggler:focus {
    box-shadow: none;
  }

  /* Dashboard sidebar mobile: keep stacked layout */
  .dashboard-sidebar {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    z-index: auto !important;
    border-radius: var(--radius-lg) !important;
    transition: none !important;
  }

  .dashboard-sidebar.show {
    left: auto !important;
  }
}

/* Tablet Portrait and Mobile */
@media (max-width: 768px) {
  /* Base adjustments */
  body {
    font-size: 15px;
  }

  /* Navbar for mobile */
  .navbar {
    padding: 0.75rem 0;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  /* Hero Section Mobile */
  .hero {
    min-height: auto;
    padding: 7rem 0 3rem;
  }

  .hero h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
  }

  .hero-stat {
    flex: 0 0 calc(50% - 0.5rem);
    text-align: center;
  }

  .hero-stat h3 {
    font-size: 1.5rem;
  }

  .hero-stat p {
    font-size: 0.75rem;
  }

  /* Hero Search Mobile */
  .hero-search {
    padding: 0.75rem;
  }

  .hero-search .row {
    gap: 0.5rem;
  }

  .hero-search .form-control,
  .hero-search .form-select {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }

  .hero-search .btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
  }

  /* Section Titles */
  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  /* Category Cards Mobile */
  .category-card {
    padding: 1.25rem;
  }

  .category-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .category-card h5 {
    font-size: 0.95rem;
  }

  .category-card p {
    font-size: 0.8rem;
  }

  /* Service Cards Mobile */
  .service-image {
    height: 160px;
  }

  .service-body {
    padding: 1rem;
  }

  .service-title {
    font-size: 1rem;
  }

  .service-price {
    font-size: 1.1rem;
  }

  /* How It Works Mobile */
  .step-card {
    padding: 1.5rem 1rem;
  }

  .step-number {
    width: 55px;
    height: 55px;
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .step-card h4 {
    font-size: 1rem;
  }

  /* CTA Section Mobile */
  .cta-section {
    padding: 3rem 0;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }

  .cta-section p {
    font-size: 1rem;
  }

  /* Auth Forms Mobile */
  .auth-wrapper {
    padding: 5rem 0.75rem 2rem;
  }

  .auth-card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
  }

  .auth-logo a {
    font-size: 1.5rem;
  }

  .auth-title h2 {
    font-size: 1.5rem;
  }

  .role-selector {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .role-option label {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
  }

  .role-option label i {
    font-size: 1.5rem;
    margin-bottom: 0;
  }

  /* Page Header Mobile */
  .page-header {
    padding: 6rem 0 2.5rem;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  /* Footer Mobile */
  .footer {
    padding: 2.5rem 0 0;
  }

  .footer h5 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }

  .footer-bottom {
    text-align: center;
  }

  .footer-bottom .d-flex {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Dashboard Mobile */
  .stat-card {
    padding: 1rem;
    gap: 1rem;
  }

  .stat-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .stat-content h3 {
    font-size: 1.5rem;
  }

  /* Tables Mobile - Horizontal scroll */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table {
    min-width: 600px;
  }

  /* Buttons Mobile */
  .btn {
    padding: 0.875rem 1.25rem;
  }

  .btn-lg {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

/* Small Mobile Phones */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-stat {
    flex: 0 0 100%;
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
  }

  .section-title {
    font-size: 1.35rem;
  }

  /* Full width buttons on small screens */
  .btn-group-mobile .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  /* Cards stack nicely */
  .service-meta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}

/* ===== Touch-Friendly Enhancements ===== */

/* Minimum 44px tap targets */
@media (max-width: 991px) {
  .nav-link,
  .dropdown-item,
  .btn,
  .form-control,
  .form-select,
  .form-check-input {
    min-height: 44px;
  }

  .form-check-input {
    width: 22px;
    height: 22px;
  }

  .form-check-label {
    padding-left: 0.5rem;
    padding-top: 0.1rem;
  }

  /* Better touch feedback */
  .btn:active,
  .nav-link:active,
  .category-card:active,
  .service-card:active {
    transform: scale(0.98);
    opacity: 0.9;
  }

  /* Prevent text selection on interactive elements */
  .btn,
  .nav-link,
  .dropdown-item {
    -webkit-user-select: none;
    user-select: none;
  }
}

/* ===== Mobile Bottom Navigation ===== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 0.5rem 0;
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
  }

  /* Add padding to body to prevent content hiding behind nav */
  body {
    padding-bottom: 70px;
  }

  /* Hide footer links on mobile - bottom nav handles it */
  .footer {
    padding-bottom: 80px;
  }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 1rem;
  color: var(--gray);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  transition: var(--transition-fast);
  min-width: 60px;
}

.mobile-nav-item i {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
  color: var(--primary);
}

.mobile-nav-item.active i {
  color: var(--primary);
}

/* ===== Back to Top Button ===== */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 45px;
  height: 45px;
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

@media (min-width: 769px) {
  .back-to-top {
    bottom: 30px;
  }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Loading spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* ===== Dashboard / Admin Panel ===== */
.dashboard-sidebar {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  overflow: hidden;
  position: sticky;
  top: 6rem;
}

.dashboard-user {
  background: var(--gradient-primary);
  color: #fff;
  padding: 2rem 1.25rem;
  text-align: center;
}

.dashboard-user h5 {
  color: #fff;
  margin: 0.75rem 0 0.25rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: normal;
}

/* Admin sidebar heading should stay fully visible */
.admin-sidebar .admin-sidebar-title {
  font-size: 1rem;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  max-width: 100%;
  text-align: center;
}

.admin-sidebar .dashboard-user {
  padding: 1.5rem 0.9rem;
}

.admin-dashboard-row {
  align-items: flex-start;
}

.dashboard-user p {
  color: rgba(255,255,255,0.8);
  margin: 0;
  font-size: 0.85rem;
}

.dashboard-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto;
}

.dashboard-nav {
  list-style: none;
  padding: 0.75rem 0;
  margin: 0;
}

.dashboard-nav li a {
  display: flex;
  align-items: center;
  padding: 0.7rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.dashboard-nav li a i {
  width: 20px;
  margin-right: 0.75rem;
  text-align: center;
  font-size: 0.95rem;
}

.dashboard-nav li a:hover {
  background: rgba(99, 102, 241, 0.06);
  color: var(--primary);
  border-left-color: var(--primary);
}

.dashboard-nav li a.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}

.dashboard-nav li a.text-danger:hover {
  background: rgba(239, 68, 68, 0.06);
  color: var(--danger);
  border-left-color: var(--danger);
}

/* Stat Cards */
.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-icon.primary {
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
}

.stat-icon.success {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.stat-icon.warning {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.stat-icon.info {
  background: rgba(6, 182, 212, 0.12);
  color: #06b6d4;
}

.stat-icon.danger {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.stat-content h3 {
  font-size: 1.65rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-primary);
}

.stat-content p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0.15rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Status badges */
.badge-status {
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Table in dashboard */
.table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom-width: 2px;
}

.table td {
  font-size: 0.88rem;
  vertical-align: middle;
}

/* Profile image small */
.profile-img-sm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

/* ===== Utility Classes ===== */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: var(--gradient-primary);
}

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Flash message auto-dismiss */
.flash-container .alert {
  box-shadow: var(--shadow-xl);
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ===== Responsive Styles ===== */

/* Tablets and below (< 992px) */
@media (max-width: 991.98px) {
  .hero {
    min-height: auto;
    padding: 7rem 0 3rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-search {
    padding: 0.75rem;
  }

  .hero-stats {
    gap: 2rem;
    flex-wrap: wrap;
  }

  .hero-stat h3 {
    font-size: 2rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .cta-section h2 {
    font-size: 2rem;
  }

  .step-connector {
    display: none !important;
  }
}

/* Mobile (< 768px) */
@media (max-width: 767.98px) {
  .hero {
    padding: 6rem 0 2.5rem;
    text-align: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.05rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-search {
    max-width: 100%;
  }

  .hero-stats {
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .hero-stat h3 {
    font-size: 1.75rem;
  }

  .hero-stat p {
    font-size: 0.75rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .cta-section {
    padding: 3rem 0;
  }

  .cta-section h2 {
    font-size: 1.75rem;
  }

  .category-card {
    padding: 1.25rem;
  }

  .category-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .dashboard-sidebar {
    position: static;
    margin-bottom: 1.5rem;
  }

  .search-form .input-group {
    width: 180px;
  }

  .hide-mobile {
    display: none !important;
  }
}

/* Small mobile (< 576px) */
@media (max-width: 575.98px) {
  .hero h1 {
    font-size: 1.65rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .hero-search .form-control,
  .hero-search .form-select {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .hero-search .btn {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .hero-stats {
    gap: 1rem;
  }

  .hero-stat h3 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .footer {
    padding: 2.5rem 0 0;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
}

/* Safe area for notched devices */
@supports (padding: env(safe-area-inset-bottom)) {
  .mobile-bottom-nav {
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
  }
}

/* ===== Mobile Optimization Overrides ===== */
@media (max-width: 991.98px) {
  body.nav-open {
    overflow: hidden;
  }

  /* Keep dashboard sidebars visible without requiring a hidden slide-in toggle */
  .dashboard-sidebar {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    border-radius: var(--radius-lg) !important;
  }

  /* Force admin dashboard columns to stack on mobile/tablet */
  .admin-dashboard-row {
    display: flex !important;
    flex-wrap: wrap !important;
  }

  .admin-dashboard-row > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  /* Better drawer width and spacing for nav actions */
  .navbar-collapse {
    width: min(90vw, 340px);
  }

  .navbar-collapse .btn.dropdown-toggle,
  .navbar-collapse .user-menu {
    width: 100%;
    margin-left: 0 !important;
    margin-top: 0.75rem;
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  /* Tighter gutters and section spacing for small screens */
  .container,
  .container-fluid {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .page-header {
    padding: 5.75rem 0 2rem;
  }

  .hero-search {
    border-radius: var(--radius-lg);
  }

  .hero-search .row > [class*="col-"] {
    width: 100%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .hero-stat {
    text-align: left;
  }

  .table-responsive {
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.25rem;
    padding: 0 0.25rem;
  }

  .table th,
  .table td {
    white-space: nowrap;
  }

  .btn,
  .form-control,
  .form-select {
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
}

/* ===== Home Screen Refinements ===== */
.home-hero {
  min-height: calc(100vh - 10px);
  padding: 7.5rem 0 4.5rem;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(251, 191, 36, 0.18), transparent 34%),
    radial-gradient(circle at 84% 78%, rgba(14, 165, 233, 0.16), transparent 30%);
  pointer-events: none;
}

.home-hero .hero-content {
  max-width: 700px;
}

.home-hero .hero-visual {
  z-index: 1;
}

.home-hero .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(15, 23, 42, 0.28);
  margin-bottom: 1.1rem;
}

.home-hero .hero-search {
  background: rgba(15, 23, 42, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.2);
}

.home-hero .hero-search .form-control,
.home-hero .hero-search .form-select {
  min-height: 54px;
  border: 1px solid rgba(99, 102, 241, 0.18);
}

.home-hero .hero-search .form-control:focus,
.home-hero .hero-search .form-select:focus {
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}

.home-hero .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 2rem;
  max-width: 720px;
}

.home-hero .hero-stat {
  background: rgba(15, 23, 42, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  backdrop-filter: blur(8px);
}

.home-hero .hero-stat h3 {
  font-size: 2rem;
  line-height: 1;
}

.home-hero .hero-stat p {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.home-hero .hero-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.home-hero .hero-trust-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.42rem 0.78rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.home-hero .hero-trust-badges i {
  color: var(--accent-light);
}

.home-hero .hero-visual-main {
  transform: translateY(-6px);
}

.home-hero .hero-visual-main img {
  height: 500px;
}

.home-hero .hero-visual-chip {
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.home-categories .category-card,
.home-why .category-card,
.home-featured .service-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.home-categories .category-card:hover,
.home-why .category-card:hover,
.home-featured .service-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
}

.home-how-it-works .step-card {
  padding: 2.25rem 1.25rem;
}

@media (max-width: 991px) {
  .home-hero {
    min-height: auto;
  }

  .home-hero .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero .hero-stat:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767.98px) {
  .home-hero {
    padding: 6.5rem 0 3rem;
  }

  .home-hero .hero-kicker {
    font-size: 0.74rem;
    margin-bottom: 0.8rem;
  }

  .home-hero .hero-search .form-control,
  .home-hero .hero-search .form-select,
  .home-hero .hero-search .btn {
    min-height: 48px;
  }

  .home-hero .hero-stat {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .home-hero .hero-stats {
    grid-template-columns: 1fr;
  }

  .home-hero .hero-stat:last-child {
    grid-column: auto;
  }

  .home-hero .hero-trust-badges span {
    width: 100%;
    justify-content: center;
  }
}
