/* ==========================================================================
   King Rover - Modern Automotive Design System & Stylesheet
   کینگ روور | طراحی اختصاصی پلتفرم خودروهای آفرودی و مهندسی لندرور
   مدیریت ارشد فنی: مهندس علی افشار - شیراز، بلوار طلائیه
   ========================================================================== */

:root {
  /* Automotive Dark Palette */
  --bg-deep: #07090e;
  --bg-main: #0c1017;
  --bg-surface: #121824;
  --bg-card: #172030;
  --bg-card-hover: #1e293d;
  --bg-elevated: #222d42;

  /* Accent & Brand Colors */
  --gold-primary: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.25);
  --gold-light: #fbbf24;
  --gold-dark: #b45309;
  
  --accent-orange: #ff7700;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-red: #ef4444;

  /* Borders & Gradients */
  --border-subtle: #243046;
  --border-card: #2e3d57;
  --border-focus: #f59e0b;
  
  --gold-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  --metal-gradient: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  --card-gradient: linear-gradient(180deg, rgba(23, 32, 48, 0.95) 0%, rgba(15, 23, 36, 0.95) 100%);
  --hero-glow: radial-gradient(circle at 50% 30%, rgba(245, 158, 11, 0.12) 0%, transparent 70%);

  /* Typography Colors */
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-gold: #fbbf24;

  /* Metrics & Elevation */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.65);
  --shadow-gold: 0 0 25px rgba(245, 158, 11, 0.35);

  --font-base: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset & RTL */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-base);
  direction: rtl;
  text-align: right;
  background-color: var(--bg-deep);
  color: var(--text-main);
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--bg-deep);
  background-image: 
    radial-gradient(ellipse at 80% 0%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 100%, rgba(6, 182, 212, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  line-height: 1;
}

.badge-gold {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-light);
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

.badge-accent {
  background: rgba(255, 119, 0, 0.15);
  color: #ff9d42;
  border: 1px solid rgba(255, 119, 0, 0.4);
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #000;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.5);
  color: #000;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-card);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--gold-light);
  border: 1.5px solid var(--gold-primary);
}
.btn-outline:hover {
  background: var(--gold-primary);
  color: #000;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.1rem;
}

/* Top Announcement Bar */
.top-bar {
  background: #090d14;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
}
.top-bar-link:hover {
  color: var(--gold-light);
}

/* Main Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 16, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-brand img, .logo-brand svg {
  height: 54px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.brand-title span {
  color: var(--gold-primary);
}

.brand-subtitle {
  font-size: 0.76rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: #e2e8f0;
  position: relative;
  padding: 0.5rem 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--gold-primary);
  border-radius: var(--radius-full);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.header-cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: var(--transition-fast);
}
.header-cart-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

.cart-count-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  background: var(--accent-orange);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-main);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 3.5rem 0 4.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-backdrop-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 75% 40%, rgba(245, 158, 11, 0.12) 0%, transparent 60%),
    linear-gradient(to right, rgba(12, 16, 23, 0.95), rgba(12, 16, 23, 0.6));
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1.2rem;
  color: #ffffff;
}
.hero-title .text-accent {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 620px;
}
.hero-subtitle strong {
  color: #fff;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
}

.highlight-box {
  background: var(--card-gradient);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  transition: var(--transition-normal);
}
.highlight-box:hover {
  border-color: var(--gold-primary);
  transform: translateY(-3px);
}

.highlight-number {
  display: block;
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.highlight-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Hero Visual Card */
.hero-visual {
  position: relative;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1.5px solid var(--border-card);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.hero-image-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hero-image-card:hover img {
  transform: scale(1.03);
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 9, 14, 0.95) 0%, rgba(7, 9, 14, 0.2) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.75rem;
}

.hero-card-meta h4 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
  color: #fff;
}
.hero-card-meta p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.hero-floating-guarantee {
  position: absolute;
  bottom: -22px;
  left: 20px;
  background: #141b26;
  border: 1.5px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-lg), 0 0 20px rgba(245, 158, 11, 0.3);
  z-index: 3;
}

