/* ===================== Dashboard ===================== */

/* HERO CONTAINER */
.dash-hero {
  width: 100%;
  padding: 26px;
  border-radius: 22px;
  background: linear-gradient(135deg, #18223b, #0f1629);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 22px;
}

/* INNER WHITE CARD */
.dash-hero-left {
  background: #ffffff;
  color: #0b1220;
  border-radius: 18px;
  padding: 32px 40px; /* ← left margin space added */
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

/* TITLE */
.dash-hero-left h1 {
  margin: 0 0 8px;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

/* DESCRIPTION */
.dash-hero-left p {
  margin: 0;
  opacity: 0.75;
  font-size: 15px;
  max-width: 640px;
  line-height: 1.6;
}

/* BADGE ROW */
.dash-badges {
  display: flex;
  justify-content: left; /* ← centered badges */
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* BADGES */
.dash-badge {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  background: #eef2ff;
  border: 1px solid #dbe3ff;
  color: #243267;
}

.dash-card {
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.dash-who {
  font-weight: 800;
  font-size: 16px;
}
.dash-mini,
.dash-mini2 {
  opacity: 0.85;
  margin-top: 6px;
  font-size: 13px;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dash-panel {
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.dash-panel h2 {
  margin: 0 0 12px;
  font-size: 18px;
}
.dash-panel-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.dash-form {
  display: grid;
  gap: 12px;
}
.dash-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.dash-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 12px;
  opacity: 0.9;
}
.dash-field input,
.dash-field select,
.dash-field textarea {
  width: 100%;
  border-radius: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  color: inherit;
  outline: none;
}
.dash-field textarea {
  resize: vertical;
  min-height: 92px;
}
.dash-help {
  font-size: 12px;
  opacity: 0.75;
  margin-top: 6px;
}

.dash-actions {
  display: flex;
  gap: 10px;
}
.dash-btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.16);
}
.dash-btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.dash-preview {
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  padding: 12px;
}
.dash-preview-empty {
  opacity: 0.8;
  padding: 14px;
}
.dash-prev-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  align-items: stretch;
}
.dash-prev-media {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.dash-prev-media img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.dash-prev-noimg {
  height: 160px;
  display: grid;
  place-items: center;
  opacity: 0.75;
}
.dash-prev-title {
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 4px;
}
.dash-prev-sub {
  opacity: 0.8;
  margin-bottom: 8px;
}
.dash-prev-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.dash-prev-meta span {
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
}
.dash-prev-desc {
  opacity: 0.85;
  line-height: 1.45;
}
.dash-prev-foot {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.dash-pill {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 700;
  font-size: 12px;
}

.dash-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 16px 0;
}
.dash-empty {
  opacity: 0.8;
  padding: 10px 4px;
}

.dash-list {
  display: grid;
  gap: 10px;
}
.dash-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.dash-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dash-row-thumb {
  width: 52px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
}
.dash-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dash-row-title {
  font-weight: 900;
  font-size: 13px;
}
.dash-row-mini {
  opacity: 0.8;
  font-size: 12px;
  margin-top: 2px;
}
.dash-mini-btn {
  border-radius: 12px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

@media (max-width: 980px) {
  .dash-hero {
    grid-template-columns: 1fr;
  }
  .dash-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================== DASHBOARD THEME OVERRIDE (LIGHT / PRO) ===================== */
.dash-page {
  background: #f6f7fb;
  color: #0f172a;
}

.dash-hero-left,
.dash-panel,
.dash-card,
.dash-row,
.dash-preview,
.dash-prev-media,
.dash-row-thumb {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.dash-badge,
.dash-prev-meta span,
.dash-pill {
  background: rgba(15, 23, 42, 0.04) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.dash-mini,
.dash-mini2,
.dash-hero p,
.dash-help,
.dash-prev-sub,
.dash-row-mini,
.dash-preview-empty,
.dash-empty {
  opacity: 1 !important;
  color: rgba(15, 23, 42, 0.7) !important;
}

.dash-field input,
.dash-field select,
.dash-field textarea {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  color: #0f172a !important;
}

.dash-field input:focus,
.dash-field select:focus,
.dash-field textarea:focus {
  border-color: rgba(26, 92, 255, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(26, 92, 255, 0.12);
}

.dash-btn {
  background: #1a5cff !important;
  color: #fff !important;
}

.dash-btn.ghost,
.dash-mini-btn {
  background: rgba(15, 23, 42, 0.04) !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  color: rgba(15, 23, 42, 0.9) !important;
}

.dash-divider {
  background: rgba(15, 23, 42, 0.08) !important;
}

/* ===================== DASHBOARD POLISH (Option A+) ===================== */
.dash-wrap {
  margin: 28px auto !important;
}

.dash-wrap {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 16px;
}

.dash-hero {
  gap: 20px !important;
  margin-bottom: 20px !important;
}

.dash-hero h1 {
  font-size: 38px !important;
  line-height: 1.1;
}

.dash-panel {
  border-radius: 18px !important;
  padding: 18px !important;
}

.dash-panel-top {
  align-items: center !important;
}

.dash-panel h2 {
  font-size: 18px !important;
  letter-spacing: -0.2px;
}

.dash-btn {
  border-radius: 14px !important;
  padding: 12px 16px !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 18px rgba(26, 92, 255, 0.14);
}

.dash-btn.ghost {
  box-shadow: none !important;
}

.dash-field input,
.dash-field select,
.dash-field textarea {
  border-radius: 14px !important;
  padding: 12px 12px !important;
}

.dash-field input::placeholder,
.dash-field textarea::placeholder {
  color: rgba(15, 23, 42, 0.45);
}

.dash-preview {
  border-style: solid !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), transparent);
}

.dash-row {
  border-radius: 16px !important;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

.dash-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.dash-mini-btn {
  border-radius: 12px !important;
  font-weight: 700;
}

.dash-badge {
  background: rgba(26, 92, 255, 0.08) !important;
  border: 1px solid rgba(26, 92, 255, 0.18) !important;
  color: rgba(15, 23, 42, 0.85) !important;
}

/* Favourites card rows should feel clickable */
#favList .dash-row {
  cursor: pointer;
}

/* ===================== Subscription Card (Dashboard) ===================== */

.sub-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 20px 22px 18px;
  box-shadow: 0 18px 45px rgba(2, 8, 23, 0.08);
  margin: 8px 0 22px 0;
  position: relative;
  overflow: hidden;
}

.sub-benefits {
  margin: 0 0 14px;
  color: rgba(15, 23, 42, 0.78);
  font-size: 13px;
  line-height: 1.5;
  position: relative;
}

.sub-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
  position: relative;
}

.sub-row label {
  font-size: 12.5px;
  color: rgba(15, 23, 42, 0.72);
}

#sellerPlanSelect {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(248, 250, 252, 0.9);
  color: #0f172a;
  font-weight: 600;
  outline: none;
  transition: 0.2s ease;
  appearance: none;

  /* dropdown arrow */
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(15, 23, 42, 0.6) 50%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.6) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 18px,
    calc(100% - 12px) 18px;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

#sellerPlanSelect:focus {
  border-color: rgba(11, 95, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(11, 95, 255, 0.14);
  background: #fff;
}

.sub-row strong {
  font-size: 12.5px;
  color: rgba(15, 23, 42, 0.72);
}

#subStatusText {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(248, 250, 252, 0.9);
  color: rgba(15, 23, 42, 0.75);
}

/* Optional: status colors (if you set status text to active/inactive/expired) */
#subStatusText[data-status="active"] {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.28);
  color: #047857;
}
#subStatusText[data-status="inactive"] {
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(234, 179, 8, 0.25);
  color: #92400e;
}
#subStatusText[data-status="expired"] {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
  color: #991b1b;
}

