* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold: #D4AF37;
  --gold-light: #E8C766;
  --gold-dark: #B8941F;
  --black: #0A0A0A;
  --dark: #141414;
  --dark-2: #1A1A1A;
  --dark-3: #202020;
  --gray: #B0B0B0;
  --white: #F5F5F5;
  --muted: #999;
  --green: #31c48d;
  --red: #e05252;
  --orange: #e7a33e;
  --border: rgba(255,255,255,.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', 'Cairo', Tahoma, Arial, sans-serif;
  background: var(--black);
  color: var(--white);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: rgba(10,10,10,.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  font-family: 'Cairo', sans-serif;
  font-size: 26px;
  font-weight: 900;
}

.brand span,
.auth-logo span,
.eyebrow,
.section-title span,
.gold {
  background: linear-gradient(135deg, #E8C766 0%, #D4AF37 50%, #B8941F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar nav a {
  color: var(--gray);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s;
  padding: 8px 16px;
  border-radius: 8px;
}

.topbar nav a:hover,
.topbar nav a.active {
  color: var(--white);
  background: rgba(212,175,55,0.15);
}

.topbar nav a.btn-nav {
  background: linear-gradient(135deg, #E8C766 0%, #D4AF37 100%);
  color: var(--black);
  padding: 10px 22px;
  font-weight: 800;
}

.topbar nav a.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212,175,55,0.4);
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 80px 24px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease-in-out, transform 7s ease-out;
  transform: scale(1.08);
}
.hero-bg .slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(10,10,10,0.88) 0%,
    rgba(10,10,10,0.7) 45%,
    rgba(10,10,10,0.95) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  width: 100%;
  animation: fadeUp 1s ease-out;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1.5px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.7);
}
.hero h1 .gold {
  background: linear-gradient(135deg, #E8C766 0%, #D4AF37 50%, #B8941F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(16px, 2vw, 21px);
  color: var(--white);
  font-weight: 600;
  margin-bottom: 0;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 15px rgba(0,0,0,0.8);
}

.rotating-text {
  position: relative;
  width: 100%;
  min-height: 70px;
  margin: 8px auto 35px;
  max-width: 820px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rotating-text p {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(18px, 2.3vw, 26px);
  font-weight: 700;
  line-height: 1.75;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  position: absolute;
  padding: 0 12px;
  text-shadow: 0 3px 25px rgba(0,0,0,0.9), 0 1px 6px rgba(0,0,0,0.9);
  letter-spacing: -0.3px;
}
.rotating-text p.active {
  opacity: 1;
  position: relative;
}
.rotating-text p .gold {
  background: linear-gradient(135deg, #E8C766 0%, #D4AF37 50%, #B8941F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 660px;
  margin: 0 auto;
}

.section {
  padding: 100px 6%;
}

.section-title {
  margin-bottom: 35px;
}

.section-title h2 {
  font-size: 38px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 15px;
}

.category-card {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 30px 15px;
  text-align: center;
  transition: .3s;
}

.category-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
}

.category-card div {
  font-size: 42px;
  margin-bottom: 15px;
}

.category-card h3 {
  font-size: 15px;
}

.container {
  width: min(1350px,92%);
  margin: auto;
  padding: 50px 0;
}

.page-header,
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 35px;
}

.page-header h1,
.dashboard-header h1 {
  font-size: 35px;
}

.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
  margin-bottom: 30px;
}

input,
select,
textarea {
  width: 100%;
  background: #111;
  border: 1px solid var(--border);
  color: var(--white);
  border-radius: 9px;
  padding: 14px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
}

textarea {
  resize: vertical;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}

.vehicle-card {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: .3s;
}

.vehicle-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212,175,55,.5);
}

.vehicle-image {
  height: 240px;
  position: relative;
}

.vehicle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--green);
  color: #06140f;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
}

.vehicle-info {
  padding: 20px;
}

.vehicle-type {
  color: var(--gold);
  font-size: 13px;
  margin-bottom: 7px;
}

.vehicle-info h2 {
  margin-bottom: 15px;
}

.vehicle-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.vehicle-meta span {
  background: #202020;
  color: #aaa;
  padding: 6px 9px;
  border-radius: 6px;
  font-size: 12px;
}

