/* ---------- CSS Variables ---------- */
:root {
  /* Primary Theme */
  --primary: #DC2626;
  --primary-dark: #B91C1C;
  --primary-light: #EF4444;

  /* Secondary */
  --secondary: #F87171;

  /* Accent */
  --accent: #F59E0B;

  /* Background */
  --dark: #170808;
  --dark-2: #250D0D;
  --dark-3: #321111;

  --light: #FFF5F5;
  --white: #ffffff;

  /* Gray Colors */
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;

  /* Status Colors */
  --success: #22C55E;
  --warning: #FACC15;
  --danger: #DC2626;
  --info: #0EA5E9;

  /* Buttons */
  --login-btn: #DC2626;
  --login-btn-hover: #B91C1C;
  --login-btn-active: #991B1B;

  --register-btn: #2563EB;
  --register-btn-hover: #1d4ed8;
  --register-btn-active: #1e40af;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
  --gradient-dark: linear-gradient(135deg, #170808 0%, #321111 100%);
  --gradient-accent: linear-gradient(135deg, #DC2626 0%, #F87171 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.15);
  --shadow-xl: 0 16px 60px rgba(0,0,0,.2);
  --shadow-glow: 0 0 30px rgba(220,38,38,.35);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;

  --transition: all .3s cubic-bezier(.4,0,.2,1);

  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Poppins', sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-primary);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul { list-style: none; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  outline: none;
  border: none;
  font-family: inherit;
  touch-action: manipulation;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity .6s ease, visibility .6s ease;
}
.preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-inner { text-align: center; }
.preloader-circle {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(255,255,255,.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}
.preloader-text {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 3px;
}
.preloader-text span { color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Utilities ---------- */
.section-padding { padding: 100px 0; }
.section-padding-sm { padding: 60px 0; }

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(220,38,38,.1);
  border: 1px solid rgba(220,38,38,.2);
  border-radius: 50px;
  color: var(--primary);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--dark);
  word-wrap: break-word;
}
.section-title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 600px;
  line-height: 1.7;
}

.dark-section .section-title { color: var(--white); }
.dark-section .section-subtitle { color: rgba(255,255,255,.6); }

/* ---------- Buttons ---------- */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gradient-primary);
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
}
.btn-primary-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transition: left .5s;
}
.btn-primary-custom:hover::before { left: 100%; }
.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: var(--white);
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 32px;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--primary);
  transition: var(--transition);
  cursor: pointer;
  touch-action: manipulation;
}
.btn-outline-custom:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-white-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--white);
  color: var(--dark);
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-white-custom:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--dark);
}

.btn-sm { padding: 10px 22px; font-size: .88rem; }

/* ---------- HEADER / NAVBAR ---------- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 14px 0;
  transition: var(--transition);
  background: rgba(23,8,8,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.main-header.scrolled {
  background: rgba(23,8,8,.98);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  font-family: var(--font-heading);
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.5px;
}
.logo-text span { color: var(--primary); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}
.nav-menu a {
  padding: 8px 14px;
  color: rgba(255,255,255,.75);
  font-weight: 500;
  font-size: .88rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--white);
  background: rgba(255,255,255,.1);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.user-info-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}
.user-avatar {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  color: var(--white);
}
.user-details { line-height: 1.3; }
.user-name { font-weight: 600; font-size: .88rem; }
.user-block { font-size: .72rem; color: rgba(255,255,255,.8); }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  cursor: pointer;
  padding: 5px;
  border: none;
  z-index: 1001;
  position: relative;
}
.mobile-toggle span {
  width: 25px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: min(300px, 85vw);
  height: 100vh;
  height: 100dvh;
  background: var(--dark);
  padding: 80px 30px 30px;
  transition: right .4s cubic-bezier(.4,0,.2,1);
  z-index: 999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.open { right: 0; }

/* Closed overlay must not block taps on mobile */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.5);
  z-index: 998;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  display: block;
  padding: 14px 0;
  color: rgba(255,255,255,.7);
  font-weight: 500;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: var(--transition);
}
.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--primary);
  padding-left: 10px;
}

