/* ============================================================
   General Handyman Group – Premium CSS Design System
   ============================================================ */

/* ------ CSS Variables ------ */
:root {
  --primary: #1E3A8A;
  --primary-light: #2D55C8;
  --primary-dark: #152B6B;
  --accent: #F59E0B;
  --accent-light: #FCD34D;
  --success: #10B981;
  --danger: #EF4444;
  --bg: #0F172A;
  --bg-card: #1E293B;
  --bg-card2: #263347;
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 150, 255, 0.6);
  --glass: rgba(30, 41, 59, 0.7);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
  --transition: 0.25s ease;
  --font-main: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
}

/* ------ Reset & Base ------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ------ Scrollbar ------ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 10px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  transition: var(--transition);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.nav-logo {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.nav-title {
  display: flex;
  flex-direction: column;
}

.nav-company {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.2;
}

.nav-tagline {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.nav-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-btn.active {
  color: var(--accent);
  background: rgba(245, 158, 11, 0.1);
}

.nav-btn-cta {
  background: var(--accent) !important;
  color: #0F172A !important;
  font-weight: 700;
  padding: 8px 20px !important;
}

.nav-btn-cta:hover {
  background: var(--accent-light) !important;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0 16px;
  border-top: 1px solid var(--border);
}

.mobile-menu button {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 8px;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-menu button:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 50%, rgba(30, 58, 138, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(245, 158, 11, 0.12) 0%, transparent 50%),
    var(--bg);
  padding: 100px 1.5rem 60px;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float 8s ease-in-out infinite;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: var(--primary-light);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  top: 20%;
  right: -50px;
  animation-delay: 3s;
}

.shape-3 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  bottom: -100px;
  left: 40%;
  animation-delay: 6s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) scale(1);
  }

  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

.hero-content {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 60px rgba(30, 58, 138, 0.6), 0 0 120px rgba(245, 158, 11, 0.15);
  flex-shrink: 0;
  animation: logoGlow 4s ease-in-out infinite;
}

@keyframes logoGlow {

  0%,
  100% {
    box-shadow: 0 0 60px rgba(30, 58, 138, 0.6), 0 0 120px rgba(245, 158, 11, 0.15);
  }

  50% {
    box-shadow: 0 0 80px rgba(45, 85, 200, 0.8), 0 0 150px rgba(245, 158, 11, 0.25);
  }
}

.hero-text {
  flex: 1;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  border: none;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(45, 85, 200, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(45, 85, 200, 0.6);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-full {
  width: 100%;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 26px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-outline-sm {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline-sm:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
}

.btn-danger {
  border-color: rgba(239, 68, 68, 0.4);
  color: var(--danger);
}

.btn-danger:hover {
  border-color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

.btn-success {
  background: linear-gradient(135deg, #059669, var(--success));
  color: #fff;
  border: none;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-sm {
  padding: 7px 16px !important;
  font-size: 0.82rem !important;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   VIEWS
   ============================================================ */
.view {
  padding: 100px 1.5rem 60px;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.view-header {
  text-align: center;
  margin-bottom: 40px;
}

.view-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff, var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.view-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 36px;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-main);
}

.filter-btn:hover {
  border-color: var(--primary-light);
  color: var(--text);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 15px rgba(45, 85, 200, 0.4);
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), transparent);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  border-color: var(--primary-light);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card.selected {
  border-color: var(--accent);
  background: rgba(245, 158, 11, 0.05);
}

.service-card.selected::after {
  content: '✓';
  position: absolute;
  top: 12px;
  right: 14px;
  width: 26px;
  height: 26px;
  background: var(--accent);
  color: #0F172A;
  font-weight: 800;
  font-size: 0.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  display: grid;
  place-items: center;
}

.sc-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.sc-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.sc-info {
  flex: 1;
}