.vehicle-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
}

.vehicle-bottom strong {
  color: var(--gold-light);
}

.vehicle-bottom span {
  color: #999;
  font-size: 12px;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;

  background:
    linear-gradient(rgba(8,8,8,.92),rgba(8,8,8,.98)),
    url("https://images.unsplash.com/photo-1494976388531-d1058494cdd8?q=85&w=1800")
    center/cover;
}

.auth-box {
  width: min(480px,100%);
  background: rgba(18,18,18,.97);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}

.auth-box.wide {
  width: min(750px,100%);
}

.auth-logo {
  text-align: center;
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 30px;
}

.auth-box h1 {
  font-size: 30px;
  margin-bottom: 10px;
}

.muted,
small {
  color: var(--muted);
}

.back-link {
  color: var(--muted);
  display: inline-block;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #ccc;
  font-size: 14px;
  font-weight: 700;
}

.form-group small {
  display: block;
  margin-top: 7px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.message {
  min-height: 25px;
  color: var(--red);
  margin-bottom: 10px;
}

.auth-footer {
  text-align: center;
  margin-top: 25px;
  color: var(--muted);
}

.auth-footer a {
  color: var(--gold);
}

.dashboard-body {
  display: flex;
  background: #0b0b0b;
}

.sidebar {
  width: 260px;
  min-height: 100vh;
  background: #101010;
  border-left: 1px solid var(--border);
  padding: 30px 20px;
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
}

.profile-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 35px 0;
}

.profile-mini small {
  display: block;
  margin-top: 5px;
}

.avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg,var(--gold-light),var(--gold));
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.side-nav {
  display: grid;
  gap: 5px;
}

.side-nav a {
  padding: 13px;
  border-radius: 8px;
  color: #999;
  transition: .2s;
}

.side-nav a:hover,
.side-nav a.active {
  background: rgba(212,175,55,.1);
  color: var(--gold);
}

.logout {
  position: absolute;
  bottom: 30px;
  right: 20px;
  left: 20px;
  border: 1px solid var(--border);
  padding: 12px;
  text-align: center;
  color: #aaa;
  border-radius: 8px;
}