/* ---------- HERO / LOGIN SECTION ---------- */
.hero-section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--dark);
  overflow: hidden;
  padding: 100px 0 40px;
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(220,38,38,.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(248,113,113,.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(245,158,11,.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-text h1 {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  word-wrap: break-word;
}
.hero-text h1 .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.6);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-features {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(220,38,38,.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.hero-feature-text {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  font-weight: 500;
}

/* Login Card */
.login-card {
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 420px;
  width: 100%;
  margin-left: auto;
  position: relative;
  overflow: hidden;
}
.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}
.login-card h3 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.login-card .login-subtitle {
  color: rgba(255,255,255,.5);
  font-size: .9rem;
  margin-bottom: 30px;
}

/* Form Groups - Dark style */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: .95rem;
  transition: var(--transition);
  font-family: var(--font-primary);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,.3);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: rgba(220,38,38,.08);
  box-shadow: 0 0 0 3px rgba(220,38,38,.15);
  outline: none;
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(255,255,255,0.5)' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-group select option {
  background: var(--dark);
  color: var(--white);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Form Groups - Light style */
.form-group-light label {
  color: var(--gray-700);
}
.form-group-light input,
.form-group-light select,
.form-group-light textarea {
  background: var(--white);
  border: 1px solid var(--gray-300);
  color: var(--gray-800);
}
.form-group-light input::placeholder,
.form-group-light textarea::placeholder {
  color: var(--gray-400);
}
.form-group-light input:focus,
.form-group-light select:focus,
.form-group-light textarea:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(220,38,38,.1);
}

/* Login button */
.login-btn {
  width: 100%;
  padding: 14px;
  background: var(--login-btn);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  transform: none !important;
  border: none;
  font-family: var(--font-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 1 !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.login-btn:hover {
  background: var(--login-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(220,38,38,.45);
  color: var(--white);
}
.login-btn:active {
  background: var(--login-btn-active);
  transform: translateY(0);
  box-shadow: 0 0 12px rgba(220,38,38,.3);
}

/* Register button */
.register-btn {
  width: 100%;
  padding: 14px;
  background: #059669;
  opacity: 1 !important;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  transform: none !important;
  border: none;
  font-family: var(--font-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.register-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(5,150,105,.45);
  color: var(--white);
}
.register-btn:active {
  background: #1e40af;
  transform: translateY(0);
  box-shadow: 0 0 12px rgba(5,150,105,.3);
}

.login-footer {
  text-align: center;
  margin-top: 24px;
}
.login-footer p {
  color: rgba(255,255,255,.5);
  font-size: .9rem;
}
.login-footer a {
  color: var(--primary);
  font-weight: 600;
}
.login-footer a:hover { color: var(--primary-light); }

.register-link {
  color: var(--secondary) !important;
  display: block;
  margin-top: 12px;
  font-weight: 600;
  font-size: .95rem;
}

.download-app-section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
}
.download-app-section p {
  color: rgba(255,255,255,.4);
  font-size: .82rem;
  margin-bottom: 12px;
}
.download-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-weight: 500;
  font-size: .85rem;
  transition: var(--transition);
}
.download-app-btn:hover {
  background: rgba(255,255,255,.12);
  color: var(--white);
}

/* Download Technician App secondary CTA */
.download-technician-cta {
  margin-top: 16px;
  text-align: center;
}
.download-technician-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  width: 100%;
  max-width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.85);
  font-weight: 600;
  font-size: .9rem;
  transition: var(--transition);
  touch-action: manipulation;
}
.download-technician-cta a:hover {
  background: rgba(220,38,38,.15);
  border-color: var(--primary);
  color: var(--white);
}
.download-technician-cta a:active {
  background: rgba(220,38,38,.25);
}

/* Floating shapes */
.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: .06;
  pointer-events: none;
}
.floating-shape-1 {
  width: 300px;
  height: 300px;
  background: var(--primary);
  top: -100px;
  right: -80px;
}
.floating-shape-2 {
  width: 200px;
  height: 200px;
  background: var(--secondary);
  bottom: -60px;
  left: -40px;
}
.floating-shape-3 {
  width: 150px;
  height: 150px;
  background: var(--accent);
  top: 40%;
  right: 30%;
}