.sc-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.sc-category {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sc-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.sc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sc-price {
  display: flex;
  flex-direction: column;
}

.sc-price-val {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}

.sc-price-unit {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.sc-add-btn {
  background: rgba(245, 158, 11, 0.1);
  border: 1.5px solid rgba(245, 158, 11, 0.3);
  color: var(--accent);
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-main);
}

.sc-add-btn:hover {
  background: var(--accent);
  color: #0F172A;
}

/* ── Full-width "Book This Service" button ── */
.sc-book-btn-main {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--accent), #D97706);
  color: #0F172A;
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.3px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.30);
  position: relative;
  z-index: 1;
}

.sc-book-btn-main:hover {
  background: linear-gradient(135deg, #FCD34D, var(--accent));
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.55);
  transform: translateY(-2px);
  letter-spacing: 1px;
}

.sc-book-btn-main:active {
  transform: translateY(0);
}

/* Make the whole card show a gold top-border on hover */
.service-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  border-top: 2px solid rgba(245, 158, 11, 0.6);
}

.sc-min-hours {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 4px;
}


/* Estimate Panel */
.estimate-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 16px 1.5rem;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.estimate-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.estimate-inner h3 {
  font-family: var(--font-display);
  white-space: nowrap;
}

#estimate-items {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
}

.estimate-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.estimate-item span {
  color: var(--accent);
  font-weight: 600;
  margin-left: 6px;
}

.estimate-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  white-space: nowrap;
  font-size: 0.8rem;
  color: var(--text-muted);
}

#estimate-total-amount {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--success);
}

.estimate-note {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ============================================================
   BOOKING
   ============================================================ */
.booking-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.booking-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.form-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  margin: 24px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.form-section-title:first-child {
  margin-top: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 0.95rem;
  padding: 11px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(45, 85, 200, 0.2);
}

.form-group select option {
  background: var(--bg-card);
}

.form-group textarea {
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.payment-note {
  font-size: 0.82rem;
  color: var(--text-dim);
  background: rgba(45, 85, 200, 0.08);
  border: 1px solid rgba(45, 85, 200, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.card-input-wrap {
  position: relative;
}

.card-input-wrap input {
  width: 100%;
  padding-right: 50px !important;
}

.card-type-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
}

.booking-estimate-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 20px 0;
  font-weight: 600;
}

.booking-estimate-preview span:last-child {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--success);
  font-weight: 800;
}

.booking-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.sidebar-card h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 14px;
  font-size: 1rem;
}

.sidebar-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 4px;
}

.benefit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.benefit-list li {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   TECHNICIAN PANEL
   ============================================================ */
.tech-login-wrap {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 1.5rem 60px;
}

.tech-login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
}

.tech-login-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  margin-bottom: 20px;
}

.tech-login-card h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.tech-login-card>p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.tech-login-card .form-group {
  text-align: left;
}

.login-hint {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 16px;
}

/* Dashboard */
#tech-dashboard {
  padding: 100px 1.5rem 60px;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeInUp 0.4s ease;
}

.tech-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.tech-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.tech-header p {
  color: var(--text-muted);
}

.tech-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.tech-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.tech-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.tech-stat-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-3px);
}

.tsc-icon {
  font-size: 2rem;
}

.tsc-val {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}

.tsc-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.job-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: var(--bg-card);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
  width: fit-content;
}

.job-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.job-tab:hover {
  color: var(--text);
}

.job-tab.active {
  background: var(--primary);
  color: #fff;
}

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition);
  cursor: pointer;
}

.job-card:hover {
  border-color: var(--primary-light);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.job-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 0 8px currentColor;
}

.job-status.active {
  background: var(--accent);
  color: var(--accent);
}

.job-status.in-progress {
  background: var(--primary-light);
  color: var(--primary-light);
}

.job-status.completed {
  background: var(--success);
  color: var(--success);
}

.job-status.billed {
  background: var(--text-dim);
  color: var(--text-dim);
}

.job-info {
  flex: 1;
}