.dashboard-main {
  width: calc(100% - 260px);
  margin-right: 260px;
  padding: 45px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.stat-card {
  background: var(--dark);
  border: 1px solid var(--border);
  padding: 25px;
  border-radius: 14px;
}

.stat-card span {
  display: block;
  color: #888;
  font-size: 13px;
  margin-bottom: 12px;
}

.stat-card strong {
  font-size: 25px;
  color: var(--gold-light);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.panel {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 25px;
  margin-bottom: 20px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.panel-header a {
  color: var(--gold);
  font-size: 13px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 10px;
  border-bottom: 1px solid var(--border);
  text-align: right;
}

th {
  color: #888;
  font-size: 13px;
}

td {
  color: #ddd;
}

td a {
  color: var(--gold);
}

.status {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
}

.status.success {
  color: var(--green);
  background: rgba(49,196,141,.1);
}

.status.warning {
  color: var(--orange);
  background: rgba(231,163,62,.1);
}

.quick-actions {
  display: grid;
  gap: 10px;
}





.details-gallery {
  margin-bottom: 35px;
}

.main-photo {
  height: 560px;
  border-radius: 20px;
  overflow: hidden;
  background: #111;
}

.main-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.thumbs img {
  width: 90px;
  height: 65px;
  object-fit: cover;
  border-radius: 7px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.thumbs img:hover {
  border-color: var(--gold);
  transform: scale(1.05);
}

.thumbs img.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212,175,55,0.3);
}

.details-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.details-layout h1 {
  font-size: 48px;
  margin-bottom: 15px;
}

.price-large {
  font-size: 28px;
  color: var(--gold-light);
  font-weight: 900;
  margin-bottom: 30px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin-bottom: 25px;
}

.spec-grid div {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 17px;
}

.spec-grid span {
  display: block;
  color: #777;
  font-size: 12px;
  margin-bottom: 8px;
}

.content-card {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 25px;
  margin-top: 20px;
}

.content-card h2 {
  margin-bottom: 15px;
}

.content-card p {
  color: #aaa;
  line-height: 2;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.features span {
  background: #202020;
  border-radius: 20px;
  padding: 8px 13px;
  color: #ccc;
}

.seller-card {
  height: fit-content;
  background: linear-gradient(145deg,#171717,#0e0e0e);
  border: 1px solid rgba(212,175,55,.25);
  border-radius: 16px;
  padding: 25px;
  position: sticky;
  top: 100px;
}

.seller-label {
  color: var(--gold);
  font-size: 13px;
  margin-bottom: 10px;
}

.seller-card h2 {
  margin-bottom: 10px;
}

.seller-card p {
  color: #888;
  margin-bottom: 20px;
}

.seller-card .btn {
  margin-bottom: 10px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}

.service-card {
  background: var(--dark);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: 15px;
}

.service-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.service-card p {
  color: #888;
  line-height: 1.8;
  margin: 12px 0 20px;
}

.service-card strong {
  color: var(--gold-light);
}

.inspection-sidebar {
  border-left-color: rgba(80,150,255,.15);
}

@media(max-width:1000px) {

  .category-grid {
    grid-template-columns: repeat(3,1fr);
  }

  .vehicle-grid {
    grid-template-columns: repeat(2,1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2,1fr);
  }

  .dashboard-grid,
  .details-layout {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

}

@media(max-width:750px) {

  .topbar nav {
    display: none;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .category-grid,
  .vehicle-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    width: 100%;
    min-height: auto;
  }

  .dashboard-body {
    display: block;
  }

  .dashboard-main {
    width: 100%;
    margin: 0;
    padding: 25px 15px;
  }

  .side-nav {
    grid-template-columns: 1fr 1fr;
  }

  .logout {
    position: static;
    margin-top: 20px;
  }

  .form-grid,
  .stats-grid,
  .spec-grid {
    grid-template-columns: 1fr;
  }

  .main-photo {
    height: 350px;
  }

  .details-layout h1 {
    font-size: 36px;
  }

  .auth-box {
    padding: 25px 20px;
  }

  table {
    min-width: 700px;
  }

  .table-wrapper {
    overflow-x: auto;
  }

}

/* ===== PROFESSIONAL STYLES FOR INDEX.HTML ===== */

/* Features Section */
.features-section {
  background: var(--dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 35px 25px;
  text-align: center;
  transition: all 0.4s ease;
}

.feature-card:hover {
  border-color: var(--gold);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: 'Cairo', sans-serif;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--white);
}

.feature-card p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.6;
}

/* Screen Overlay (Modals) */
.screen-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--black);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.screen-overlay.active { display: flex; }

.screen-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}

.screen-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
  background: rgba(20,20,20,0.97);
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 18px;
  padding: 45px 35px;
  backdrop-filter: blur(15px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.8);
  animation: fadeUp 0.6s ease-out;
  margin: auto;
}

.screen-box h2 {
  font-family: 'Cairo', sans-serif;
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  color: var(--white);
}
.screen-box h2 .gold {
  background: linear-gradient(135deg, #E8C766 0%, #D4AF37 50%, #B8941F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.screen-box .subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 28px;
  font-weight: 500;
}

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 8px;
  font-weight: 600;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  background: rgba(10,10,10,0.85);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 8px;
  color: var(--white);
  font-size: 15px;
  font-family: 'Tajawal', sans-serif;
  outline: none;
  transition: all 0.3s;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.12);
  background: rgba(10,10,10,1);
}
.form-group select option { background: var(--dark); color: var(--white); }

.hint {
  font-size: 12px;
  color: var(--gray);
  margin-top: 6px;
}

.dynamic-field {
  display: none;
  animation: slideDown 0.35s ease-out;
}
.dynamic-field.visible {
  display: block;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-submit {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #E8C766 0%, #D4AF37 100%);
  color: var(--black);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  transition: all 0.3s;
  margin-top: 10px;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(212,175,55,0.4);
}

.divider {
  text-align: center;
  color: var(--gray);
  font-size: 13px;
  margin: 22px 0 14px;
  position: relative;
  font-weight: 500;
}
.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: rgba(212,175,55,0.2);
}
.divider::before { right: 0; }
.divider::after { left: 0; }