/* ---------- REGISTRATION PAGE ---------- */
.register-section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: var(--dark);
  position: relative;
  overflow: hidden;
  padding: 100px 0 40px;
}

.register-card {
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 50px;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}
.register-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}
.register-card h2 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.register-card .register-subtitle {
  color: rgba(255,255,255,.5);
  margin-bottom: 30px;
}

.register-card .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.register-footer {
  text-align: center;
  margin-top: 24px;
}
.register-footer p {
  color: rgba(255,255,255,.5);
  font-size: .9rem;
}
.register-footer a {
  color: var(--primary);
  font-weight: 600;
}

/* ---------- HOME PAGE ---------- */
.home-page {
  padding-top: 0;
}

/* Hero Slider */
.hero-slider {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}
.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(23,8,8,.92) 0%, rgba(50,17,17,.75) 100%);
  pointer-events: none;
}
.hero-slide-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding-top: 80px;
}
.hero-slide-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(220,38,38,.2);
  border: 1px solid rgba(220,38,38,.3);
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
}
.hero-slide-content h1 {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--white);
  word-wrap: break-word;
}
.hero-slide-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 32px;
  max-width: 550px;
}
.hero-slider-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 12px;
}
.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: var(--transition);
  touch-action: manipulation;
}
.slider-dot.active {
  background: var(--primary);
  width: 40px;
  border-radius: 6px;
}

/* ---------- STATS SECTION ---------- */
.stats-section {
  background: var(--dark);
  padding: 60px 0;
  position: relative;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.stat-card {
  text-align: center;
  padding: 30px 20px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.stat-card:hover {
  background: rgba(220,38,38,.08);
  border-color: rgba(220,38,38,.2);
  transform: translateY(-5px);
}
.stat-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.3rem;
  color: var(--white);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  color: rgba(255,255,255,.5);
  font-size: .9rem;
  font-weight: 500;
}

/* ---------- SERVICES SECTION ---------- */
.services-section {
  background: var(--light);
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,.04);
  position: relative;
  z-index: 1;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* Service card image - fixed aspect ratio */
.service-card-img {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  background: var(--gradient-dark);
  overflow: hidden;
  pointer-events: none;
}
.service-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .5s ease;
}
.service-card:hover .service-card-img img {
  transform: scale(1.08);
}

.service-icon-placeholder {
  font-size: 3rem;
  opacity: .3;
  color: var(--white);
}

.service-card-body {
  padding: 24px;
  position: relative;
  z-index: 2;
}
.service-card-body h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}
.service-card-body .service-price {
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
  text-align: left;
}
.service-card-body .service-price small {
  font-size: .8rem;
  font-weight: 500;
}

/* Book Now button */
.book-now-btn {
  width: 100%;
  padding: 12px;
  background: var(--gradient-primary);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: .92rem;
  font-family: var(--font-primary);
  position: relative;
  z-index: 5;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(220,38,38,.2);
  user-select: none;
}
.book-now-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.book-now-btn:active {
  transform: scale(.98);
}

/* ---------- PRODUCTS SECTION ---------- */
.products-section {
  background: var(--white);
  position: relative;
  z-index: 1;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,.04);
  position: relative;
  z-index: 1;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-card-img {
  height: 220px;
  background: var(--gradient-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  pointer-events: none;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-card-img img {
  transform: scale(1.08);
}
.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  background: var(--accent);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
}

.product-card-body {
  padding: 20px;
  position: relative;
  z-index: 2;
}
.product-card-body h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}
.product-card-body .product-price {
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.order-now-btn {
  width: 100%;
  padding: 12px;
  background: var(--gradient-accent);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: .92rem;
  font-family: var(--font-primary);
  position: relative;
  z-index: 5;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.order-now-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(248,113,113,.3);
}

/* ---------- GADGETS SECTION ---------- */
.gadgets-section {
  background: var(--light);
  position: relative;
  z-index: 1;
}

.gadgets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 20px;
}