.job-name {
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.job-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.job-meta-item {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.job-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.job-amount {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
}

.job-badge {
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-active {
  background: rgba(45, 85, 200, 0.15);
  color: #7FA8FF;
  border: 1px solid rgba(45, 85, 200, 0.3);
}

.badge-completed {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-billed {
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-dim);
  border: 1px solid rgba(100, 116, 139, 0.3);
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.3s ease;
}

.modal-sm {
  max-width: 380px;
  text-align: center;
}

.modal-payment {
  max-width: 540px;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.success-anim {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: pop 0.4s ease;
}

@keyframes pop {
  0% {
    transform: scale(0);
  }

  80% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

.modal-sm h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.modal-sm p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

/* Job Detail in Modal */
.job-detail-header {
  margin-bottom: 24px;
}

.job-detail-header h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.job-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.jd-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.jd-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.jd-value {
  font-weight: 600;
  font-size: 0.95rem;
}

.timer-section {
  background: rgba(45, 85, 200, 0.08);
  border: 1px solid rgba(45, 85, 200, 0.2);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  text-align: center;
}

.timer-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.timer-display {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-light);
  margin-bottom: 14px;
}

.timer-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.billing-summary {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.bs-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.bs-row:last-child {
  border-bottom: none;
}

.bs-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.bs-value {
  font-weight: 600;
}

.bs-total {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--success);
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Payment Form in Modal */
.payment-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.payment-header .ph-icon {
  font-size: 2.2rem;
}

.payment-header h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
}

.payment-header p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.payment-amount-display {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  text-align: center;
}

.pad-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.pad-amount {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
}

/* Bank Account Box */
.bank-account-box {
  background: rgba(249, 115, 22, 0.07);
  border: 1.5px solid rgba(249, 115, 22, 0.35);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  animation: fadeInUp 0.3s ease;
}

.bab-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #F97316;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.bab-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.bab-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.bab-value {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
}

.bab-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  border-left: 3px solid #F97316;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid var(--border);
  padding: 40px 1.5rem;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.footer-info {
  flex: 1;
}

.footer-info p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

.footer-info strong {
  color: var(--text);
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.78rem;
  width: 100%;
  margin-top: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .hero-logo {
    width: 160px;
    height: 160px;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .booking-layout {
    grid-template-columns: 1fr;
  }

  .booking-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tech-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu.open {
    display: flex;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .tech-stats {
    grid-template-columns: 1fr 1fr;
  }

  .job-detail-grid {
    grid-template-columns: 1fr;
  }

  .booking-sidebar {
    grid-template-columns: 1fr;
  }

  .estimate-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal {
    padding: 24px;
  }

  .tech-login-card {
    padding: 32px 24px;
  }

  .booking-form-card {
    padding: 24px;
  }
}

/* ============================================================
   DEPOSIT / PAYMENT ACCOUNT CARD
   ============================================================ */
.deposit-card {
  border-color: rgba(16, 185, 129, 0.3) !important;
  background: rgba(16, 185, 129, 0.04) !important;
}

.deposit-card h4 {
  color: var(--success) !important;
}

.deposit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  gap: 8px;
}

.deposit-row:last-of-type {
  border-bottom: none;
}

.deposit-label {
  font-size: 0.74rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.deposit-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

.deposit-acct {
  cursor: pointer;
  color: var(--accent) !important;
  font-family: monospace;
  font-size: 0.9rem !important;
  letter-spacing: 1px;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.deposit-acct:hover {
  opacity: 0.75;
}

.copy-hint {
  font-size: 0.75rem;
  opacity: 0.6;
}

.deposit-divider {
  height: 1px;
  background: rgba(16, 185, 129, 0.2);
  margin: 10px 0;
}

.deposit-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(16, 185, 129, 0.08);
  border-radius: 6px;
  padding: 8px 10px;
  margin-top: 10px;
  line-height: 1.5;
  border-left: 3px solid var(--success);
}

/* ============================================================
   SERVICE CARD: BOOK NOW BUTTON
   ============================================================ */
.sc-btn-group {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.sc-book-btn {
  background: linear-gradient(135deg, var(--accent), #E8870A);
  color: #0F172A;
  border: none;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.sc-book-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.5);
}

/* ============================================================
   ADDRESS AUTOCOMPLETE + MAP
   ============================================================ */
.address-map-group {
  position: relative;
}

.address-input-wrap {
  display: flex;
  gap: 8px;
}

.address-input-wrap input {
  flex: 1;
}

.geo-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  width: 44px;
  min-width: 44px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.geo-btn:hover {
  background: var(--primary-light);
  transform: scale(1.05);
}

.geo-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.address-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100%);
  z-index: 500;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.addr-suggestion {
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.addr-suggestion:last-child {
  border-bottom: none;
}

.addr-suggestion:hover {
  background: rgba(45, 85, 200, 0.15);
  color: var(--text);
}

.booking-map {
  width: 100%;
  height: 240px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  animation: fadeInUp 0.3s ease;
}

/* ============================================================
   PHOTO UPLOAD
   ============================================================ */
.photo-upload-area {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.02);
  margin-top: 8px;
}

.photo-upload-area:hover {
  border-color: var(--accent);
  background: rgba(245, 158, 11, 0.04);
}

.pua-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.pua-text {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 4px;
}

.pua-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.photo-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform var(--transition);
}

.photo-thumb img:hover {
  transform: scale(1.05);
}

.photo-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.7rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.photo-remove-btn:hover {
  background: var(--danger);
}

/* ============================================================
   CHAT LAYOUT
   ============================================================ */
.chat-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 600px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.chat-sidebar {
  background: var(--bg-card2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.chat-sidebar-title {
  padding: 18px 16px 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--border);
}

.chat-no-jobs {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.chat-no-jobs span {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.chat-job-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}

.chat-job-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.chat-job-item.active {
  background: rgba(45, 85, 200, 0.12);
  border-left: 3px solid var(--primary-light);
}

.cji-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.cji-info {
  flex: 1;
  min-width: 0;
}

.cji-name {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cji-service {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cji-last {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-unread-badge {
  background: var(--danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  padding: 0 5px;
}

/* Chat Main Panel */
.chat-main {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 600px;
}

.chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-align: center;
  padding: 40px;
}

.chat-active {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 600px;
}

.chat-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-tech-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.chat-tech-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.chat-tech-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chat-call-btn {
  white-space: nowrap;
  text-decoration: none;
  font-size: 0.8rem !important;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-welcome {
  text-align: center;
  color: var(--text-muted);
  margin: auto;
  padding: 40px 20px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.chat-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  animation: fadeInUp 0.2s ease;
}

.chat-msg-client {
  flex-direction: row-reverse;
}

.chat-msg-tech {
  flex-direction: row;
}

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.msg-avatar-client {
  background: rgba(45, 85, 200, 0.2);
}

.msg-bubble {
  max-width: 70%;
  border-radius: 16px;
  padding: 10px 14px;
  position: relative;
}

.bubble-client {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  border-bottom-right-radius: 4px;
}

.bubble-tech {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.msg-text {
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
}

.msg-photo {
  max-width: 220px;
  width: 100%;
  border-radius: 10px;
  margin-top: 4px;
  cursor: pointer;
  transition: opacity var(--transition);
}

.msg-photo:hover {
  opacity: 0.9;
}

.msg-time {
  font-size: 0.68rem;
  opacity: 0.6;
  margin-top: 4px;
  text-align: right;
}

.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
}

.chat-photo-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.chat-photo-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chat-text-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 0.9rem;
  padding: 9px 16px;
  outline: none;
  transition: border-color var(--transition);
}

.chat-text-input:focus {
  border-color: var(--primary-light);
}

@media (max-width: 900px) {
  .chat-layout {
    grid-template-columns: 240px 1fr;
  }
}

@media (max-width: 640px) {
  .chat-layout {
    grid-template-columns: 1fr;
  }

  .chat-sidebar {
    max-height: 200px;
    overflow-y: auto;
  }

  .chat-active {
    height: 450px;
  }

  .sc-btn-group {
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }

  .sc-book-btn,
  .sc-add-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .tech-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-logo {
    width: 120px;
    height: 120px;
  }
}

/* ============================================================
   CHARGE CONFIRMATION MODAL
   ============================================================ */
.pay-confirm-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.pay-confirm-icon {
  font-size: 2.2rem;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Breakdown table */
.pay-breakdown {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 16px;
}

.pb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
}

.pb-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pb-label {
  color: var(--text-muted);
}

.pb-val {
  font-weight: 600;
}

.pb-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0 6px;
}

.pb-row-total {
  padding-top: 10px;
}

.pb-val-total {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
}

/* Tip row */
.pay-tip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

/* Total box */
.pay-total-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.06));
  border: 1.5px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
}

.ptb-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.ptb-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--success);
}

/* Card on file display */
.pay-card-on-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(45, 85, 200, 0.08);
  border: 1px solid rgba(45, 85, 200, 0.25);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 18px;
}

.pcof-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pcof-icon {
  font-size: 1.6rem;
}

.pcof-name {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.pcof-num {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: monospace;
  letter-spacing: 1px;
}

.pcof-badge {
  background: rgba(45, 85, 200, 0.2);
  color: #7FA8FF;
  border: 1px solid rgba(45, 85, 200, 0.3);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Big charge button */
.pay-charge-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #059669, var(--success));
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
  letter-spacing: 0.3px;
}

.pay-charge-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.55);
}

.pay-charge-btn:active {
  transform: translateY(0);
}

/* ============================================================
   STRIPE CARD ELEMENT
   ============================================================ */
.stripe-card-field {
  background: #1E293B;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 14px;
  transition: border-color var(--transition);
  min-height: 46px;
}

.stripe-card-field:focus-within {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(45, 85, 200, 0.15);
}

.stripe-card-error {
  color: var(--danger);
  font-size: 0.82rem;
  margin-top: 6px;
  min-height: 18px;
}

.stripe-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(99, 91, 255, 0.12);
  color: #9B8FFF;
  border: 1px solid rgba(99, 91, 255, 0.25);
  border-radius: 20px;
  padding: 2px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 8px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.stripe-info-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 8px;
  line-height: 1.5;
}

