/* ===== نمایندگی ۱۲۳۰ ایران‌خودرو — استایل اصلی سایت ===== */
/* پالت رنگی طبق راهنمای برند: سبز کله‌غازی #173B45 · سفید #FFFFFF · آبی سرمه‌ای #0B2A4A */

:root {
  --green: #173B45;
  --green-light: #22515e;
  --green-tint: #e9f0f1;
  --navy: #0B2A4A;
  --navy-light: #14406e;
  --white: #FFFFFF;
  --ink: #142023;
  --muted: #5b6b6e;
  --border: #dde6e7;
  --gold: #c9a227;
  --danger: #b23b3b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 42, 74, 0.08);
  --container: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-weight: 800;
  margin: 0 0 .5em;
  color: var(--navy);
}

p { margin: 0 0 1em; color: var(--muted); }

a { color: inherit; text-decoration: none; }

img, svg { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 78px 0;
}

.section-alt {
  background: var(--green-tint);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 46px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--green);
  background: rgba(23, 59, 69, .08);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.section-head h2 { font-size: clamp(24px, 3vw, 34px); }
.section-head p { font-size: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy); box-shadow: var(--shadow); }

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--navy); }

.btn-ghost {
  background: var(--white);
  border-color: var(--border);
  color: var(--green);
}
.btn-ghost:hover { border-color: var(--green); }

.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ===== نوار تبلیغاتی بالای سایت ===== */
.top-ad {
  background: var(--navy);
  color: var(--white);
  font-size: 13.5px;
}
.top-ad .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 24px;
  text-align: center;
  flex-wrap: wrap;
}
.top-ad strong { color: #bfe3c0; font-weight: 800; }
.top-ad .authentic-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,.12);
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 12px;
}

/* ===== هدر ===== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
}
.brand-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-cluster .mark-1230 { width: 52px; height: 52px; flex-shrink: 0; }
.ikco-emblem-slot {
  width: 46px;
  height: 46px;
  border: 1.5px dashed #b9c4c6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #93a3a5;
  text-align: center;
  line-height: 1.3;
  flex-shrink: 0;
  padding: 2px;
}
.brand-text .agency-name { font-size: 17px; font-weight: 800; color: var(--navy); }
.brand-text .agency-sub { font-size: 15.5px; font-weight: 700; color: var(--green); }

nav.main-nav {
  display: flex;
  gap: 4px;
}
nav.main-nav a {
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--green);
  transition: background .15s ease;
}
nav.main-nav a:hover { background: var(--green-tint); }

.header-cta { display: flex; align-items: center; gap: 10px; }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
}

/* ===== هیرو ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--green) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 90px 0 100px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.08), transparent 45%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 40px;
  align-items: center;
}
.premier-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(120deg, #ffe08a, #c9a227 65%, #a97f14);
  border: 1px solid rgba(255,255,255,.55);
  padding: 11px 24px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .2px;
  color: #241a00;
  margin-bottom: 24px;
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
  animation: badgePulse 3.2s ease-in-out infinite;
}
.premier-badge .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #241a00;
}
@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(0,0,0,.28), 0 0 0 0 rgba(255,224,138,.6);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 4px 16px rgba(0,0,0,.28), 0 0 0 13px rgba(255,224,138,0);
    transform: scale(1.06);
  }
}

.hero h1 { color: var(--white); font-size: clamp(28px, 4vw, 44px); line-height: 1.5; }
.hero p.lead { color: rgba(255,255,255,.85); font-size: 17px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 44px;
}
.hero-stats .stat {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  padding: 16px 10px;
  text-align: center;
}
.hero-stats .stat b { display: block; font-size: 22px; color: var(--white); }
.hero-stats .stat span { font-size: 12.5px; color: rgba(255,255,255,.75); }
.hero-stats .stat-text-only { display: flex; align-items: center; justify-content: center; }
.hero-stats .stat-text-only span { font-size: 13.5px; font-weight: 700; color: var(--white); line-height: 1.5; }

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* ---- گالری چرخشی خودروها ---- */
.car-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.car-gallery-stage {
  position: relative;
  width: 100%;
  height: 260px;
}
.car-gallery-item {
  position: absolute;
  top: 0;
  left: 50%;
  width: 200px;
  height: 260px;
  margin-left: -100px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(0,0,0,.35);
  transition: transform .7s cubic-bezier(.22,.68,.36,1), opacity .7s ease;
}
.car-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.car-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.car-gallery-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  transition: all .2s ease;
}
.car-gallery-dots span.active {
  background: #fff;
  width: 20px;
  border-radius: 4px;
}