.gadget-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,.04);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gadget-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.gadget-icon {
  width: 60px;
  height: 60px;
  background: rgba(220,38,38,.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: var(--transition);
  flex-shrink: 0;
}
.gadget-card:hover .gadget-icon {
  background: var(--gradient-primary);
}
.gadget-card:hover .gadget-icon svg { color: var(--white); }
.gadget-card h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--dark);
  font-size: .95rem;
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Numeric counters - aligned */
.gadget-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: auto;
}
.gadget-counter button {
  width: 34px;
  height: 34px;
  min-width: 34px;
  background: var(--light);
  border: 1px solid var(--gray-300);
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-700);
  flex-shrink: 0;
  touch-action: manipulation;
  padding: 0;
}
.gadget-counter button:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.gadget-counter input {
  width: 52px;
  min-width: 52px;
  height: 34px;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 34px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 0 4px;
  background: var(--white);
  color: var(--dark);
  font-family: var(--font-primary);
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
  -moz-appearance: textfield;
}
.gadget-counter input::-webkit-outer-spin-button,
.gadget-counter input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ---------- CONTACT SECTION ---------- */
.contact-section {
  background: var(--white);
  position: relative;
  z-index: 1;
}
.contact-info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}
.contact-info-card {
  background: var(--light);
  padding: 30px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
}
.contact-info-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}
.contact-info-card .icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--white);
  font-size: 1.1rem;
}
.contact-info-card h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--dark);
}
.contact-info-card p {
  color: var(--gray-600);
  font-size: .9rem;
  word-break: break-word;
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

/* ---------- AMC SECTION ---------- */
.amc-section {
  background: var(--light);
  position: relative;
  z-index: 1;
}

.amc-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--shadow-md);
}

.product-entry {
  background: var(--light);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 30px;
  margin-bottom: 20px;
  position: relative;
}
.product-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.product-entry-header h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  font-size: 1.05rem;
}
.remove-product-btn {
  width: 32px;
  height: 32px;
  background: var(--danger);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
  flex-shrink: 0;
}
.remove-product-btn:hover { transform: scale(1.1); }

.add-product-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(220,38,38,.08);
  border: 2px dashed var(--primary);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.add-product-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.file-upload {
  position: relative;
  display: block;
  width: 100%;
}
.file-upload input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  top: 0;
  left: 0;
  z-index: 2;
}
.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  background: var(--white);
}
.file-upload-label:hover {
  border-color: var(--primary);
  background: rgba(220,38,38,.03);
}
.file-upload-label svg {
  font-size: 2rem;
  color: var(--gray-400);
  margin-bottom: 8px;
}
.file-upload-label p {
  color: var(--gray-500);
  font-size: .85rem;
}
.file-upload-label span {
  color: var(--primary);
  font-weight: 600;
}

/* ---------- MY ACCOUNT ---------- */
.account-section {
  background: var(--light);
  padding-top: 100px;
  min-height: 100vh;
}