#subPayBtn {
  width: 100%;
  height: 48px;
  margin-top: 14px;
  border: none;
  border-radius: 14px;
  font-weight: 900;
  letter-spacing: 0.3px;
  cursor: pointer;

  color: #1e293b;

  /* GOLD PREMIUM GRADIENT */
  background: linear-gradient(
    135deg,
    #ffd700,
    #f6c200 40%,
    #e6b800 70%,
    #ffdf4d
  );

  box-shadow:
    0 10px 25px rgba(255, 200, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);

  transition: all 0.18s ease;
}

#subPayBtn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 16px 35px rgba(255, 200, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

#subPayBtn:active {
  transform: translateY(0);
  box-shadow:
    0 6px 16px rgba(255, 200, 0, 0.35),
    inset 0 2px 6px rgba(0, 0, 0, 0.2);
}

#subPayBtn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: linear-gradient(135deg, #d4d4d4, #bfbfbf);
  color: #555;
}

/* small screen layout */
@media (max-width: 520px) {
  .sub-row {
    grid-template-columns: 1fr;
  }
  .sub-row label,
  .sub-row strong {
    margin-bottom: -6px;
  }
}

@media (max-width: 900px) {
  .sub-card {
    width: 100%;
  }
}

.badge.negotiable {
  background: #10b981;
  color: white;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
}