/* ============================================================
   LOGO SPIN — Horizontal 360° every 7 seconds
   + Yellow glow flash at mid-spin
   + Higher brightness to reveal logo details
   ============================================================ */

/* Wrapper needs perspective so rotateY looks 3D */
.hero-logo-wrap,
.nav-logo-wrap {
  perspective: 600px;
  display: inline-block;
}

@keyframes logo-spin-horizontal {

  /* REST: logo is bright and sharp */
  0% {
    transform: rotateY(0deg);
    filter: brightness(1.35) drop-shadow(0 0 6px rgba(245, 158, 11, 0.20));
  }

  /* MID-SPIN at 90° — yellow flash peaks as logo faces sideways */
  8.5% {
    transform: rotateY(90deg);
    filter: brightness(1.6) drop-shadow(0 0 22px rgba(245, 158, 11, 0.70)) drop-shadow(0 0 40px rgba(245, 158, 11, 0.35));
  }

  /* FULL 180 — back face, glow softens */
  12% {
    transform: rotateY(180deg);
    filter: brightness(1.35) drop-shadow(0 0 8px rgba(245, 158, 11, 0.25));
  }

  /* SECOND 90° flash as it comes back */
  15.5% {
    transform: rotateY(270deg);
    filter: brightness(1.6) drop-shadow(0 0 22px rgba(245, 158, 11, 0.70)) drop-shadow(0 0 40px rgba(245, 158, 11, 0.35));
  }

  /* COMPLETE — back to rest position */
  19% {
    transform: rotateY(360deg);
    filter: brightness(1.35) drop-shadow(0 0 6px rgba(245, 158, 11, 0.20));
  }

  /* HOLD still for the remaining ~5.7s */
  100% {
    transform: rotateY(360deg);
    filter: brightness(1.35) drop-shadow(0 0 6px rgba(245, 158, 11, 0.20));
  }
}