.account-sidebar {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.account-sidebar-header {
  background: var(--gradient-dark);
  padding: 30px;
  text-align: center;
}
.account-avatar {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 auto 12px;
  font-family: var(--font-heading);
}
.account-sidebar-header h4 {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
}
.account-sidebar-header p {
  color: rgba(255,255,255,.5);
  font-size: .85rem;
}

.account-nav { padding: 16px 0; }
.account-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: var(--gray-700);
  font-weight: 500;
  font-size: .92rem;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.account-nav a:hover,
.account-nav a.active {
  background: rgba(220,38,38,.05);
  color: var(--primary);
  border-left-color: var(--primary);
}

.account-content {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.account-content h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}
.account-content .content-subtitle {
  color: var(--gray-500);
  margin-bottom: 30px;
  font-size: .9rem;
}

.account-tab { display: none; }
.account-tab.active { display: block; }

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.data-table thead th {
  background: var(--light);
  padding: 14px 18px;
  font-weight: 600;
  font-size: .85rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: .5px;
  text-align: left;
  white-space: nowrap;
}
.data-table tbody td {
  padding: 14px 18px;
  font-size: .9rem;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
  vertical-align: middle;
}
.data-table .num,
.data-table td[data-type="number"] {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.data-table tbody tr:hover {
  background: rgba(220,38,38,.02);
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
}
.status-badge.pending { background: rgba(250,204,21,.12); color: #e6a700; }
.status-badge.complete { background: rgba(34,197,94,.12); color: var(--success); }
.status-badge.reject { background: rgba(220,38,38,.12); color: var(--danger); }
.status-badge.process { background: rgba(255, 127, 0,.12); color: #ff7f00; }
.status-badge.enquiry { background: rgba(255, 255, 0,.6); color: var(--primary); }
.status-badge.repeat { background: rgba(34,197,94,.12); color: var(--success); }

/* ---------- BOOKINGS (My Account) ---------- */
.booking-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.booking-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  border-left: 4px solid #1d2f73;
  box-shadow: 0 3px 12px rgba(0,0,0,.08);
}

.booking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.booking-id {
  font-size: 15px;
  font-weight: 700;
  color: #1d2f73;
}

.booking-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
}

.info-item {
  display: flex;
  flex-direction: column;
}

.label {
  font-size: 12px;
  color: #888;
  margin-bottom: 2px;
}

.value {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
}

.booking-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.booking-amount {
  background: #fff5d9;
  color: #b67b00;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 18px;
  font-weight: 700;
}

.booking-pagination {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.booking-pagination button {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: #f1f3f6;
  color: #1d2f73;
  font-weight: 600;
  cursor: pointer;
  transition: .3s;
}

.booking-pagination button:hover {
  background: #1d2f73;
  color: #fff;
}

.booking-pagination button.active {
  background: #1d2f73;
  color: #fff;
  box-shadow: 0 5px 15px rgba(29,47,115,.25);
}

.booking-pagination button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* ---------- PRODUCT ORDERS (My Account) ---------- */
.order-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.order-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  border-left: 4px solid #1d2f73;
  box-shadow: 0 3px 12px rgba(0,0,0,.08);
}

/* Delivery Address full width */
.order-card .info-item.full-width {
  grid-column: 1 / -1;
}

/* ---------- AMC ACCORDION (My Account) ---------- */
.amc-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.amc-card {
  background: #fff;
  border-radius: 12px;
  border-left: 4px solid #1d2f73;
  box-shadow: 0 3px 12px rgba(0,0,0,.08);
  overflow: hidden;
  transition: var(--transition);
}
.amc-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

.amc-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.amc-summary {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px 20px;
}

.amc-toggle {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: #f1f3f6;
  color: #1d2f73;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s ease, background .3s ease, color .3s ease;
}
.amc-card.open .amc-toggle {
  transform: rotate(180deg);
  background: #1d2f73;
  color: #fff;
}

.amc-services {
  display: none;
  border-top: 1px solid #eee;
  background: #fafbfd;
  padding: 14px 18px;
}

.amc-services-title {
  font-size: 14px;
  font-weight: 700;
  color: #1d2f73;
  margin-bottom: 12px;
}

.amc-service-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px 16px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.amc-service-row:last-child {
  margin-bottom: 0;
}

/* ---------- TECHNICIAN PAGE ---------- */
.technician-section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: var(--dark);
  position: relative;
  overflow: hidden;
  padding: 100px 0 40px;
}

.technician-form-card {
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 50px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}
.technician-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
}
.technician-form-card h2 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

