:root {
  --black: #080808;
  --dark: #111;
  --white: #ffffff;
  --gold: #C9A227;
  --red: #c92c2c;
}

/* ================= RESET ================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

button {
  font-family: inherit;
}

body {
  background: var(--black);
  color: var(--white);
  line-height: 1.5;
}

/* ================= NAV ================= */

.top-nav {
  position: absolute;
  right: 30px;
  top: 20px;
  z-index: 999;
}

.login-link {
  color: #aaa;
  font-size: 20px;
  text-decoration: none;
  transition: 0.2s;
}

.login-link:hover {
  color: var(--gold);
}

/* ================= HERO ================= */

.hero {
  display: flex;
  justify-content: center;
  padding: 40px 0 30px;
  position: relative;
}

.hero-inner {
  text-align: center;
}

.hero-logo {
  width: 220px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(201,44,44,0.12), transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 120px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: 'Oswald';
  margin-top: 18px;
  font-size: 28px;
  letter-spacing: 2px;
}

.hero-sub {
  color: #aaa;
  font-size: 14px;
  margin-top: 6px;
}

/* ================= INVENTORY ================= */

.inventory-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 90px;
}

.inventory-section::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  margin-bottom: 35px;
}

.inventory-section h2 {
  text-align: center;
  font-family: 'Oswald';
  letter-spacing: 2px;
}

.inventory-section h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 1px;
  background: var(--gold);
  margin: 12px auto 0;
}

/* ================= FILTER ================= */

.filter-wrapper {
  display: flex;
  justify-content: center;
}

.filter-bar {
  width: 100%;
  max-width: 360px;
  margin: 25px 0 45px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #0f0f0f;
  border: 1px solid #1c1c1c;
  transition: 0.25s;
}

.filter-bar:hover {
  border-color: var(--red);
  box-shadow: 0 0 18px rgba(201,44,44,0.15);
}

.filter-bar label {
  font-size: 12px;
  letter-spacing: 2px;
  color: #aaa;
}

.filter-bar select {
  background: #111;
  border: 1px solid #222;
  color: white;
  padding: 9px 14px;
  border-radius: 6px;
}

/* ================= GRID ================= */

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 30px;
  justify-content: center;
}

/* ================= VEHICLE ================= */

.vehicle {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, #141414, #0a0a0a);
  border: 1px solid #222;
  transition: 0.3s;
}

.vehicle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--red);
  opacity: 0.7;
}

.vehicle:hover {
  border-color: var(--red);
  transform: translateY(-6px);
  box-shadow:
    0 20px 60px rgba(201,44,44,0.25),
    0 0 20px rgba(201,44,44,0.15);
}

.vehicle img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: 0.35s;
  display:block;
}

.vehicle:hover img {
  transform: scale(1.05);
}

.vehicle-info{
  padding:16px;
  position:relative;
}

.vehicle-info h3 {
  font-family: 'Oswald';
}

.vehicle-info p {
  color: #aaa;
}

.price {
  color: var(--gold);
  font-weight: 700;
}

.vehicle{
  cursor:pointer;
}

/* ================= BANNERS ================= */

