/* ===== RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

/* ===== BODY ===== */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #0b1f3a, #0a5fd8);
  color: #111;
  animation: fadePage 0.4s ease;
  min-height: 100vh; /* 👈 ensures full screen coverage */
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1000px;
  margin: auto;
  padding: 40px 20px 80px; /* 👈 add bottom padding */
}

/* ===== TOP NAV ===== */
.topbar {
  background: #ffffff;
  border-bottom: 1px solid #eee;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.topnav {
  display: flex;
  gap: 18px;
}

.topnav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.topnav-link.active {
  color: #0a5fd8;
}

/* ===== HERO ===== */
.sell-hero {
  text-align: center;
  padding: 60px 20px;
  color: #fff;

  /* 👇 ADD THESE */
  min-height: 80vh;
  
}

.sell-hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
}

.sell-hero p {
  font-size: 15px;
  opacity: 0.85;
}

/* ===== GRID ===== */
.sell-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px; /* ✅ increased spacing */
  margin-top: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== CARD ===== */
.sell-card {
  position: relative;
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;

  transition: all 0.35s ease;
  z-index: 1;
  overflow: hidden;
}

/* 🔥 GRADIENT BORDER */
.sell-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1.5px; /* thickness */

  background: linear-gradient(135deg, #0a5fd8, #2563eb, #60a5fa);

  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;

  pointer-events: none;
}

.sell-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: skewX(-20deg);
}

/* animate on hover */
.sell-card:hover::after {
  animation: shine 0.8s ease;
}

@keyframes shine {
  to {
    left: 140%;
  }
}

/* HOVER EFFECT */
.sell-card:hover {
  transform: translateY(-8px) scale(1.02);

  /* soft glow */
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 0 25px rgba(37, 99, 235, 0.25),
    0 0 60px rgba(37, 99, 235, 0.15);
}

/* ===== CARD TEXT ===== */
.sell-card h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.sell-card p {
  font-size: 14px;
  color: #666;
}

/* ===== BUTTONS ===== */
.btn-primary {
  margin-top: 20px;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #0a5fd8, #2563eb);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 10px 20px rgba(10, 95, 216, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 20px rgba(10, 95, 216, 0.4),
    0 0 20px rgba(37, 99, 235, 0.5);
}

/* SECOND BUTTON */
.sell-card button:not(.btn-primary) {
  margin-top: 20px;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: #111;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: 0.25s;
}

.sell-card button:not(.btn-primary):hover {
  background: #000;
  transform: translateY(-2px);
}

/* ===== ANIMATIONS ===== */

.slide-left {
  animation: slideLeft 0.7s ease forwards;
  animation-delay: 0.10s;
}

.slide-right {
  animation: slideRight 0.7s ease forwards;
  animation-delay: 0.15s;
}

@keyframes slideLeft {
  from {
    transform: translateX(-80px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideRight {
  from {
    transform: translateX(80px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* @keyframes fadePage {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
} */

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: flex-end;
  z-index: 1000;
}

/* ===== MODAL BOX ===== */
.modal-box {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 24px 18px 30px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s ease forwards;
}

/* ===== MODAL INPUTS ===== */
.modal-box input,
.modal-box textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  font-size: 14px;
}

/* ===== MODAL BUTTON ===== */
.modal-box button {
  width: 100%;
  padding: 12px;
  background: #0a5fd8;
  color: #fff;
  border: none;
  border-radius: 10px;
}

/* ===== SLIDE UP ===== */
@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* ===== CLOSE BUTTON ===== */
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  cursor: pointer;
}

/* ===== HANDLE ===== */
.modal-handle {
  width: 40px;
  height: 5px;
  background: #ddd;
  border-radius: 10px;
  margin: 0 auto 14px;
}

/* ===== SUGGESTED CARS ===== */
#suggestedCars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 15px;
}

.suggested-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
  cursor: pointer;
  transition: 0.2s;
}

.suggested-card:hover {
  transform: scale(1.03);
}

.suggested-card img {
  width: 100%;
  height: 90px;
  object-fit: cover;
}

.suggested-info {
  padding: 6px;
}

.car-name {
  font-size: 12px;
  font-weight: 600;
}

.car-price {
  font-size: 11px;
  color: #0a5fd8;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .sell-grid {
    grid-template-columns: 1fr;
  }

  .sell-hero h1 {
    font-size: 28px;
  }
}

.card-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px; /* 👈 reduce from 6px */
  font-size: 20px;
}

.card-title .icon {
  font-size: 20px; /* slightly smaller */
  margin-bottom: 2px; /* 👈 tighter spacing */
}