/* =========================================================================
   ParkRidePro — Dark Neon Theme (Matches parkridepro.jpg)
   ========================================================================= */
:root {
  --bg-main: #0b121e;
  --bg-surface: #131d2e;
  --bg-surface-2: #19263c;
  --border-subtle: rgba(0, 229, 255, 0.14);
  --border-hover: rgba(0, 229, 255, 0.45);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --cyan: #00e5ff;
  --orange: #ff8c00;
  --magenta: #ff2a85;
  --success: #10b981;
  --danger: #ef4444;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 30, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.4px;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.brand-accent {
  color: var(--cyan);
}

.brand-pro {
  color: var(--orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--cyan);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), #ff6a00);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 8px 26px rgba(255, 140, 0, 0.42);
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.45);
}

.btn-outline:hover {
  background: rgba(0, 229, 255, 0.1);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.85rem;
  border-radius: 8px;
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 229, 255, 0.12), transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(255, 42, 133, 0.12), transparent 40%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.06rem;
  max-width: 600px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-logo-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-logo-card img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
}

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

.stat-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 16px;
}

.stat-pill strong {
  display: block;
  font-size: 1.25rem;
  color: var(--cyan);
}

.stat-pill span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 68px 0;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
}

.section-header p {
  color: var(--text-muted);
  max-width: 620px;
  margin-top: 6px;
}

/* Category Filter Tabs */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(0, 229, 255, 0.14);
  color: var(--cyan);
  border-color: var(--cyan);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.product-thumb {
  position: relative;
  height: 210px;
  background: linear-gradient(135deg, #0f1b2d, #192944);
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.04);
}

.thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.95rem;
  gap: 6px;
  text-align: center;
  padding: 16px;
}

.badge-featured {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--magenta), var(--orange));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cat-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.product-body h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gallery-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px;
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.12);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.service-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Contact Banner */
.contact-box {
  background: linear-gradient(135deg, var(--bg-surface), #182742);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.95rem;
}

.contact-meta div {
  background: rgba(11, 18, 30, 0.55);
  border: 1px solid var(--border-subtle);
  padding: 12px 16px;
  border-radius: 10px;
}

.contact-meta strong {
  color: var(--cyan);
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Product Detail Page */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: start;
}

.detail-cover {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
}

.detail-cover img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}

.feature-list {
  list-style: none;
  margin: 18px 0 26px;
  display: grid;
  gap: 10px;
}

.feature-list li {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.94rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-list li::before {
  content: "✓";
  color: var(--cyan);
  font-weight: 800;
}

/* Gallery Grid & Lightbox */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.gallery-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.gallery-item:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
}

.gallery-item img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.gallery-caption {
  padding: 10px 12px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 9, 16, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  max-width: 960px;
  width: 100%;
  text-align: center;
  position: relative;
}

.lightbox-content img {
  max-height: 78vh;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.lightbox-caption {
  margin-top: 12px;
  color: var(--text-main);
  font-size: 0.95rem;
}

.lightbox-btn {
  position: fixed;
  background: rgba(19, 29, 46, 0.9);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 28px 0;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* =========================================================================
   ADMIN PANEL STYLES
   ========================================================================= */
.admin-wrap {
  max-width: 1120px;
  margin: 34px auto;
  padding: 0 20px;
}

.admin-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 16px 22px;
  margin-bottom: 24px;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 22px;
}

.auth-card {
  max-width: 440px;
  margin: 80px auto;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #cbd5e1;
}

.form-control {
  width: 100%;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--cyan);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 0.92rem;
  border: 1px solid transparent;
}

.alert-success {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.alert-error {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.table-wrap {
  overflow-x: auto;
}

table.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.admin-table th {
  color: var(--cyan);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 860px) {
  .hero-grid,
  .detail-grid,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 18px 20px;
    align-items: flex-start;
  }

  .nav-links.open {
    display: flex;
  }
}