/* ===== محصولات ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow .2s ease, transform .2s ease;
  position: relative;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-media {
  background: linear-gradient(160deg, var(--green-tint), #d9e6e2);
  padding: 26px 20px 10px;
  position: relative;
}
.product-media .sample-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(11,42,74,.75);
  color: #fff;
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 100px;
}
.product-media svg { width: 100%; height: 110px; }
.product-media-photo {
  background: none;
  padding: 0;
  height: 190px;
  overflow: hidden;
}
.product-media-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-body { padding: 18px 20px 22px; }
.product-body .cat { font-size: 12px; color: var(--green); font-weight: 700; }
.product-body h3 { font-size: 19px; margin: 6px 0 6px; }
.product-body p { font-size: 13.5px; margin-bottom: 14px; }

/* ===== نوبت‌دهی ===== */
.booking-wrap {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: start;
}
.booking-panel, .form-panel {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.booking-panel h3, .form-panel h3 { font-size: 18px; }
.hint-text { font-size: 12.5px; font-weight: 500; color: var(--muted); }

.service-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.service-chip {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green);
  cursor: pointer;
  background: var(--white);
  transition: all .15s ease;
}
.service-chip.active, .service-chip:hover {
  border-color: var(--green);
  background: var(--green-tint);
}

.day-scroller {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.day-card {
  flex: 0 0 auto;
  width: 74px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px 4px;
  text-align: center;
  cursor: pointer;
  background: var(--white);
  transition: all .15s ease;
}
.day-card .wd { font-size: 11.5px; color: var(--muted); }
.day-card .dnum { font-size: 19px; font-weight: 800; color: var(--navy); margin: 2px 0; }
.day-card .mon { font-size: 10.5px; color: var(--muted); }
.day-card.active {
  border-color: var(--green);
  background: var(--green);
}
.day-card.active .wd, .day-card.active .dnum, .day-card.active .mon { color: #fff; }
.day-card.closed {
  opacity: .4;
  cursor: not-allowed;
  background: #f4f6f6;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.slot-btn {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 4px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  background: var(--white);
  color: var(--navy);
  transition: all .15s ease;
}
.slot-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.slot-btn:hover:not(.active) { border-color: var(--navy); }
.no-slot-msg { font-size: 13.5px; color: var(--muted); text-align: center; padding: 14px 0; }

.form-panel label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-panel .field { margin-bottom: 16px; }
.form-panel input, .form-panel select, .form-panel textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 14.5px;
  background: var(--white);
  color: var(--ink);
  resize: vertical;
}
.form-panel input:focus, .form-panel select:focus, .form-panel textarea:focus {
  outline: none;
  border-color: var(--green);
}
.camera-btn-wide {
  width: 100%;
  margin-top: 8px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  padding: 11px 13px;
  cursor: pointer;
  text-align: right;
  transition: border-color .15s ease, background .15s ease;
}
.camera-btn-wide:hover { border-color: var(--green); }
.camera-btn-wide.has-photo { border-color: var(--green); background: var(--green-tint); }
.vin-photo-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 6px 10px;
}
.vin-photo-preview img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.vin-photo-remove {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 12.5px;
  cursor: pointer;
  padding: 0;
}

.feedback-wrap { max-width: 620px; margin: 0 auto; }
.feedback-status { font-size: 13px; margin-top: 12px; text-align: center; min-height: 18px; }
.feedback-status.ok { color: var(--green); font-weight: 700; }
.feedback-status.err { color: var(--danger); font-weight: 700; }
.booking-summary {
  background: var(--green-tint);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  margin-bottom: 18px;
  color: var(--green);
}
.form-disclaimer {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}
.confirmation-box {
  display: none;
  background: var(--green-tint);
  border: 1.5px solid var(--green);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.confirmation-box.show { display: block; }
.confirmation-box .ref { font-weight: 800; color: var(--navy); font-size: 18px; letter-spacing: 1px; }

/* ===== بخشنامه‌ها ===== */
.circular-list { display: flex; flex-direction: column; gap: 12px; }
.circular-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  flex-wrap: wrap;
}
.circular-item .info { display: flex; align-items: center; gap: 14px; }
.circular-item .badge-num {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--green-tint);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
.circular-item h4 { font-size: 15.5px; margin: 0 0 3px; color: var(--navy); }
.circular-item .meta { font-size: 12.5px; color: var(--muted); }
.tag-pill {
  display: inline-block;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 100px;
  background: rgba(11,42,74,.08);
  color: var(--navy);
  font-weight: 700;
  margin-inline-start: 8px;
}