.guarantee-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  flex-shrink: 0;
}

.guarantee-text h5 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}
.guarantee-text p {
  font-size: 0.78rem;
  color: var(--gold-light);
}

/* Stories & Reels Tray */
.stories-section {
  padding: 1.25rem 0;
  background: #090d14;
  border-bottom: 1px solid var(--border-subtle);
}

.stories-scroll-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.5rem 0.2rem;
  scrollbar-width: none;
}
.stories-scroll-wrap::-webkit-scrollbar {
  display: none;
}

.story-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  flex-shrink: 0;
}

.story-ring {
  width: 74px;
  height: 74px;
  border-radius: var(--radius-full);
  padding: 3px;
  background: linear-gradient(45deg, #f59e0b, #ff7700, #ec4899, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}
.story-circle-item:hover .story-ring {
  transform: scale(1.07);
}

.story-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid #090d14;
}

.story-title-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Vehicle Selector Bar */
.vehicle-selector-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
}

.vehicle-selector-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.vehicle-selector-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.vehicle-selector-title h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}
.vehicle-selector-title p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.vehicle-selector-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.vehicle-select-input {
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  color: #fff;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  min-width: 240px;
}
.vehicle-select-input:focus {
  border-color: var(--gold-primary);
}

.active-vehicle-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ==========================================================================
   Engineer Ali Afshar Dedicated Profile Section
   (Matching exact aesthetic from user's uploaded banner screenshot)
   ========================================================================== */
.afshar-profile-card {
  background: #111723;
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.afshar-profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.afshar-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 3rem;
}

.afshar-photo-wrap {
  position: relative;
  border: 2px solid #f59e0b;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.25);
}

.afshar-photo-wrap img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.afshar-content h2 {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  margin: 0.5rem 0;
}

.afshar-title-tag {
  display: inline-block;
  color: var(--gold-light);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

.afshar-bio {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 2rem;
}

.afshar-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.afshar-metric-item {
  background: #161e2e;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  text-align: center;
}

.afshar-metric-num {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--gold-light);
  display: block;
  margin-bottom: 0.3rem;
}

.afshar-metric-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Sections & Typography */
.section {
  padding: 4.5rem 0;
}

.section-title-wrap {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  color: var(--gold-light);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 0.85rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--card-gradient);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(245, 158, 11, 0.15);
}

.service-card-media {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card-media img {
  transform: scale(1.06);
}

.service-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.service-card-body {
  padding: 1.6rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-category {
  font-size: 0.8rem;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.service-warranty {
  font-size: 0.8rem;
  color: var(--gold-light);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Interactive Before / After Slider */
.before-after-container {
  position: relative;
  width: 100%;
  max-width: 980px;
  height: 520px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid var(--border-card);
  box-shadow: var(--shadow-lg);
  user-select: none;
}

.before-after-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-after-overlay {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  border-left: 3px solid var(--gold-primary);
  z-index: 2;
}
.before-after-overlay .before-after-img {
  width: 980px;
  max-width: none;
}

.before-label, .after-label {
  position: absolute;
  bottom: 20px;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.85rem;
  border: 1px solid var(--border-card);
  z-index: 4;
}
.before-label { right: 20px; border-color: rgba(255, 119, 0, 0.4); }
.after-label { left: 20px; border-color: rgba(245, 158, 11, 0.4); }

.before-after-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--gold-primary);
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 5;
}

.handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: var(--gold-gradient);
  border: 3px solid #07090e;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.product-card {
  background: var(--card-gradient);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-media {
  position: relative;
  height: 230px;
  background: #0d121c;
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-media img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
}

.product-wishlist-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(12, 16, 23, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid var(--border-subtle);
}
.product-wishlist-btn.active {
  color: #ef4444;
}

.product-body {
  padding: 1.4rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-code {
  font-family: monospace;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.product-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 0.6rem;
}

.product-compatibility-tag {
  font-size: 0.78rem;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.product-pricing {
  margin-top: auto;
  margin-bottom: 1.1rem;
}
.product-old-price {
  font-size: 0.85rem;
  text-decoration: line-through;
  color: var(--text-muted);
  display: block;
}
.product-price {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold-light);
}
.product-price small {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.product-actions .btn {
  flex: 1;
}

/* ==========================================================================
   Workshop Management & Admin Dashboard
   ========================================================================== */
.admin-shell {
  background: #090d14;
  min-height: 80vh;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-card);
  overflow: hidden;
  margin: 2rem 0 4rem;
}

.admin-header-bar {
  background: #111723;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.75rem 2rem;
  background: #0d121c;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-tab-btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: transparent;
  transition: var(--transition-fast);
  white-space: nowrap;
}
.admin-tab-btn:hover {
  color: #fff;
  background: var(--bg-card);
}
.admin-tab-btn.active {
  color: #000;
  background: var(--gold-gradient);
}

.admin-content {
  padding: 2rem;
}

/* KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: #131a26;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}

.kpi-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.kpi-value {
  font-size: 1.85rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

/* Pipeline Status Tracker */
.pipeline-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.5rem 0;
  position: relative;
}

.pipeline-steps::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border-subtle);
  transform: translateY(-50%);
  z-index: 1;
}