.btn-switch {
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  transition: all 0.3s;
}
.btn-switch:hover {
  background: var(--gold);
  color: var(--black);
}

.close-screen {
  position: absolute;
  top: 16px;
  left: 16px;
  background: transparent;
  border: none;
  color: var(--gray);
  font-size: 22px;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-screen:hover {
  color: var(--gold);
  background: rgba(212,175,55,0.1);
}

/* Responsive for new components */
@media (max-width: 1000px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero { padding: 60px 18px; }
  .rotating-text { min-height: 120px; }
  .hero-actions {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  .screen-box { padding: 35px 25px; }
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  
  .rotating-text { min-height: 160px; }
}

.suggestion-btn:hover {
  background: var(--gold) !important;
  color: var(--black) !important;
}

.message {
  min-height: 20px;
  font-size: 14px;
  margin-bottom: 10px;
}

#usernameSuggestions {
  animation: slideDown 0.3s ease-out;
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 4px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--gray);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 20px;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
  font-family: 'Tajawal', sans-serif;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #E8C766 0%, #D4AF37 100%);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
  color: var(--white);
}

.tab-btn.active::after {
  transform: scaleX(1);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== COMMENTS SECTION ===== */
.comments-section {
  margin-top: 20px;
}

.comments-section h2 {
  font-size: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.comments-count {
  color: var(--gold);
  font-weight: 700;
}

.comments-list {
  margin-bottom: 25px;
}

.comment {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  transition: all 0.3s;
}

.comment:hover {
  border-color: rgba(212,175,55,0.3);
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.comment-avatar.owner {
  background: linear-gradient(135deg, var(--green), #28a76f);
}

.comment-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.comment-author {
  font-weight: 700;
  color: var(--white);
  font-size: 14px;
}

.owner-badge {
  background: linear-gradient(135deg, #E8C766 0%, #D4AF37 100%);
  color: var(--black);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  margin-right: 8px;
}

.comment-time {
  color: var(--gray);
  font-size: 12px;
}

.comment-text {
  color: var(--white);
  line-height: 1.7;
  font-size: 15px;
  margin-right: 52px;
}

.comment-replies {
  margin-top: 15px;
  margin-right: 12px;
  padding-right: 15px;
  border-right: 2px solid var(--border);
}

.comment.reply {
  background: rgba(212,175,55,0.05);
  border-color: rgba(212,175,55,0.2);
  padding: 15px;
  margin-top: 10px;
}

.comment.reply .comment-text {
  margin-right: 0;
}

.add-comment {
  display: flex;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.add-comment .comment-avatar.current-user {
  background: linear-gradient(135deg, #6c757d, #495057);
}

.add-comment textarea {
  flex: 1;
  background: rgba(10,10,10,0.85);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 10px;
  color: var(--white);
  font-size: 14px;
  font-family: 'Tajawal', sans-serif;
  padding: 12px 16px;
  outline: none;
  resize: none;
  transition: all 0.3s;
  min-height: 80px;
}

.add-comment textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.12);
}

.add-comment .btn {
  align-self: flex-end;
  padding: 12px 24px;
  font-size: 14px;
}

/* ===== INSPECTION CENTERS PAGE ===== */
.center-filters {
    display: grid; gap: 10px; margin-top: var(--space-md);
    grid-template-columns: minmax(180px, 1fr) minmax(200px, 2fr) minmax(180px, 1fr);
  }

.center-filters input,
.center-filters select {
  padding: 12px 16px;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  font-family: 'Tajawal', sans-serif;
  outline: none;
}

.center-filters input {
  flex: 1;
  min-width: 250px;
}

.center-filters select {
  min-width: 180px;
}

.center-filters input:focus,
.center-filters select:focus {
  border-color: var(--gold);
}

.centers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.center-card {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}

.center-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.center-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.center-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.center-card:hover .center-image img {
  transform: scale(1.05);
}

.center-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
}

.center-content {
  padding: 20px;
}

.center-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.center-header h3 {
  font-size: 18px;
  font-weight: 800;
}

.center-location {
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.center-address {
  color: var(--gray);
  font-size: 13px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.center-meta {
  display: flex;
  gap: 15px;
  color: var(--gray);
  font-size: 12px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.center-services-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.service-tag {
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.2);
  color: var(--gold);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.service-tag.more {
  background: rgba(108,117,125,0.1);
  border-color: rgba(108,117,125,0.2);
  color: var(--gray);
}

.center-actions {
  display: flex;
  gap: 10px;
}

.center-actions .btn {
  flex: 1;
  padding: 10px;
  font-size: 13px;
}

/* ===== TECHNICIANS SECTION ON CENTERS PAGE ===== */
.technicians-section {
  grid-column: 1 / -1;
  width: 100%;
}

.section-divider {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  margin: 30px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-divider::before {
  content: '';
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, #E8C766 0%, #D4AF37 100%);
  border-radius: 3px;
}

.center-type-badge,
.technician-type-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, #E8C766 0%, #D4AF37 100%);
  color: var(--black);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.technician-card-main {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.technician-card-main:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.technician-image {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, var(--dark-2), var(--dark-3));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tech-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E8C766 0%, #D4AF37 100%);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 24px;
}

.technician-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.technician-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.technician-header h3 {
  font-size: 18px;
  font-weight: 800;
}

.technician-specialty {
  background: rgba(212,175,55,0.15);
  color: var(--gold);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.technician-center {
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.technician-meta {
  display: flex;
  gap: 15px;
  color: var(--gray);
  font-size: 12px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.technician-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.technician-actions .btn {
  flex: 1;
  padding: 10px;
  font-size: 13px;
}

/* ===== CENTER DETAIL PAGE ===== */
.center-detail-hero {
  position: relative;
  height: 350px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 30px;
}

.center-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.center-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.9) 100%);
  display: flex;
  align-items: flex-end;
  padding: 30px;
}

.center-hero-content {
  width: 100%;
}

.center-hero-content h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  margin-bottom: 15px;
}

.center-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--white);
}

.center-rating {
  background: linear-gradient(135deg, #E8C766 0%, #D4AF37 100%);
  color: var(--black);
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.center-rating span {
  color: rgba(0,0,0,0.7);
  font-weight: 500;
}

.center-location,
.center-hours {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}

.center-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
}

.center-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  gap: 12px;
}

.contact-icon {
  font-size: 20px;
  width: 44px;
  height: 44px;
  background: rgba(212,175,55,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--white);
}

.contact-item p {
  color: var(--gray);
  font-size: 14px;
  margin: 0;
}

.contact-item a {
  color: var(--gold);
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.contact-actions .btn {
  flex: 1;
  min-width: 180px;
}

.services-table-wrapper {
  overflow-x: auto;
}

.services-table {
  width: 100%;
  border-collapse: collapse;
}

.services-table th,
.services-table td {
  padding: 15px 12px;
  text-align: right;
  border-bottom: 1px solid var(--border);
}

.services-table th {
  color: var(--gray);
  font-size: 13px;
  font-weight: 700;
  background: var(--dark-2);
}

.services-table td {
  color: var(--white);
}

.service-icon {
  margin-left: 8px;
  font-size: 16px;
}

.services-table .btn {
  padding: 8px 16px;
  font-size: 13px;
}

.features-grid-detail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(212,175,55,0.05);
  border-radius: 8px;
  border: 1px solid rgba(212,175,55,0.1);
}

.feature-item .check {
  color: var(--green);
  font-weight: 800;
}

.technicians-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 15px;
}

.technician-card {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}

.technician-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.tech-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin: 0 auto 10px;
}

.technician-card h4 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 4px;
}

.tech-specialty {
  color: var(--gold);
  font-size: 12px;
  margin-bottom: 8px;
}

.tech-meta {
  display: flex;
  justify-content: center;
  gap: 15px;
  color: var(--gray);
  font-size: 11px;
  margin-bottom: 10px;
}

.tech-contact {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.tech-contact a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(212,175,55,0.1);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.2s;
}

.tech-contact a:hover {
  background: var(--gold);
  color: var(--black);
}

.center-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stats-card .stats-grid-detail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 15px;
}

.stat-item {
  text-align: center;
  padding: 15px;
  background: rgba(212,175,55,0.05);
  border-radius: 10px;
  border: 1px solid rgba(212,175,55,0.1);
}

.stat-item strong {
  display: block;
  font-size: 20px;
  color: var(--gold);
  margin-bottom: 4px;
}

.stat-item span {
  font-size: 11px;
  color: var(--gray);
}

.quick-contact .btn {
  margin-bottom: 10px;
}

.quick-services {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-service-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  font-family: 'Tajawal', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: right;
}

.quick-service-btn:hover {
  border-color: var(--gold);
  background: rgba(212,175,55,0.05);
}

.quick-service-btn strong {
  color: var(--gold);
}

.type-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(212,175,55,0.15);
  color: var(--gold);
}