/* ===== کاتالوگ ===== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.catalog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0 0 20px;
  text-align: center;
  background: var(--white);
  transition: box-shadow .2s ease, transform .2s ease;
}
.catalog-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.catalog-thumb { width: 100%; height: 130px; margin-bottom: 14px; overflow: hidden; }
.catalog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.catalog-card h4 { font-size: 15px; margin: 0 16px 4px; }
.catalog-card .size { font-size: 12px; color: var(--muted); margin: 0 16px 14px; }
.catalog-card .btn { margin: 0 16px; width: calc(100% - 32px); }
.catalog-thumb-icon { display: flex; align-items: center; justify-content: center; background: var(--green-tint); }
.catalog-thumb-icon svg { width: 60%; height: 60%; }
.catalog-variants { display: flex; flex-direction: column; gap: 8px; padding: 0 16px; }
.catalog-variants .btn { margin: 0; width: 100%; font-size: 12.5px; padding: 9px 10px; }

/* ===== کارت طلایی ===== */
.gold-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gold-card {
  border-radius: var(--radius);
  padding: 30px 24px;
  background: var(--white);
  border: 1.5px solid var(--border);
  text-align: center;
  position: relative;
}
.gold-card.featured {
  border-color: var(--gold);
  box-shadow: 0 12px 30px rgba(201,162,39,.18);
  transform: scale(1.03);
}
.gold-card .tier-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 22px;
  color: #fff;
}
.gold-card ul {
  text-align: right;
  padding-inline-start: 20px;
  margin: 16px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}
.gold-card ul li { margin-bottom: 8px; }
.gold-card .featured-tag {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(50%);
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 100px;
}

/* ===== درباره نمایندگی ===== */
.about-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}
.about-photo img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.about-photo-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(0deg, rgba(11,42,74,.85), transparent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 30px 22px 14px;
}
.about-wrap {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: start;
}
.value-list { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.value-item { display: flex; gap: 14px; }
.value-item .num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 14px;
}
.value-item h4 { font-size: 15.5px; margin-bottom: 4px; }
.value-item p { font-size: 13.5px; margin-bottom: 0; }