.badge.featured {
  background: #f59e0b;
  color: white;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
}

.badge.urgent {
  background: #ef4444;
  color: white;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
}

.promo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.promo-card {
  background: #fff;
  padding: 28px;
  width: 380px;
  max-width: 90%;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.promo-price {
  font-size: 22px;
  font-weight: 700;
  margin: 12px 0 20px;
}

.promo-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.listing-reason {
  margin-top: 6px;
  font-size: 13px;
  color: #c0392b;
  background: #fff0f0;
  padding: 6px 8px;
  border-radius: 6px;
}

/* ================================
SELLER DASHBOARD RESPONSIVE
================================ */

@media (max-width: 768px) {
  body {
    padding: 14px;
  }

  /* DASHBOARD GRID */

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* LISTING ROW */

  .dash-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .dash-row-left {
    width: 100%;
  }

  .dash-row-thumb img {
    width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: cover;
    border-radius: 8px;
  }

  .dash-row-actions {
    width: 100%;
    display: flex;
    gap: 10px;
  }

  .dash-mini-btn {
    flex: 1;
    font-size: 14px;
  }
}

/* ================================
FORM MOBILE FIX
================================ */

@media (max-width: 768px) {
  .dash-two {
    grid-template-columns: 1fr !important;
  }

  .dash-field {
    width: 100%;
  }

  input,
  select,
  textarea {
    width: 100%;
    font-size: 16px;
  }
}

.dash-row-thumb img {
  width: 120px;
  height: 90px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .dash-row-thumb img {
    width: 100%;
    height: auto;
  }
}

/* =============================
EDIT MODAL MOBILE FIX
============================= */

@media (max-width: 768px) {
  #editCarModal div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  #editCarModal {
    width: 100% !important;
    max-height: 95vh;
    padding: 12px;
    border-radius: 10px;
  }

  #editCarModal input,
  #editCarModal select,
  #editCarModal textarea {
    font-size: 16px;
    width: 100%;
  }
}

.dash-prev-thumbs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.dash-prev-thumbs img {
  width: 65px;
  height: 55px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s;
}

.dash-prev-thumbs img:hover {
  border-color: #0a5fd8;
}

.dash-prev-media img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .gallery-modal {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .gallery-viewer {
    height: 320px;
  }

  .gallery-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .gallery-actions {
    width: 100%;
    justify-content: space-between;
  }

  .gallery-seller {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .gallery-thumbs {
    padding: 12px;
  }

  .gallery-thumbs img {
    width: 60px;
    height: 50px;
  }
}

.gallery-viewer img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.whatsapp-btn {
  background: #25d366;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 22px;
  font-weight: 600;
  cursor: pointer;
}

.whatsapp-btn:hover {
  background: #1ebe5d;
}

.share-row {
  display: flex;
  gap: 10px;
}

.share-btn {
  background: #f3f4f7;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.gallery-thumbs img.active {
  border: 2px solid #0a5fd8;
}

.custom-upload input[type="file"] {
  display: none;
}

.custom-upload span {
  display: block;
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  background: #f8fafc;
  font-size: 13px;
  transition: 0.2s;
}

.custom-upload span:hover {
  background: #eef2ff;
  border-color: #0a5fd8;
}

/* OVERLAY */
.promo-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* CARD */
.promo-card {
  background: #ffffff;
  padding: 28px;
  border-radius: 18px;
  width: 420px;
  max-width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  text-align: center;
  animation: slideUp 0.25s ease;
}

/* TITLE */
.promo-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

/* DESCRIPTION */
.promo-desc {
  font-size: 14px;
  color: #555;
  margin-bottom: 18px;
  line-height: 1.5;
}

/* PRICE */
.promo-price {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #0a5fd8;
}

/* OPTIONS */
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* BUTTON BASE */
.pay-btn {
  border: none;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition: 0.25s;
  display: flex;
  flex-direction: column;
}

/* SUBTEXT */
.pay-btn span {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.8;
}

/* FLUTTERWAVE */
.pay-btn.flutterwave {
  background: #f5a623;
  color: #fff;
}

.pay-btn.flutterwave:hover {
  background: #e89b1d;
}

/* SQUAD */
.pay-btn.squad {
  background: #0a5fd8;
  color: #fff;
}

.pay-btn.squad:hover {
  background: #084bb0;
}

/* CANCEL */
.cancel-btn {
  margin-top: 15px;
  background: #f1f1f1;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
}

/* ANIMATION */
@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* OVERLAY */
.pay-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* CARD */
.pay-modal-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 18px;
  width: 420px;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
  animation: modalIn 0.25s ease;
}