/* ===== TECHNICIAN DETAIL ===== */
.technician-detail-hero {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  margin-bottom: 30px;
}

.tech-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 32px;
  margin: 0 auto 20px;
}

.technician-detail-hero h1 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 10px;
}

.tech-hero-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 15px;
  color: var(--gray);
  font-size: 14px;
}

.tech-specialty-badge {
  background: rgba(212,175,55,0.15);
  color: var(--gold);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

.tech-center {
  font-weight: 600;
}

.tech-rating {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
}

.technician-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
}

.technician-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.specialties-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.specialty-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.2s;
}

.specialty-item:hover {
  border-color: rgba(212,175,55,0.3);
}

.specialty-icon {
  font-size: 24px;
  width: 50px;
  height: 50px;
  background: rgba(212,175,55,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.specialty-item strong {
  display: block;
  margin-bottom: 2px;
}

.specialty-item span {
  color: var(--gray);
  font-size: 13px;
}

.specialty-price {
  color: var(--gold);
  font-weight: 800;
  font-size: 15px;
  margin-right: auto;
}

.about-section p {
  color: var(--gray);
  line-height: 1.8;
}

.technician-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quick-book p,
.center-link p,
.availability p {
  color: var(--gray);
  font-size: 14px;
}

.quick-book .btn,
.center-link .btn {
  margin-bottom: 10px;
}

.availability-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin: 15px 0;
}

.day {
  text-align: center;
  padding: 10px 4px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  background: var(--dark);
  border: 1px solid var(--border);
}

.day.available {
  background: rgba(49,196,141,0.1);
  border-color: var(--green);
  color: var(--green);
}

.day.off {
  background: rgba(224,82,82,0.1);
  border-color: var(--red);
  color: var(--red);
}

.availability-note {
  text-align: center;
  color: var(--gray);
  font-size: 12px;
  margin: 0;
}

/* ===== ADMIN DASHBOARD ===== */
.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 25px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 4px;
  flex-wrap: wrap;
}