.pipeline-step-item {
  position: relative;
  z-index: 2;
  background: #111723;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-subtle);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}
.pipeline-step-item.done {
  border-color: var(--accent-green);
  color: var(--accent-green);
}
.pipeline-step-item.active {
  border-color: var(--gold-primary);
  color: var(--gold-light);
  background: rgba(245, 158, 11, 0.15);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

/* Data Tables */
.kr-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
}

.kr-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 0.92rem;
}

.kr-table th {
  background: #151d2c;
  padding: 1rem 1.2rem;
  color: var(--text-secondary);
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
}

.kr-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
  color: #e2e8f0;
}

.kr-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Invoice Printable Sheet */
.invoice-sheet {
  background: #ffffff;
  color: #0f172a;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-base);
}

.invoice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.invoice-sheet h1, .invoice-sheet h2, .invoice-sheet h3 {
  color: #0f172a;
}

.invoice-sheet table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.invoice-sheet th {
  background: #f1f5f9;
  color: #0f172a;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  font-weight: 800;
}

.invoice-sheet td {
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: #141b26;
  border: 1.5px solid var(--gold-primary);
  color: #fff;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideIn 0.3s ease;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-card {
  background: #111723;
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.25rem;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: #182233;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
}
.modal-close-btn:hover {
  background: var(--gold-primary);
  color: #000;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: #182233;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.8rem 1.1rem;
  color: #fff;
  font-weight: 500;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--gold-primary);
  background: #1d293d;
}

/* Footer */
.site-footer {
  background: #080b11;
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2rem;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a:hover {
  color: var(--gold-light);
  transform: translateX(-4px);
}

.footer-bottom {
  border-top: 1px solid #141b26;
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
}

.fartak-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(18, 24, 36, 0.75);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: var(--transition-fast);
}

.fartak-credit:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}

.fartak-credit .heart-icon {
  font-size: 1.15rem;
  display: inline-block;
  line-height: 1;
  filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.5));
}

.fartak-credit .fartak-brand {
  color: #fbbf24;
  font-weight: 900;
  letter-spacing: 0.3px;
}