/* TITLE */
.pay-modal-card h2 {
  font-size: 20px;
  margin-bottom: 5px;
}

/* SUBTITLE */
.pay-sub {
  font-size: 13px;
  color: #666;
  margin-bottom: 22px;
}

/* GRID */
.pay-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* OPTION BUTTON */
.pay-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #eee;
  cursor: pointer;
  transition: 0.25s;
  text-align: left;
  background: #fafafa;
}

/* ICON */
.pay-icon {
  font-size: 20px;
}

/* TEXT */
.pay-option strong {
  display: block;
  font-size: 15px;
}

.pay-option span {
  font-size: 12px;
  color: #777;
}

/* HOVER EFFECT */
.pay-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* BRAND COLORS */
.pay-option.fw {
  border-left: 4px solid #f5a623;
}

.pay-option.squad {
  border-left: 4px solid #0a5fd8;
}

/* CANCEL BUTTON */
.pay-cancel {
  margin-top: 18px;
  background: #f1f1f1;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
}

/* ANIMATION */
@keyframes modalIn {
  from {
    transform: translateY(20px) scale(0.97);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* OVERLAY */
.pay-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* MODAL CARD */
.pay-modal-card {
  width: 420px;
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  text-align: center;
  animation: fadeIn 0.3s ease;
}

/* HEADER */
.pay-modal-card h2 {
  margin: 0;
  font-size: 20px;
  color: #0a2a66;
}

.pay-sub {
  font-size: 13px;
  color: #777;
  margin-bottom: 20px;
}

/* GRID */
.pay-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* OPTION BUTTON */
.pay-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #eee;
  cursor: pointer;
  transition: 0.25s;
  background: #fff;
  position: relative;
}

/* HOVER EFFECT */
.pay-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ICON */
.pay-icon {
  font-size: 20px;
}

/* TEXT */
.pay-info {
  text-align: left;
}

.pay-info strong {
  display: block;
  font-size: 15px;
}

.pay-info span {
  font-size: 12px;
  color: #666;
}

/* PAYSTACK STYLE */
.paystack:hover {
  border-color: #0ba4db;
  background: #f0faff;
}

/* FIRSTBANK STYLE */
.firstbank:hover {
  border-color: #0a2a66;
  background: #f4f7ff;
}

/* FLUTTERWAVE STYLE */
.flutterwave:hover {
  border-color: #e4a932;
  background: #f4f7ff;
}

/* RECOMMENDED BADGE */
.badge-recommended {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 10px;
  background: #0ba4db;
  color: white;
  padding: 4px 8px;
  border-radius: 20px;
}

/* CANCEL BUTTON */
.pay-cancel {
  width: 100%;
  margin-top: 15px;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: #f1f1f1;
  cursor: pointer;
  font-weight: 600;
}

.pay-cancel:hover {
  background: #e5e5e5;
}

/* ANIMATION */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= ANALYTICS PER CAR ================= */

.analytics-cars {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.analytics-car-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eee;
  align-items: center;
  transition: 0.2s;
}

.analytics-car-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.analytics-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.analytics-car-name {
  font-weight: 600;
  margin-bottom: 6px;
}

.analytics-stats {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: #555;
}

/* ===== ANALYTICS HEADER ===== */
.analytics-header {
  margin-bottom: 20px;
}

.top-car {
  margin-top: 15px;
  padding: 12px;
  background: linear-gradient(135deg, #fff6e6, #fff);
  border-left: 4px solid #f39c12;
  border-radius: 8px;
  font-size: 14px;
}

/* ===== STAT COLORS ===== */
.stat-views { border-left: 5px solid #3498db; }
.stat-contacts { border-left: 5px solid #27ae60; }
.stat-whatsapp { border-left: 5px solid #2ecc71; }
.stat-shares { border-left: 5px solid #9b59b6; }

/* ===== CAR LIST ===== */
.analytics-cars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ===== CARD ===== */
.analytics-car-card {
  display: flex;
  gap: 14px;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: 0.2s;
}

.analytics-car-card:hover {
  transform: translateY(-2px);
}

/* ===== IMAGE ===== */
.analytics-thumb {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
}

/* ===== CONTENT ===== */
.analytics-content {
  flex: 1;
}

.analytics-car-name {
  font-weight: 600;
  margin-bottom: 6px;
}

/* ===== STATS ===== */
.analytics-stats {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
}

/* ===== BAR ==== */
.analytics-bar {
  width: 100%;
  height: 6px;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
}

.analytics-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0a5fd8, #1e90ff);
}

/* ===== CONVERSION ===== */
.analytics-conversion {
  font-size: 12px;
  margin-top: 5px;
  color: #888;
}

/* ===== TITLE ===== */
.analytics-title {
  margin: 20px 0 10px;
}

#analyticsCard h2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#analyticsCard h2::after {
  content: "▼";
  font-size: 12px;
  transition: transform 0.2s;
}

#analyticsCard.open h2::after {
  transform: rotate(180deg);
}

.seller-dp-wrap{
display:flex;
align-items:center;
gap:12px;
}

.seller-dp{
width:60px;
height:60px;
border-radius:50%;
object-fit:cover;
border:2px solid #e6ecf3;
}

#changeDpBtn{
padding:6px 10px;
border-radius:8px;
border:1px solid #ddd;
background:white;
cursor:pointer;
}

.nav-seller{
display:flex;
align-items:center;
margin-left:12px;
}

.nav-seller-dp{
width:36px;
height:36px;
border-radius:50%;
object-fit:cover;
cursor:pointer;
border:2px solid #e6ecf5;
transition:all .2s ease;
}

.nav-seller-dp:hover{
transform:scale(1.05);
border-color:#2563eb;
}

.pay-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.edit-images-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.edit-img-item {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  cursor: grab;
}

.edit-img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edit-img-actions {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  gap: 4px;
}

.img-delete,
.img-replace {
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 6px;
  cursor: pointer;
}

/* IMAGE THUMB WRAP */
.preview-thumb-wrap {
  position: relative;
  display: inline-block;
  margin: 6px;
  cursor: grab;
}

.preview-thumb-wrap.dragging {
  opacity: 0.4;
}

/* IMAGE */
.preview-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: 0.2s;
}

.preview-thumb:hover {
  border-color: #007bff;
}

/* DELETE BUTTON (X) */
.thumb-delete {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: red;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-delete:hover {
  background: #b30000;
}

.thumbs-delete {
  position: absolute;
  top: 2px;
  right: 2px;

  width: 18px;
  height: 18px;

  background: rgba(0, 0, 0, 0.7);
  color: #fff;

  border: none;
  border-radius: 50%;

  font-size: 11px;
  font-weight: bold;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: 0.2s ease;
}

.thumbs-delete:hover {
  background: red;
  transform: scale(1.1);
}

.preview-thumb-add {
  width: 80px;
  height: 60px;
  border: 2px dashed #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  font-size: 24px;
  color: #666;
}

.preview-thumb-add:hover {
  border-color: #007bff;
  color: #007bff;
}

.thumb-main-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  z-index: 2;
}

.preview-thumb-wrap {
  position: relative;
}

.photo-count {
  font-size: 13px;
  color: #666;
  margin-top: 6px;
  transition: all 0.2s ease;
}

.photo-count.updated {
  color: #007bff;
  transform: scale(1.05);
}

.edit-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.edit-thumb {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  cursor: grab;
  border: 2px solid transparent;
}

.preview-thumb-wrap {
  position: relative;
}

.edit-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.edit-thumb:hover {
  opacity: 1;
}

.edit-add {
  width: 70px;
  height: 70px;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.edit-add:hover {
  background: #f1f5f9;
  border-color: #0a5fd8;
  color: #0a5fd8;
}

.edit-thumb.dragging {
  opacity: 0.5;
  transform: scale(0.95);
}

/* ================= CONFIRM MODAL ================= */

.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
}

.confirm-box {
  width: 420px;
  max-width: 92%;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.3);
  animation: fadeInUp .25s ease;
}