.hero-logo,
.nav-logo,
.footer-logo,
.tech-login-logo {
  animation: logo-spin-horizontal 7s ease-in-out infinite;
  filter: brightness(1.35) drop-shadow(0 0 6px rgba(245, 158, 11, 0.20));
  /* Ensure 3D perspective for rotateY */
  transform-style: preserve-3d;
  backface-visibility: visible;
}

/* ============================================================
   CARD INPUT FIELDS & PAYMENT SECURITY BANNER
   ============================================================ */
.payment-security-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.04));
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  font-size: 0.85rem;
  color: #6EE7B7;
  margin-bottom: 18px;
  line-height: 1.5;
}

.payment-security-banner strong {
  color: #34D399;
}

.card-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.card-input-wrap input {
  flex: 1;
  width: 100%;
  padding-right: 72px;
}

.card-brand-icon {
  position: absolute;
  right: 12px;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--text-muted);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 0.3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 2px 6px;
}

/* ==============================================================
   LOGO — Horizontal LEFT-TO-RIGHT 360deg spin (rotateY) 
   Yellow glow: subtle/dimmed, not blinding
   ============================================================== */

/* rotateY = coin-flip horizontal, left side goes away first */
@keyframes logo-spin-ltr {
  0% {
    transform: rotateY(0deg);
    filter: brightness(1.1) drop-shadow(0 0 5px rgba(255, 215, 0, 0.20));
  }

  25% {
    transform: rotateY(90deg);
    filter: brightness(1.25) drop-shadow(0 0 14px rgba(255, 215, 0, 0.45)) drop-shadow(0 0 28px rgba(255, 200, 0, 0.22));
  }

  50% {
    transform: rotateY(180deg);
    filter: brightness(1.1) drop-shadow(0 0 5px rgba(255, 215, 0, 0.20));
  }

  75% {
    transform: rotateY(270deg);
    filter: brightness(1.3) drop-shadow(0 0 16px rgba(255, 215, 0, 0.50)) drop-shadow(0 0 32px rgba(255, 200, 0, 0.24));
  }

  100% {
    transform: rotateY(360deg);
    filter: brightness(1.1) drop-shadow(0 0 5px rgba(255, 215, 0, 0.20));
  }
}