.sold-banner {
  position: absolute;
  top: 12px;
  right: 12px;

  background: #c92c2c;
  color: white;

  padding: 6px 10px;

  font-size: 11px;
  font-weight: 700;

  border-radius: 4px;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.manager-banner {
position: absolute;
top: 12px;
left: 12px;

background: linear-gradient(135deg,#ffd700,#c9a227);

color: black;

font-size: 11px;
font-weight: 700;

padding: 6px 10px;

border-radius: 4px;

letter-spacing: 1px;

box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.manager-banner span{
display:block;
font-size:10px;
}
.special-timer {
  font-size: 11px;
}

/* ================= CONTACT ================= */

.contact {
  padding: 90px 20px;
  text-align: center;
  background: linear-gradient(180deg, #0e0e0e, #080808);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact h2 {
  font-family: 'Oswald';
  letter-spacing: 2px;
  color: var(--red);
}

.contact-names {
  color: #ccc;
  font-size: 15px;
}

.contact-numbers {
  color: var(--gold);
  font-weight: 600;
}

/* ================= ADMIN ================= */

.admin-container{
  max-width:1200px;
  margin:auto;
  padding:40px;

  background:linear-gradient(180deg,#0e0e0e,#080808);

  border-radius:10px;

  box-shadow:
  0 30px 80px rgba(0,0,0,.9),
  0 0 40px rgba(201,44,44,.15);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 35px;

  border-bottom: 1px solid #1a1a1a;

  padding-bottom: 15px;
}

.admin-header h1 {
  font-family: 'Oswald';
  letter-spacing: 2px;
  color: var(--red);
}

.add-vehicle {
  background: #0f0f0f;

  padding: 25px;

  border-radius: 10px;

  border: 1px solid #1f1f1f;

  margin-bottom: 35px;

  box-shadow:
    0 15px 40px rgba(0, 0, 0, .6);
}

.add-vehicle form {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.add-vehicle input,
.add-vehicle select,
.add-vehicle textarea {

  background: #080808;

  border: 1px solid #222;

  color: white;

  padding: 11px;

  border-radius: 6px;

  transition: .2s;
}

.add-vehicle input:focus,
.add-vehicle select:focus,
.add-vehicle textarea:focus {

  outline: none;

  border-color: var(--red);

  box-shadow: 0 0 10px rgba(201, 44, 44, .3);
}

.add-vehicle button {

  grid-column: span 4;

  background: linear-gradient(135deg, var(--red), #ff3a3a);

  border: none;

  color: white;

  padding: 14px;

  font-weight: 700;

  border-radius: 6px;

  cursor: pointer;

  letter-spacing: 1px;

  transition: .25s;
}

.add-vehicle button:hover {

  transform: translateY(-2px);

  box-shadow: 0 10px 30px rgba(201, 44, 44, .4);
}

/* ================= ADMIN GRID ================= */

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.admin-card {

  background: linear-gradient(180deg, #141414, #0a0a0a);

  border: 1px solid #222;

  border-radius: 10px;

  overflow: hidden;

  cursor: grab;

  transition: .25s;

  position: relative;
}

.admin-card:hover {

  border-color: var(--red);

  transform: translateY(-4px);

  box-shadow:
    0 10px 30px rgba(201, 44, 44, .2);
}

.admin-card button {

  background: #111;

  color: #aaa;

  border: 1px solid #222;

  padding: 6px 10px;

  margin: 6px;

  border-radius: 5px;

  cursor: pointer;

  transition: .2s;
}

.admin-card button:hover {

  border-color: var(--red);

  color: white;

  background: #151515;
}

.admin-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.placeholder {
  border: 2px dashed var(--red);
  background: rgba(201, 44, 44, .08);
}

/* ================= LIGHTBOX ================= */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  z-index: 9999;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 8px;
}

/* ================= MOBILE ================= */

@media (max-width: 900px) {
  .inventory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .inventory-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= ADMIN IMAGE PREVIEW ================= */

.crop-container {
  grid-column: span 4;
  margin-top: 10px;
}

.crop-label {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 6px;
}

.frame-preview {
  width: 100%;
  max-width: 320px;
  height: 180px;

  overflow: hidden;

  border-radius: 8px;
  border: 1px solid #333;

  background: #0a0a0a;

  display: flex;
  align-items: center;
  justify-content: center;
}

.frame-preview img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  display: block;
}

.frame-controls {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.frame-controls button {
  flex: 1;
  background: #111;
  border: 1px solid #222;
  color: #aaa;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.frame-controls button:hover {
  border-color: var(--red);
  color: white;
}

.old-price{
  text-decoration: line-through;
  color:#777;
  margin-right:8px;
  font-weight:500;
}

.special-price{
  color:var(--gold);
  font-weight:800;
}

/* ================= VEHICLE DESCRIPTION ================= */
.vehicle-desc{

  position:absolute;

  top:0;
  left:0;
  right:0;

  height:300px;

  display:flex;
  align-items:flex-end;

  padding:16px;

  background:linear-gradient(
    to top,
    rgba(0,0,0,.9),
    rgba(0,0,0,.6),
    transparent
  );

  color:#ddd;

  font-size:13px;

  opacity:0;

  transition:.25s;

  pointer-events:none;

  z-index:5;
}

.vehicle:hover .vehicle-desc{
  opacity:1;
}
/* ================= LOGIN ================= */

.login-page {
  height: 100vh;

  background:
    radial-gradient(circle at 30% 20%, rgba(201,44,44,0.15), transparent),
    #080808;

  display: flex;
  align-items: center;
  justify-content: center;
}

.login-wrapper {
  width: 100%;
  padding: 20px;
}

.login-card {

  max-width: 420px;
  margin: auto;

  background: #0f0f0f;

  border: 1px solid #222;

  border-radius: 12px;

  padding: 40px 30px;

  text-align: center;

  box-shadow:
    0 40px 120px rgba(0,0,0,0.9),
    0 0 40px rgba(201,44,44,0.15);
}

.login-logo {
  width: 120px;
  margin-bottom: 20px;
}

.login-card h1 {
  font-family: 'Oswald';
  letter-spacing: 2px;
  font-size: 26px;
}

.login-sub {
  color: #888;
  font-size: 13px;
  margin-bottom: 25px;
}

.login-card input {
  width: 100%;

  margin-bottom: 12px;

  padding: 12px;

  border-radius: 6px;

  background: #0a0a0a;

  border: 1px solid #222;

  color: white;
}

.login-card input:focus {
  outline: none;
  border-color: var(--gold);
}

.login-card button {

  width: 100%;

  padding: 14px;

  margin-top: 10px;

  background: linear-gradient(135deg, var(--red), #ff3a3a);

  border: none;

  color: white;

  font-weight: 700;

  border-radius: 6px;

  cursor: pointer;

  letter-spacing: 1px;

  transition: 0.25s;
}

.login-card button:hover {

  transform: translateY(-2px);

  box-shadow: 0 10px 30px rgba(201,44,44,0.5);
}

.login-footer {
  font-size: 11px;
  color: #666;
  margin-top: 20px;
}