.confirm-box h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.confirm-box p {
  color: #666;
  margin-bottom: 16px;
}

.confirm-summary {
  background: #f7f7f7;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  gap: 10px;
}

.btn-cancel {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: #eee;
  cursor: pointer;
}

.btn-confirm {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.btn-confirm:hover {
  background: #1d4ed8;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vin-report-card{
  margin-top:20px;
  padding:24px;
  border-radius:18px;
  background:#0f172a;
  color:#fff;
}

.vin-top-status{
  font-size:18px;
  font-weight:700;
  margin-bottom:14px;
}

.vin-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-top:18px;
}

.vin-box{
  background:#111827;
  border-radius:14px;
  padding:18px;
  text-align:center;
}

.vin-box strong{
  display:block;
  font-size:28px;
  margin-bottom:6px;
}


/* =========================
   PREMIUM VIN CHECKER
========================= */

.vin-checker-wrap{
  margin-top:20px;
}

.vin-checker-box{
  background:linear-gradient(
    135deg,
    #071029 0%,
    #0f172a 60%,
    #111827 100%
  );

  border:1px solid rgba(255,255,255,.08);

  border-radius:24px;

  padding:24px;

  box-shadow:
    0 20px 50px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.05);
}

.vin-title{
  color:#fff;
  font-size:22px;
  font-weight:800;
  margin-bottom:18px;
}