/* Subtle pulsing gold ring — not too bright */
@keyframes logo-glow-ring {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.28), 0 0 28px rgba(255, 215, 0, 0.12);
  }

  50% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.42), 0 0 52px rgba(255, 215, 0, 0.20);
  }
}

/* Apply spin + ring to all logo instances */
.hero-logo,
.nav-logo,
.footer-logo,
.tech-login-logo {
  animation: logo-spin-ltr 9s linear infinite, logo-glow-ring 4s ease-in-out infinite !important;
  border: 2.5px solid rgba(255, 215, 0, 0.45) !important;
  border-radius: 50% !important;
  transform-style: preserve-3d;
}

/* Parent containers need perspective for rotateY to look 3D */
.hero-logo-wrap {
  perspective: 900px;
  position: relative;
  flex-shrink: 0;
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-brand {
  perspective: 900px;
}

.footer-inner {
  perspective: 900px;
}

.tech-login-card {
  perspective: 900px;
}

/* Soft yellow sunburst behind hero logo only — reduced opacity */
.hero-logo-wrap::before {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.18) 0%, rgba(255, 200, 0, 0.06) 55%, transparent 75%);
  animation: sunburstPulse 4s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes sunburstPulse {

  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: 220px;
  height: 220px;
  object-fit: cover;
}