.admin-tab-btn {
  background: transparent;
  border: none;
  color: var(--gray);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
  font-family: 'Tajawal', sans-serif;
}

.admin-tab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(135deg, #E8C766 0%, #D4AF37 100%);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.admin-tab-btn.active,
.admin-tab-btn:hover {
  color: var(--white);
}

.admin-tab-btn.active::after {
  transform: scaleX(1);
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.approval-table-wrapper {
  overflow-x: auto;
}

.approval-table {
  width: 100%;
  border-collapse: collapse;
}

.approval-table th,
.approval-table td {
  padding: 15px 12px;
  text-align: right;
  border-bottom: 1px solid var(--border);
}

.approval-table th {
  color: var(--gray);
  font-size: 13px;
  font-weight: 700;
  background: var(--dark-2);
  white-space: nowrap;
}

.approval-table td {
  color: var(--white);
  font-size: 14px;
}

.approval-table .btn {
  padding: 8px 14px;
  font-size: 12px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.detail-item {
  padding: 12px 15px;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.detail-item.full {
  grid-column: span 2;
}

.detail-item label {
  display: block;
  color: var(--gray);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.detail-item span {
  color: var(--white);
  word-break: break-word;
}

.detail-item a {
  color: var(--gold);
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.modal-actions .btn {
  min-width: 140px;
}

.admin-notification {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  padding: 15px 30px;
  border-radius: 10px;
  font-weight: 700;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s;
  font-family: 'Tajawal', sans-serif;
}

.admin-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.admin-notification.success {
  background: linear-gradient(135deg, var(--green), #28a76f);
  color: var(--black);
  box-shadow: 0 10px 30px rgba(49,196,141,0.4);
}

.admin-notification.warning {
  background: linear-gradient(135deg, var(--orange), #e78a0e);
  color: var(--black);
  box-shadow: 0 10px 30px rgba(231,163,62,0.4);
}

.admin-notification.error {
  background: linear-gradient(135deg, var(--red), #c0392b);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(224,82,82,0.4);
}

/* Responsive */
@media (max-width: 1024px) {
  .center-detail-layout,
  .technician-detail-layout {
    grid-template-columns: 1fr;
  }
  
  .center-sidebar,
  .technician-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .center-sidebar > .content-card,
  .technician-sidebar > .content-card {
    flex: 1;
    min-width: 280px;
  }
}

@media (max-width: 768px) {
  .centers-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid-detail {
    grid-template-columns: 1fr;
  }
  
  .technicians-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .center-hero-meta {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  
  .detail-grid {
    grid-template-columns: 1fr;
  }
  
  .detail-item.full {
    grid-column: span 1;
  }
  
  .availability-grid {
    grid-template-columns: repeat(7, 1fr);
  }
  
  .admin-tabs {
    gap: 4px;
  }
  
  .admin-tab-btn {
    padding: 10px 12px;
    font-size: 12px;
  }
}

/* ===== SUBSCRIPTION STYLES ===== */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.status-active {
  background: rgba(49,196,141,0.15);
  color: var(--green);
}

.status-inactive {
  background: rgba(108,117,125,0.15);
  color: var(--gray);
}

.status-expired {
  background: rgba(224,82,82,0.15);
  color: var(--red);
}

.plan-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(135deg, #E8C766 0%, #D4AF37 100%);
  color: var(--black);
}

.subscription-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-select {
  padding: 6px 10px;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--white);
  font-family: 'Tajawal', sans-serif;
  font-size: 11px;
  outline: none;
  cursor: pointer;
}

.plan-select:focus {
  border-color: var(--gold);
}

.plan-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.subscription-actions .btn {
  width: 100%;
  text-align: center;
}



/* ===== PUBLIC BROWSE + INSPECTION TABS ===== */
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .25s ease; }

.tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: var(--space-lg) 0 var(--space-md);
  border-bottom: 2px solid var(--color-border); padding-bottom: 0;
}
.tabs .tab-btn {
  background: none; border: none; cursor: pointer;
  padding: 10px 18px; font: inherit; font-weight: 700;
  color: var(--color-text-muted);
  border-bottom: 3px solid transparent;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: all .18s ease;
}
.tabs .tab-btn:hover { color: var(--color-text); background: var(--color-surface-2); }
.tabs .tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background: var(--color-surface);
}

.browse-filters {
  display: grid; gap: 10px; margin-top: var(--space-md);
  grid-template-columns: minmax(200px, 2fr) repeat(4, minmax(130px, 1fr));
}
.browse-filters input, .browse-filters select {
  padding: 11px 14px; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); background: var(--color-surface);
  color: var(--color-text); font: inherit; font-size: .95rem;
}
.browse-filters input:focus, .browse-filters select:focus {
  outline: 2px solid var(--color-primary); outline-offset: 1px;
}

.browse-summary {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: var(--space-md) 0;
  padding: 12px 16px; border-radius: var(--radius-md);
  background: var(--color-surface-2); font-weight: 700;
}
.guest-note { font-weight: 500; font-size: .9rem; color: var(--color-text-muted); }
.guest-note.is-logged { color: var(--color-success, #16a34a); }
.guest-note a { color: var(--color-primary); font-weight: 700; }

.vehicles-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.vehicle-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.vehicle-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.vehicle-image { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--color-surface-2); }
.vehicle-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vehicle-type-badge, .vehicle-source-badge {
  position: absolute; top: 10px; padding: 4px 10px;
  border-radius: var(--radius-full, 999px);
  font-size: .75rem; font-weight: 700; color: #fff;
  background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
}
.vehicle-type-badge { right: 10px; }
.vehicle-source-badge { left: 10px; background: var(--color-primary); }
.vehicle-content { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.vehicle-title { margin: 0; font-size: 1.05rem; }
.vehicle-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: .82rem; color: var(--color-text-muted); }
.vehicle-location { font-size: .85rem; color: var(--color-text-muted); }
.vehicle-price { font-size: 1.25rem; font-weight: 800; color: var(--color-primary); margin-top: auto; }
.vehicle-open { margin-top: 8px; }

.inspection-summary { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--space-md); }
.chip {
  padding: 6px 14px; border-radius: var(--radius-full, 999px);
  background: var(--color-surface-2); border: 1px solid var(--color-border);
  font-size: .85rem; font-weight: 700;
}
.chip-center { color: var(--color-primary); }
.chip-tech { color: #0891b2; }

.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 48px 20px;
  border: 2px dashed var(--color-border); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.empty-icon { font-size: 3rem; }
.empty-state h3 { margin: 0; }
.empty-state p { margin: 0 0 8px; }

/* ===== COMMENTS ===== */
.comments-list { display: flex; flex-direction: column; gap: 12px; margin: var(--space-md) 0; }
.comment-item {
  padding: 12px 14px; border-radius: var(--radius-md);
  background: var(--color-surface-2); border: 1px solid var(--color-border);
}
.comment-item.is-mine { border-color: var(--color-primary); }
.comment-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.comment-author { font-weight: 700; }
.comment-type-badge {
  font-size: .7rem; padding: 2px 8px; border-radius: var(--radius-full, 999px);
  background: var(--color-primary); color: #fff; font-weight: 700;
}
.comment-time { font-size: .78rem; color: var(--color-text-muted); }
.comment-del {
  margin-inline-start: auto; background: none; border: none;
  cursor: pointer; font-size: 1rem; opacity: .6;
}
.comment-del:hover { opacity: 1; }
.comment-text { margin: 0; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }

@media (max-width: 900px) {
  .browse-filters { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .browse-filters { grid-template-columns: 1fr; }
  .tabs .tab-btn { padding: 8px 12px; font-size: .9rem; }
}
/* ===== USER DASHBOARD ===== */
.stat-grid {
  display: grid; gap: 14px; margin: var(--space-md) 0 var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.stat-box {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 18px 12px; border-radius: var(--radius-lg);
  background: var(--color-surface); border: 1px solid var(--color-border);
  text-align: center;
}
.stat-icon { font-size: 1.8rem; }
.stat-value { font-size: 1.9rem; font-weight: 800; color: var(--color-primary); line-height: 1; }
.stat-label { font-size: .85rem; color: var(--color-text-muted); font-weight: 600; }

.vehicle-type-badge.st-active   { background: #16a34a; }
.vehicle-type-badge.st-draft    { background: #a16207; }
.vehicle-type-badge.st-sold     { background: #6b7280; }
.vehicle-type-badge.st-inactive { background: #b91c1c; }

.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.row-actions .btn { flex: 1 1 auto; }

.alert-error, .alert-warning, .alert-success, .alert-info {
  padding: 12px 16px; border-radius: var(--radius-md);
  font-weight: 600; margin: 12px 0; border: 1px solid transparent;
}
.alert-error   { background: rgba(220,38,38,.1);  border-color: rgba(220,38,38,.35);  color: #b91c1c; }
.alert-warning { background: rgba(202,138,4,.1);  border-color: rgba(202,138,4,.35);  color: #a16207; }
.alert-success { background: rgba(22,163,74,.1);  border-color: rgba(22,163,74,.35);  color: #15803d; }
.alert-info    { background: rgba(2,132,199,.1);  border-color: rgba(2,132,199,.35);  color: #0369a1; }

.detail-add-comment {
  display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap;
  margin-top: 12px; padding-top: 16px;
  border-top: 1px solid var(--color-border);
}
.detail-add-comment textarea {
  flex: 1 1 260px; padding: 10px 12px; resize: vertical;
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--color-surface); color: var(--color-text); font: inherit;
}
.thumbs img { cursor: pointer; border: 2px solid transparent; transition: border-color .18s; }
.thumbs img.active, .thumbs img:hover { border-color: var(--color-primary); }