/* ===== AUTO ELEKTRA ÜSTÜNEL — MAIN STYLESHEET ===== */
:root {
  --red: #cc0000;
  --red-dark: #990000;
  --red-glow: rgba(204,0,0,0.25);
  --black: #0d0d0d;
  --dark: #141414;
  --dark2: #1c1c1c;
  --dark3: #242424;
  --card: #1e1e1e;
  --border: #2e2e2e;
  --border2: #383838;
  --text: #e8e8e8;
  --text-muted: #888;
  --text-dim: #bbb;
  --white: #ffffff;
  --green: #22c55e;
  --orange: #f59e0b;
  --blue: #3b82f6;
  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-red: 0 4px 20px rgba(204,0,0,0.3);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: #ff2222; }

img { max-width: 100%; }

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(13,13,13,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 24px;
}
.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.navbar-logo img { height: 38px; }
.navbar-logo span {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
}
.navbar-logo span em { color: var(--red); font-style: normal; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  list-style: none;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: var(--dark3);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-cart {
  position: relative;
  background: var(--dark3);
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.nav-cart:hover { border-color: var(--red); color: var(--white); }
.cart-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  width: 18px; height: 18px;
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 12px rgba(204,0,0,0.4);
}
.btn-primary:hover {
  background: var(--red-dark);
  color: #fff;
  box-shadow: 0 4px 20px rgba(204,0,0,0.5);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--dark3);
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-secondary:hover { background: var(--border); color: var(--white); border-color: #555; }
.btn-outline {
  background: transparent;
  color: var(--red);
  border: 1px solid var(--red);
}
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d0d0d 0%, #1a0000 50%, #0d0d0d 100%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23cc0000' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(204,0,0,0.12);
  border: 1px solid rgba(204,0,0,0.3);
  color: var(--red);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero h1 span { color: var(--red); }
.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}
.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== SECTIONS ===== */
.section { padding: 80px 24px; }
.section-alt { background: var(--dark2); }
.container { max-width: 1280px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ===== CARDS ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
}
.card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card-icon {
  width: 52px; height: 52px;
  background: rgba(204,0,0,0.12);
  border: 1px solid rgba(204,0,0,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== SHOP ===== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}
.product-card:hover { border-color: var(--red); box-shadow: 0 8px 32px rgba(204,0,0,0.15); transform: translateY(-3px); }
.product-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--dark3);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
}
.product-img img { width: 100%; height: 180px; object-fit: cover; }
.product-info { padding: 18px; }
.product-name { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 6px; }
.product-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 10px;
}
.product-price small { font-size: 12px; color: var(--text-muted); font-weight: 400; }
.product-stock {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}
.in-stock { color: var(--green); }
.out-stock { color: #ef4444; }
.low-stock { color: var(--orange); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--dark2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  padding: 11px 14px;
  font-family: var(--font);
  transition: border-color 0.2s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(204,0,0,0.12);
}
.form-select { cursor: pointer; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

/* ===== ALERTS ===== */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.alert-info { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3); color: #93c5fd; }
.alert-warn { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); color: #fcd34d; }

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-red { background: rgba(204,0,0,0.15); color: #ff6666; border: 1px solid rgba(204,0,0,0.3); }
.badge-green { background: rgba(34,197,94,0.1); color: var(--green); border: 1px solid rgba(34,197,94,0.2); }
.badge-orange { background: rgba(245,158,11,0.1); color: var(--orange); border: 1px solid rgba(245,158,11,0.2); }
.badge-blue { background: rgba(59,130,246,0.1); color: var(--blue); border: 1px solid rgba(59,130,246,0.2); }
.badge-gray { background: var(--dark3); color: var(--text-muted); border: 1px solid var(--border2); }

/* ===== TABLE ===== */
.table-wrap { overflow-x: auto; }
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th {
  background: var(--dark3);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}
.data-table tr:hover td { background: var(--dark2); }
.data-table tr:last-child td { border-bottom: none; }

/* ===== KENTEKEN BADGE ===== */
.kenteken {
  display: inline-block;
  background: #fff;
  color: #111;
  font-weight: 800;
  font-size: 14px;
  padding: 3px 10px;
  border-radius: 4px;
  border-left: 6px solid #003DA5;
  letter-spacing: 1px;
  font-family: monospace;
}

/* ===== FOOTER ===== */
.footer {
  background: #0a0a0a;
  border-top: 1px solid var(--border);
  padding: 60px 24px 30px;
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand h3 { font-size: 18px; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.footer-brand h3 span { color: var(--red); }
.footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: var(--text-muted); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--red); }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-muted);
}
.contact-item .ic { color: var(--red); width: 16px; flex-shrink: 0; }

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--dark2);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px;
}
.page-header-inner { max-width: 1280px; margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--text-muted); }
.page-header h1 { font-size: 30px; font-weight: 800; color: var(--white); letter-spacing: -0.5px; }

/* ===== DASHBOARD ===== */
.dash-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 68px);
}
.dash-sidebar {
  background: var(--dark2);
  border-right: 1px solid var(--border);
  padding: 24px 0;
}
.dash-nav-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.dash-nav-item a:hover, .dash-nav-item a.active {
  color: var(--white);
  background: var(--dark3);
  border-left-color: var(--red);
}
.dash-nav-section {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 18px 22px 6px;
  opacity: 0.6;
}
.dash-main { padding: 32px; overflow-x: hidden; }
.dash-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.dash-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.dash-stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 8px; }
.dash-stat-num { font-size: 30px; font-weight: 800; color: var(--white); line-height: 1; }
.dash-stat-num span { font-size: 16px; color: var(--text-muted); }
.dash-stat-icon { font-size: 24px; float: right; opacity: 0.4; }

/* ===== APPOINTMENT GRID ===== */
.time-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.time-slot {
  background: var(--dark2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  transition: all 0.2s;
}
.time-slot:hover:not(.taken) { border-color: var(--red); color: var(--red); }
.time-slot.selected { background: var(--red); color: #fff; border-color: var(--red); }
.time-slot.taken { opacity: 0.3; cursor: not-allowed; text-decoration: line-through; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal {
  background: var(--dark2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}
.modal-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { font-size: 18px; font-weight: 700; color: var(--white); }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; }
.modal-close:hover { color: var(--white); }
.modal-body { padding: 24px 28px; }
.modal-footer { padding: 16px 28px 24px; display: flex; gap: 12px; justify-content: flex-end; }

/* ===== RDW RESULT ===== */
.rdw-result {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 10px;
}
.rdw-result .kenteken { font-size: 18px; margin-bottom: 8px; }
.rdw-result p { font-size: 14px; color: var(--text-dim); margin-top: 4px; }
.rdw-result strong { color: var(--white); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash-stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; background: var(--dark); border-bottom: 1px solid var(--border); padding: 16px; z-index: 999; }
  .grid-3, .grid-2, .form-row { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .time-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .section { padding: 50px 16px; }
  .dash-main { padding: 20px 16px; }
  .dash-stat-grid { grid-template-columns: 1fr 1fr; }
}
.foto-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(204,0,0,0.75) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.foto-item:hover .foto-overlay { opacity: 1; }
.foto-item:hover img { transform: scale(1.06); filter: brightness(0.5); }
.foto-overlay h3 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 8px;
}
.foto-overlay p {
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0 0 14px;
}
.foto-overlay a {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 6px 14px;
  border-radius: 6px;
  display: inline-block;
  transition: background 0.2s;
}
.foto-overlay a:hover { background: rgba(255,255,255,0.15); }