/* ==============================================================
   AUTO-CHARGE NOTIFICATION
   ============================================================== */
.charge-notify-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

@keyframes popIn {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.charge-notify-amount {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--success);
  margin: 8px 0;
}

.charge-notify-detail {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 16px 0;
  text-align: left;
}

.charge-notify-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.charge-notify-row:last-child {
  border-bottom: none;
}

.charge-notify-row span:first-child {
  color: var(--text-muted);
}

.charge-notify-row span:last-child {
  font-weight: 600;
}

/* ==============================================================
   TECHNICIAN REGISTRATION
   ============================================================== */
.register-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 720px;
  margin: 0 auto;
}

.register-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.pay-cap-notice {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.84rem;
  color: #FCD34D;
  margin-bottom: 20px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.skill-chip {
  padding: 7px 14px;
  background: var(--bg-card2);
  border: 1.5px solid var(--border);
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  font-family: var(--font-main);
}

.skill-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.skill-chip.active {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}

/* ==============================================================
   ADMIN PANEL
   ============================================================== */
.prices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.price-edit-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.price-edit-card label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.price-edit-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.price-edit-row input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-family: var(--font-main);
  font-size: 0.88rem;
}

.price-save-btn {
  padding: 8px 14px;
  background: var(--accent);
  color: #0F172A;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.price-save-btn:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.admin-techs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}

.admin-techs-table th {
  background: var(--bg-card2);
  color: var(--text-muted);
  text-align: left;
  padding: 10px 12px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-techs-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-hours-inp {
  width: 70px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 5px 8px;
  font-family: var(--font-main);
  font-size: 0.85rem;
}

/* ==============================================================
   AGENDA / GOOGLE CALENDAR
   ============================================================== */
.agenda-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 28px;
}

.agenda-panel h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.gcal-link {
  font-size: 0.75rem;
  color: #4285F4;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(66, 133, 244, 0.4);
  border-radius: 20px;
  padding: 4px 10px;
  transition: var(--transition);
}

.gcal-link:hover {
  background: rgba(66, 133, 244, 0.1);
}

.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.agenda-item {
  background: var(--bg-card2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-left: 3px solid var(--accent);
}

.agenda-item.past {
  border-left-color: var(--text-dim);
  opacity: 0.65;
}

.agenda-item-title {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 3px;
}

.agenda-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.add-to-gcal-btn {
  background: transparent;
  border: 1px solid rgba(66, 133, 244, 0.5);
  color: #4285F4;
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: var(--font-main);
}

.add-to-gcal-btn:hover {
  background: rgba(66, 133, 244, 0.12);
}

.agenda-add-form {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.agenda-add-form h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Join-as-Tech nav button */
.nav-btn-join {
  border: 1.5px solid rgba(245, 158, 11, 0.5) !important;
  color: var(--accent) !important;
}

.nav-btn-join:hover {
  background: rgba(245, 158, 11, 0.1) !important;
}

/* ── Schedule Day Chips ──────────────────────────────────────── */
.schedule-day-chip {
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card2);
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: all 0.2s;
  text-align: center;
  user-select: none;
}

.schedule-day-chip.selected {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}

/* ── Background Check Status Box ────────────────────────────── */
#bgcheck-status {
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  border-left: 3px solid #818CF8;
  transition: all 0.4s;
}

/* ── Tech Portal Rate Banner animation ───────────────────────── */
#tech-portal-rate-banner {
  animation: popIn 0.5s cubic-bezier(.34, 1.56, .64, 1);
}

#portal-rate-display {
  letter-spacing: -0.02em;
}

/* ── Admin Tech Detail Modal ─────────────────────────────────── */
#modal-tech-detail .modal {
  max-width: 640px;
}

#tdm-avatar {
  font-family: var(--font-display);
}