/* Print CSS - Perfect A4 Invoice Rendering */
@media print {
  @page {
    size: A4 portrait;
    margin: 10mm 12mm;
  }
  
  html, body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Hide entire web chrome */
  #site-header-container,
  .site-header,
  .site-footer,
  #toast-container,
  .no-print,
  .modal-close-btn,
  .btn,
  nav,
  #home-hero {
    display: none !important;
  }

  /* Flatten modal containers so they don't clip */
  .modal-backdrop {
    position: static !important;
    display: block !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    background: transparent !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .modal-card {
    position: static !important;
    background: #ffffff !important;
    color: #000000 !important;
    max-width: 100% !important;
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .invoice-sheet {
    display: block !important;
    position: static !important;
    background: #ffffff !important;
    color: #000000 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }

  .invoice-sheet * {
    color: #000000 !important;
  }

  .invoice-sheet table {
    border-collapse: collapse !important;
    width: 100% !important;
  }

  .invoice-sheet th, .invoice-sheet td {
    border: 1px solid #64748b !important;
    padding: 6px 8px !important;
    color: #000000 !important;
  }

  .invoice-sheet th {
    background: #e2e8f0 !important;
    font-weight: 800 !important;
  }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtitle {
    margin: 0 auto 2rem;
  }
  .hero-actions {
    justify-content: center;
  }
  .afshar-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-highlights {
    grid-template-columns: 1fr;
  }
  .services-grid, .products-grid {
    grid-template-columns: 1fr;
  }
  .before-after-container {
    height: 360px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .afshar-metrics {
    grid-template-columns: 1fr;
  }
}

@keyframes slideIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   King Rover - Bank Card, Slip Upload & Auth Styling
   ========================================================================== */

/* Luxury VIP Bank Card */
.king-bank-card {
  background: linear-gradient(135deg, #182233 0%, #0d121c 60%, #1a273b 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.2);
  position: relative;
  overflow: hidden;
  color: #fff;
  margin: 1rem 0;
}

.king-bank-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.bank-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.bank-name {
  font-size: 1.2rem;
  font-weight: 900;
  color: #fef08a;
  letter-spacing: 0.5px;
}

.bank-card-type {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: monospace;
  text-transform: uppercase;
}

.bank-card-chip {
  width: 48px;
  height: 36px;
  border-radius: 6px;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  border: 1px solid #78350f;
  margin-bottom: 1.5rem;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.bank-card-chip::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 3px;
}

.bank-card-number {
  font-family: 'Vazirmatn', monospace;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  transition: var(--transition-fast);
}
.bank-card-number:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--gold-primary);
}

.btn-copy-card {
  font-size: 0.75rem;
  font-weight: 700;
  color: #000;
  background: var(--gold-gradient);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.bank-card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.bank-card-holder-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.2rem;
}

.bank-card-holder-name {
  font-size: 1rem;
  font-weight: 800;
  color: #f8fafc;
}

/* Payment Option Cards */
.payment-option-card {
  background: #141b26;
  border: 2px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  cursor: pointer;
  transition: var(--transition-normal);
}
.payment-option-card:hover {
  border-color: rgba(245, 158, 11, 0.6);
  transform: translateY(-2px);
}
.payment-option-card.active {
  border-color: var(--gold-primary);
  background: #182233;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}

.payment-method-card {
  background: #151d2c;
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  transition: var(--transition-fast);
}
.payment-method-card:hover {
  border-color: var(--gold-primary);
}

/* Slip Upload Box */
.slip-upload-box {
  background: #101622;
  border: 2px dashed var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
}
.slip-upload-box:hover {
  background: #141c2c;
  border-color: #fbbf24;
}

/* Checkout Steps Bar */
.chk-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-muted);
}
.chk-step.active {
  color: var(--gold-light);
}

.chk-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1e293b;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
}
.chk-step.active .chk-step-num {
  background: var(--gold-gradient);
  color: #000;
  font-weight: 900;
}

.chk-step-line {
  flex: 1;
  height: 2px;
  background: var(--border-card);
  margin: 0 1rem;
}
.chk-step-line.active {
  background: var(--gold-primary);
}

/* Auth Tabs */
.auth-tab-btn {
  flex: 1;
  padding: 0.85rem 1rem;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-secondary);
  border-bottom: 2.5px solid transparent;
  background: transparent;
  transition: var(--transition-fast);
  cursor: pointer;
}
.auth-tab-btn:hover {
  color: #fff;
}
.auth-tab-btn.active {
  color: var(--gold-light);
  border-color: var(--gold-primary);
}