/* ---------- MODAL ---------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  pointer-events: none;
}
.modal-overlay.active {
  display: flex;
  pointer-events: auto;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 480px;
  width: 100%;
  position: relative;
  animation: modalIn .3s ease;
  max-height: min(90vh, 90dvh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: auto;
  pointer-events: auto;
  z-index: 1;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.9) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1.2rem;
  color: var(--gray-600);
  z-index: 2;
  touch-action: manipulation;
}
.modal-close:hover {
  background: var(--danger);
  color: var(--white);
}

.modal-box h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--dark);
  padding-right: 36px;
}

.modal-box .form-group { margin-bottom: 18px; }
.modal-box .form-group label { color: var(--gray-700); }
.modal-box .form-group input,
.modal-box .form-group select,
.modal-box .form-group textarea {
  background: var(--white);
  border: 1px solid var(--gray-300);
  color: var(--gray-800);
}
.modal-box .form-group input::placeholder,
.modal-box .form-group textarea::placeholder {
  color: var(--gray-400);
}
.modal-box .form-group input:focus,
.modal-box .form-group select:focus,
.modal-box .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(220,38,38,.1);
}

/* Success Modal */
.success-modal-content {
  text-align: center;
  padding: 20px 0;
}
.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(34,197,94,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2.5rem;
  color: var(--success);
}
.success-modal-content h3 {
  text-align: center;
  margin-bottom: 10px;
  padding-right: 0;
}
.success-modal-content p {
  color: var(--gray-600);
  font-size: .95rem;
}

/* Logout Modal */
.logout-icon {
  width: 70px;
  height: 70px;
  background: rgba(220,38,38,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.7rem;
  color: var(--primary);
}

.logout-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}
.logout-actions button,
.logout-actions a {
  flex: 1;
  max-width: 160px;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.logout-no-btn {
  background: var(--light);
  color: var(--gray-700);
}
.logout-no-btn:hover {
  background: var(--gray-200);
}
.logout-yes-btn {
  background: var(--primary);
  color: #fff;
}
.logout-yes-btn:hover {
  background: var(--primary-dark);
  color: #fff;
}

/* ---------- FOOTER ---------- */
.main-footer {
  background: var(--dark);
  padding: 80px 0 0;
  position: relative;
}
.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-about .logo { margin-bottom: 16px; }
.footer-about p {
  color: rgba(255,255,255,.5);
  font-size: .9rem;
  line-height: 1.8;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,.5);
  font-size: .9rem;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-contact-info li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  color: rgba(255,255,255,.5);
  font-size: .9rem;
}
.footer-contact-info .fc-icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  margin-top: 50px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  text-align: center;
}
.footer-bottom p {
  color: rgba(255,255,255,.35);
  font-size: .85rem;
}
.footer-bottom a { color: var(--primary); }

/* ---------- PAGE HEADERS ---------- */
.page-header {
  background: var(--gradient-dark);
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(220,38,38,.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(248,113,113,.08) 0%, transparent 50%);
  pointer-events: none;
}
.page-header h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  position: relative;
  word-wrap: break-word;
}
.page-header p {
  color: rgba(255,255,255,.6);
  font-size: 1.05rem;
  position: relative;
  padding: 0 8px;
}
.page-header .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  position: relative;
  flex-wrap: wrap;
}
.page-header .breadcrumb a {
  color: rgba(255,255,255,.5);
  font-size: .9rem;
}
.page-header .breadcrumb a:hover { color: var(--primary); }
.page-header .breadcrumb span { color: rgba(255,255,255,.3); }
.page-header .breadcrumb .current {
  color: var(--primary);
  font-weight: 600;
}

/* ---------- CTA SECTION ---------- */
.cta-section {
  background: var(--gradient-dark);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 30% 50%, rgba(220,38,38,.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(248,113,113,.08) 0%, transparent 50%);
  pointer-events: none;
}
.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
  word-wrap: break-word;
  padding: 0 8px;
}
.cta-section p {
  color: rgba(255,255,255,.6);
  font-size: 1.05rem;
  margin-bottom: 30px;
  position: relative;
  padding: 0 12px;
}
.cta-section .btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  position: relative;
  flex-wrap: wrap;
  padding: 0 12px;
}