.vin-search-row{
  display:flex;
  gap:14px;
  align-items:center;
}

#dashboardVinInput{
  flex:1;

  height:40px;

  border:none;

  border-radius:14px;

  padding:0 22px;

  font-size:17px;

  background:rgba(255,255,255,.06);

  color:#fff;

  outline:none;

  border:1px solid rgba(255,255,255,.08);

  transition:.25s ease;
}

#dashboardVinInput::placeholder{
  color:rgba(255,255,255,.5);
}

#dashboardVinInput:focus{
  border-color:#4f46e5;

  box-shadow:
    0 0 0 4px rgba(79,70,229,.18);
}

#dashboardVinBtn{
  height:40px;

  min-width:210px;

  border:none;

  border-radius:14px;

  background:
    linear-gradient(
      135deg,
      #2563eb,
      #4f46e5
    );

  color:#fff;

  font-size:14px;

  font-weight:800;

  cursor:pointer;

  transition:.25s ease;

  box-shadow:
    0 10px 25px rgba(37,99,235,.35);
}

#dashboardVinBtn:hover{
  transform:translateY(-2px);

  box-shadow:
    0 18px 40px rgba(79,70,229,.45);
}

/* =========================
   PREMIUM VIN REPORT
========================= */

.vin-report-card{
  margin-top:24px;

  background:
    linear-gradient(
      135deg,
      #081226,
      #0f172a
    );

  border-radius:24px;

  padding:28px;

  color:#fff;

  border:1px solid rgba(255,255,255,.06);

  box-shadow:
    0 20px 50px rgba(0,0,0,.35);
}

.vin-top-status{
  display:inline-flex;

  align-items:center;

  gap:10px;

  padding:10px 16px;

  border-radius:999px;

  background:rgba(34,197,94,.12);

  color:#4ade80;

  font-weight:700;

  margin-bottom:14px;
}

.vin-report-card h2{
  font-size:25px;
  font-weight:800;
  margin-bottom:22px;
}

.vin-grid{
  display:grid;

  grid-template-columns:
    repeat(auto-fit,minmax(180px,1fr));

  gap:18px;
}

.vin-box{
  background:
    rgba(255,255,255,.04);

  border:1px solid rgba(255,255,255,.05);

  border-radius:20px;

  padding:24px;

  text-align:center;

  transition:.25s ease;
}

.vin-box:hover{
  transform:translateY(-3px);

  background:
    rgba(255,255,255,.06);
}

.vin-box strong{
  display:block;

  font-size:35px;

  font-weight:800;

  margin-bottom:10px;
}

.vin-box span{
  color:rgba(255,255,255,.7);

  font-size:15px;
}