.about-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px;
}
.about-card h4 { color: #fff; font-size: 16px; }
.about-card p { color: rgba(255,255,255,.8); font-size: 13.5px; }
.pending-note {
  background: rgba(255,255,255,.65);
  border: 1.5px dashed #b9c4c6;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 18px;
}

/* ===== فوتر ===== */
footer.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  padding: 56px 0 22px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand .agency-name { font-weight: 800; color: #fff; font-size: 16px; }
footer h5 { color: #fff; font-size: 14.5px; margin-bottom: 14px; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
footer ul a, footer ul span { font-size: 13.5px; color: rgba(255,255,255,.7); }
footer ul a:hover { color: #fff; }
.social-row { display: flex; gap: 10px; margin-top: 14px; }
.social-row a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
}
.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(255,255,255,.55);
}
.footer-bottom .ikco-emblem-slot { border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.5); }
.staff-links a { color: rgba(255,255,255,.55); text-decoration: none; }
.staff-links a:hover { color: #fff; text-decoration: underline; }

/* ===== کارتابل مدیریت/پرسنل ===== */
.dash-body { background: var(--green-tint); min-height: 100vh; }
.dash-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.dash-header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dash-login-wrap {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.dash-login-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px;
  width: 100%;
  max-width: 380px;
}
.dash-login-card h2 { font-size: 20px; }
.dash-login-card .field { margin-bottom: 16px; }
.dash-login-card label { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.dash-login-card input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 14.5px;
}
.dash-login-card input:focus { outline: none; border-color: var(--green); }
.login-error { color: var(--danger); font-size: 13px; margin-bottom: 14px; min-height: 18px; }

.dash-main { padding: 34px 0 60px; }
.dash-tabs { display: flex; gap: 10px; margin-bottom: 24px; }
.dash-tab {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 14px;
  color: var(--green);
  cursor: pointer;
  font-family: inherit;
}
.dash-tab.active { background: var(--green); color: #fff; border-color: var(--green); }
.dash-panel { display: none; }
.dash-panel.active { display: block; }
.dash-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.dash-panel-head h3 { margin: 0; font-size: 18px; }

.table-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  box-shadow: var(--shadow);
}
.dash-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; }
.dash-table th {
  background: var(--green-tint);
  color: var(--navy);
  text-align: right;
  padding: 12px 14px;
  font-size: 12.5px;
  white-space: nowrap;
}
.dash-table td {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  vertical-align: top;
}
.dash-table select {
  padding: 6px 8px;
  border-radius: 7px;
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 12.5px;
}
.empty-msg { text-align: center; color: var(--muted); padding: 30px 0; }

/* ===== پرسنل و مدارک ===== */
.personnel-crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.personnel-crumbs a { color: var(--green); cursor: pointer; font-weight: 700; }
.personnel-crumbs a:hover { text-decoration: underline; }

.personnel-dept-grid, .personnel-position-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.personnel-dept-card, .personnel-position-card {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  background: var(--white);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  transition: all .15s ease;
}
.personnel-dept-card:hover, .personnel-position-card:hover { border-color: var(--green); background: var(--green-tint); }
.personnel-dept-card .count, .personnel-position-card .count {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 4px;
}
.personnel-position-card.complete { border-color: var(--green); }
.personnel-position-card.complete .count { color: var(--green); }

.personnel-detail-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-top: 18px;
}
.personnel-name-row { display: flex; gap: 8px; }
.personnel-name-row input { flex: 1; }
.personnel-doc-list { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.personnel-doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--green-tint);
}
.personnel-doc-row .doc-label { font-size: 13.5px; font-weight: 700; color: var(--navy); }
.personnel-doc-row .doc-actions { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.personnel-doc-row .doc-missing { color: var(--muted); }
.personnel-doc-row .doc-uploaded { color: var(--green); font-weight: 700; }

/* ===== ریسپانسیو ===== */
@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .gold-grid { grid-template-columns: 1fr; }
  .gold-card.featured { transform: none; }
  .about-wrap { grid-template-columns: 1fr; }
  .about-photo img { height: 240px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stats { max-width: 480px; }
}

@media (max-width: 760px) {
  nav.main-nav { display: none; }
  .hamburger { display: block; }
  .header-cta .btn span.long { display: none; }
  .booking-wrap { grid-template-columns: 1fr; }
  .service-type-grid { grid-template-columns: repeat(2, 1fr); }
  .slot-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .dash-tabs { flex-wrap: wrap; }
  .dash-login-card { padding: 28px 22px; }

  nav.main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 10px 24px 18px;
    box-shadow: var(--shadow);
  }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .car-gallery-stage { height: 210px; }
  .car-gallery-item { width: 160px; height: 210px; margin-left: -80px; }
}

/* ===== چت‌بات پشتیبانی ===== */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
}
.chat-fab {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: #16a34a;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(22,163,74,.45);
  transition: transform .15s ease, background .15s ease;
}
.chat-fab:hover { background: #15803d; transform: scale(1.07); }

.chat-panel {
  display: none;
  flex-direction: column;
  position: absolute;
  bottom: 86px;
  right: 0;
  width: 340px;
  max-width: calc(100vw - 48px);
  height: 460px;
  max-height: 70vh;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(11,42,74,.25);
  overflow: hidden;
}
.chat-panel.open { display: flex; }

.chat-panel-head {
  background: linear-gradient(135deg, var(--navy), #16a34a);
  color: #fff;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  opacity: .85;
}
.chat-close:hover { opacity: 1; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--green-tint);
}
.chat-msg {
  max-width: 85%;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.7;
}
.chat-msg.bot {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--ink);
  border-bottom-left-radius: 3px;
}
.chat-msg.user {
  align-self: flex-end;
  background: #16a34a;
  color: #fff;
  border-bottom-right-radius: 3px;
}
.chat-msg.typing { color: var(--muted); font-style: italic; }

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.chat-input-row input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 13.5px;
}
.chat-input-row input:focus { outline: none; border-color: var(--green); }
.chat-input-row .btn { padding: 10px 16px; font-size: 13px; }

@media (max-width: 560px) {
  .chat-widget { right: 14px; bottom: 14px; }
  .chat-fab { width: 62px; height: 62px; font-size: 26px; }
  .chat-panel { width: calc(100vw - 28px); }
}