/* ---------- WHY CHOOSE US ---------- */
.why-us-section {
  background: var(--white);
  position: relative;
  z-index: 1;
}
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.why-us-card {
  padding: 40px 30px;
  border-radius: var(--radius-md);
  background: var(--light);
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.why-us-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform .3s ease;
  transform-origin: left;
}
.why-us-card:hover::before { transform: scaleX(1); }
.why-us-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-color: var(--gray-200);
  transform: translateY(-5px);
}
.why-us-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 20px;
}
.why-us-card h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
}
.why-us-card p {
  color: var(--gray-600);
  font-size: .9rem;
  line-height: 1.7;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials-section {
  background: var(--light);
  position: relative;
  z-index: 1;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  position: relative;
  height: 100%;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  left: 24px;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--primary);
  opacity: .1;
  line-height: 1;
}
.testimonial-card p {
  color: var(--gray-600);
  font-size: .95rem;
  line-height: 1.8;
  margin-bottom: 20px;
  position: relative;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-author-avatar {
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}
.testimonial-author h6 {
  font-weight: 600;
  font-size: .92rem;
  color: var(--dark);
  margin-bottom: 2px;
}
.testimonial-author small {
  color: var(--gray-500);
  font-size: .8rem;
}
.testimonial-stars {
  color: #ffc107;
  font-size: .85rem;
  margin-bottom: 14px;
}

/* ---------- REFERRAL FIELD ---------- */
.optional-tag {
  color: rgba(255,255,255,.35);
  font-size: .75rem;
  font-weight: 400;
}

.referral-msg {
  display: block;
  margin-top: 6px;
  font-size: .8rem;
  font-weight: 500;
  color: #f87171;
}
.referral-msg.success {
  color: #10b981;
}

/* ---------- CURSOR, PROGRESS & TRANSITIONS ---------- */
.cursor-follower {
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99997;
  transition: transform .15s ease, width .3s ease, height .3s ease, border-color .3s ease;
  transform: translate(-50%, -50%);
  display: none;
}
.cursor-follower.active {
  width: 40px;
  height: 40px;
  border-color: var(--secondary);
}

/* Particles canvas */
#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 10001;
  transform-origin: left;
  pointer-events: none;
}

/* Page transition overlay */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark);
  z-index: 99998;
  pointer-events: none;
  transform: scaleY(0);
  transform-origin: bottom;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (min-width: 993px) {
  .cursor-follower { display: block; }
}

@media (max-width: 1200px) {
  .section-title { font-size: 2.4rem; }
  .hero-text h1 { font-size: 2.8rem; }
  .hero-slide-content h1 { font-size: 2.8rem; }
}

@media (max-width: 992px) {
  .nav-menu { display: none; }
  .mobile-toggle { display: flex; }
  .mobile-menu { display: block; }
  .mobile-menu-overlay { display: block; }
  .user-info-header { display: none; }

  .hero-text h1 { font-size: 2.4rem; }
  .hero-slide-content h1 { font-size: 2.2rem; }
  .hero-features { flex-direction: column; gap: 16px; }
  .login-card { margin-left: 0; margin-right: auto; max-width: 100%; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .why-us-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-info-cards { grid-template-columns: 1fr; }
  .account-sidebar { margin-bottom: 24px; }
}

@media (max-width: 768px) {
  .section-padding { padding: 60px 0; }
  .section-title { font-size: 2rem; }
  .hero-slider { height: 80vh; min-height: 480px; }
  .hero-section,
  .register-section,
  .technician-section { padding: 90px 0 32px; }
  .hero-text h1 { font-size: 2rem; }
  .hero-slide-content h1 { font-size: 1.9rem; }
  .login-card { padding: 28px 20px; }
  .register-card { padding: 28px 20px; }
  .register-card .form-row { grid-template-columns: 1fr; }
  .technician-form-card { padding: 28px 20px; }
  .technician-form-card form > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  .modal-box { padding: 28px 20px; max-width: 100%; }
  .contact-form-card { padding: 28px 20px; }
  .amc-form-card { padding: 28px 20px; }
  .product-entry { padding: 20px 16px; }
  .account-content { padding: 24px 16px; }
  .page-header { padding: 120px 0 40px; }
  .page-header h1 { font-size: 2rem; }
  .cta-section h2 { font-size: 1.8rem; }
  .why-us-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .data-table { font-size: .85rem; }
  .data-table thead th,
  .data-table tbody td { padding: 10px 12px; }
  .hero-cta,
  .hero-slide-content > div { width: 100%; }
  .btn-primary-custom,
  .btn-outline-custom { width: 100%; max-width: 100%; }
  .booking-info { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .booking-footer { justify-content: center; }
  .booking-amount { width: 100%; text-align: center; }
  .amc-card-header { padding: 14px; gap: 12px; }
  .amc-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
  .amc-services { padding: 12px; }
  .amc-service-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 576px) {
  .service-card-img { aspect-ratio: 16 / 9; }
  .hero-text h1 { font-size: 1.7rem; }
  .hero-slide-content h1 { font-size: 1.7rem; }
  .section-title { font-size: 1.7rem; }
  .stats-grid { grid-template-columns: 1fr; gap: 16px; }
  .gadgets-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gadget-card { padding: 20px 10px; }
  .btn-group { flex-direction: column; align-items: stretch; }
  .services-grid,
  .products-grid { grid-template-columns: 1fr; }
  .hero-slider-controls { bottom: 20px; }
  .stat-number { font-size: 1.8rem; }
  .register-card h2,
  .technician-form-card h2 { font-size: 1.5rem; }
  .login-card h3 { font-size: 1.35rem; }
}

/* Pixel-perfect down to 320px */
@media (max-width: 375px) {
  .section-title { font-size: 1.45rem; }
  .section-subtitle { font-size: .95rem; }
  .section-badge { font-size: .72rem; padding: 5px 12px; }
  .hero-text h1 { font-size: 1.45rem; }
  .hero-text p { font-size: .95rem; margin-bottom: 24px; }
  .hero-slide-content h1 { font-size: 1.4rem; }
  .hero-slide-content p { font-size: .95rem; }
  .hero-slider { min-height: 420px; }
  .login-card,
  .register-card,
  .technician-form-card {
    padding: 20px 14px;
    border-radius: 16px;
  }
  .modal-box { padding: 22px 14px; border-radius: 16px; }
  .page-header h1 { font-size: 1.5rem; }
  .page-header p { font-size: .9rem; }
  .cta-section { padding: 48px 0; }
  .cta-section h2 { font-size: 1.4rem; }
  .cta-section p { font-size: .92rem; }
  .gadgets-grid { grid-template-columns: 1fr; }
  .gadget-counter input { width: 48px; min-width: 48px; }
  .btn-primary-custom,
  .btn-outline-custom,
  .btn-white-custom {
    padding: 12px 18px;
    font-size: .88rem;
  }
  .logo-text { font-size: 1.2rem; }
  .logo-icon { width: 36px; height: 36px; font-size: 1rem; }
  .account-content h3 { font-size: 1.25rem; }
  .why-us-card { padding: 24px 18px; }
  .testimonial-card { padding: 24px 18px; }
  .contact-form-card,
  .amc-form-card { padding: 20px 14px; }
  .service-card-body,
  .product-card-body { padding: 16px; }
  .service-card-body .service-price,
  .product-card-body .product-price { font-size: 1.15rem; }
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px 14px;
    font-size: .9rem;
  }
  .mobile-menu {
    width: min(280px, 88vw);
    padding: 72px 20px 24px;
  }
  .footer-bottom p { font-size: .78rem; padding: 0 8px; }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 58px;
    height: 58px;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    z-index: 9999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background: #1ebe5d;
    color: #fff;
    transform: scale(1.1);
}

/* Mobile */
@media(max-width: 576px) {
    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 29px;
        bottom: 20px;
        right: 18px;
    }
}