﻿:root {
  --bg: #f4f7f8;
  --bg-accent: #e8f2f0;
  --card: #ffffff;
  --text: #14212b;
  --muted: #5b6b78;
  --primary: #0f766e;
  --primary2: #0d9488;
  --accent: #0f766e;
  --accent-ink: #ffffff;
  --border: rgba(20, 33, 43, 0.1);
  --shadow: 0 12px 32px rgba(20, 33, 43, 0.08);
  --nav-bg: rgba(244, 247, 248, 0.86);
  --nav-link: #334155;
  --input-bg: #ffffff;
  --sidebar-active: linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(13, 148, 136, 0.1));
  --neon: #0f766e;
  --radius: 18px;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-display: "Outfit", "DM Sans", system-ui, sans-serif;
}

html[data-theme='dark'] {
  --bg: #0f1720;
  --bg-accent: #15202b;
  --card: rgba(22, 32, 43, 0.92);
  --text: #e8eef3;
  --muted: #9aabba;
  --primary: #2dd4bf;
  --primary2: #14b8a6;
  --accent: #2dd4bf;
  --accent-ink: #042f2e;
  --border: rgba(232, 238, 243, 0.12);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --nav-bg: rgba(15, 23, 32, 0.88);
  --nav-link: #d7e2ea;
  --input-bg: rgba(255, 255, 255, 0.94);
  --sidebar-active: linear-gradient(135deg, rgba(45, 212, 191, 0.22), rgba(20, 184, 166, 0.12));
  --neon: #2dd4bf;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 70% 50% at 100% -10%, rgba(15, 118, 110, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 40% at -5% 100%, rgba(13, 148, 136, 0.1), transparent 50%),
    linear-gradient(180deg, var(--bg-accent), var(--bg) 42%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
}

h1, h2, h3, h4, h5, .section-title, .navbar-brand, .display-5, .display-6 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

a { color: var(--primary); }
a:hover { color: var(--primary2); }

.text-neon { color: var(--neon) !important; }
.text-secondary { color: var(--muted) !important; }

.glass-nav {
  backdrop-filter: blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text) !important;
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--primary), var(--primary2));
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.28);
}

.glass-nav .nav-link {
  color: var(--nav-link) !important;
  font-weight: 500;
  padding: 0.45rem 0.85rem !important;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}

.glass-nav .nav-link:hover,
.glass-nav .nav-link:focus {
  background: rgba(15, 118, 110, 0.1);
  color: var(--primary) !important;
}

.navbar-toggler {
  border: 1px solid var(--border);
  border-radius: 10px;
}

.navbar-toggler-icon {
  filter: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2314212b' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

html[data-theme='dark'] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23e8eef3' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn {
  border-radius: 12px;
  font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  border: 0;
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #0d5f59, var(--primary));
  color: #fff;
}

.btn-accent,
.btn-neon {
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  font-weight: 700;
}

.btn-accent:hover,
.btn-neon:hover {
  background: var(--primary2);
  color: var(--accent-ink);
}

.btn-outline-light,
.btn-theme {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

.btn-theme:hover,
.btn-outline-light:hover {
  background: rgba(15, 118, 110, 0.1);
  color: var(--primary);
  border-color: rgba(15, 118, 110, 0.25);
}

.hero {
  padding: 76px 0 52px;
  animation: ep-fade-up .55s ease both;
}

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

.hero .lead {
  max-width: 34rem;
  font-size: 1.08rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.glass-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease;
}

.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(20, 33, 43, 0.1);
}

.auth-shell {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 0;
  animation: ep-fade-up .45s ease both;
}

.auth-shell.wide { max-width: 820px; }

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.9rem;
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--primary);
  font-size: 1.05rem;
}

.how-list {
  margin: 0;
  padding-left: 1.15rem;
}

.how-list li {
  margin-bottom: 0.55rem;
}

.how-list li:last-child { margin-bottom: 0; }

.badge-soft {
  background: rgba(15, 118, 110, 0.12);
  color: var(--primary);
  border: 1px solid rgba(15, 118, 110, 0.22);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
}

.section-title {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.form-control,
.form-select {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #14212b;
  padding: 0.7rem 0.9rem;
  box-shadow: none;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(15, 118, 110, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.15);
}

.form-label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}

.table { color: var(--text); }
.table > :not(caption) > * > * {
  background: transparent;
  border-bottom-color: var(--border);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
}

.sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
}

.dashboard-grid > main { min-width: 0; }

.sidebar .nav-link {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--muted);
  background: transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.sidebar .nav-link:hover {
  color: var(--text);
  background: rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.12);
  transform: translateX(2px);
}

.sidebar .nav-link.active {
  color: var(--text);
  background: var(--sidebar-active);
  border-color: rgba(15, 118, 110, 0.2);
  box-shadow: none;
  font-weight: 600;
}

.tab-pane-x {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .24s ease, transform .24s ease;
}

.tab-pane-hidden { display: none; }

.tab-pane-leaving,
.tab-pane-entering {
  opacity: 0;
  transform: translateY(10px);
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive .table { min-width: 760px; }

.home-qr-page { max-width: 1320px; }

.home-qr-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.home-qr-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--neon);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.home-qr-builder {
  display: grid;
  grid-template-columns: minmax(330px, 430px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.home-qr-preview-panel {
  position: sticky;
  top: 96px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(160deg, #16353a, #0f1c24);
  box-shadow: var(--shadow);
  color: #e8eef3;
}

.home-qr-preview-label {
  margin-bottom: 16px;
  color: #aeb8ca;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.home-qr-sticker {
  position: relative;
  padding: 24px;
  overflow: hidden;
  border: 3px dashed #101828;
  border-radius: 24px;
  background: #fff;
  color: #101828;
}

.home-qr-sticker::after {
  content: "";
  position: absolute;
  top: -55px;
  right: -55px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(15, 118, 110, .12);
}

.home-qr-sticker-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.home-qr-sticker-head span {
  display: block;
  color: #0f766e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.home-qr-sticker-head strong { display: block; margin-top: 4px; font-size: 21px; }
.home-qr-sticker-head i { color: #0f766e; font-size: 28px; }

.home-qr-sticker .qr-box {
  width: 245px;
  height: 245px;
  margin: 22px auto;
  border-radius: 0;
}

.home-qr-vehicle-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 18px;
}

.home-qr-vehicle-line span { color: #667085; }
.home-qr-scan-copy { margin-top: 8px; color: #667085; }

.home-qr-finish {
  display: inline-block;
  margin-top: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e7f6f3;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
}

.home-qr-security {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: #aeb8ca;
  font-size: 13px;
  line-height: 1.5;
}

.home-qr-security i { color: var(--neon); font-size: 18px; }
.home-qr-controls { padding: 32px; border-radius: 24px; }

.home-qr-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.home-qr-section-heading > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 11px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.home-qr-section-heading h4 { margin: 0 0 4px; }
.home-qr-section-heading p { margin: 0; color: var(--muted); }

.home-qr-package-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-qr-option { position: relative; }

.home-qr-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.home-qr-card {
  position: relative;
  display: flex;
  min-height: 174px;
  flex-direction: column;
  padding: 20px;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(15, 118, 110, 0.04);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.home-qr-card strong { font-size: 18px; }
.home-qr-card > span:not(.home-qr-check) { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.home-qr-card b { margin-top: auto; color: var(--neon); font-size: 20px; }

.home-qr-check {
  position: absolute;
  top: 12px;
  right: 12px;
  display: none;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: var(--neon);
  color: #fff;
  font-size: 12px;
}

.home-qr-option input:checked + .home-qr-card {
  border-color: var(--neon);
  background: rgba(15, 118, 110, .1);
  transform: translateY(-3px);
}

.home-qr-option input:checked + .home-qr-card .home-qr-check { display: grid; }
.home-qr-card:hover { transform: translateY(-3px); border-color: rgba(15, 118, 110, .45); }

.home-qr-divider { height: 1px; margin: 32px 0; background: var(--border); }

.home-qr-checkout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 20px;
  border: 1px solid rgba(15, 118, 110, .2);
  border-radius: 18px;
  background: rgba(15, 118, 110, .07);
}

.home-qr-checkout > div span { display: block; color: var(--muted); font-size: 13px; }
.home-qr-checkout > div strong { display: block; margin-top: 2px; font-size: 30px; }

.home-qr-payment-status {
  min-height: 24px;
  margin-top: 14px;
  padding: 0 4px;
  font-size: 14px;
  line-height: 1.55;
}

.qr-box {
  width: 210px;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  background: #fff;
  border-radius: 16px;
}

.qr-page-heading { max-width: 760px; margin-left: auto; margin-right: auto; }
.qr-actions-card { max-width: 520px; margin: auto; }

.qr-action-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  font-size: 23px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  box-shadow: 0 12px 28px rgba(15, 118, 110, .28);
}

.qr-mini-preview {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(15, 118, 110, 0.04);
}

.qr-mini-preview .qr-box {
  width: 150px;
  height: 150px;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
}

.sticker-wrap {
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(145deg, #16353a, #0f1c24);
  box-shadow: var(--shadow);
}

.sticker {
  position: relative;
  background: #fff;
  color: #101828;
  border-radius: 28px;
  max-width: 540px;
  margin: auto;
  padding: 30px;
  border: 3px dashed #101828;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .15);
  overflow: hidden;
}

.sticker::before {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -85px;
  top: -95px;
  border-radius: 50%;
  background: rgba(15, 118, 110, .1);
}

.sticker-header,
.sticker-details {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.sticker-header strong { display: block; font-size: 24px; line-height: 1.2; }

.sticker-kicker {
  display: block;
  margin-bottom: 5px;
  color: #0f766e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.sticker-vehicle-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #0f766e;
  font-size: 23px;
  background: #e7f6f3;
}

.sticker .qr-sticker-code {
  width: 270px;
  height: 270px;
  margin: 22px auto;
  border-radius: 0;
  overflow: hidden;
}

.sticker-vehicle { font-size: 20px; }

.sticker-type {
  padding: 7px 12px;
  border-radius: 999px;
  color: #0f766e;
  background: #e7f6f3;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.sticker-help { margin-top: 14px; color: #526173; font-size: 17px; }
.sticker-help i { margin-right: 8px; color: #0f766e; }

.sticker-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e8edf5;
  color: #7c8798;
  font-size: 12px;
  text-align: center;
}

.pricing-card { transition: .25s ease; }
.pricing-card:hover { transform: translateY(-6px); }

.site-footer {
  margin-top: 2rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

@keyframes ep-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; top: auto; }
  .table-responsive .table { min-width: 680px; }
  .home-qr-builder { grid-template-columns: 1fr; }
  .home-qr-preview-panel { position: static; }
  .home-qr-package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding: 48px 0 36px; }
}

@media (max-width: 767px) {
  .glass-card { border-radius: 16px; }
  .dashboard-grid { gap: 14px; }
  .sidebar { padding: 14px !important; }
  .sidebar .nav { gap: 10px !important; }
  .sidebar .nav-link {
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 14px;
  }
  .dashboard-grid > main { padding: 14px !important; }
  .table-responsive .table { min-width: 620px; }
  .qr-box { width: 180px; height: 180px; }
  .sticker-wrap { padding: 14px; border-radius: 22px; }
  .sticker { padding: 22px; border-radius: 24px; }
  .sticker-header strong { font-size: 20px; }
  .sticker .qr-sticker-code { width: 230px; height: 230px; }
  .sticker-vehicle { font-size: 17px; }
  .qr-mini-preview { grid-template-columns: 110px 1fr; padding: 14px; gap: 14px; }
  .qr-mini-preview .qr-box { width: 110px; height: 110px; }
  .home-qr-topbar { align-items: stretch; flex-direction: column; }
  .home-qr-controls,
  .home-qr-preview-panel { padding: 18px; border-radius: 20px; }
  .home-qr-package-grid { grid-template-columns: 1fr; }
  .home-qr-card { min-height: 135px; }
  .home-qr-checkout { align-items: stretch; flex-direction: column; }
  .home-qr-checkout .btn { width: 100%; }
  .home-qr-sticker .qr-box { width: 220px; height: 220px; }
}

@media print {
  body { background: #fff !important; }
  body > nav,
  body > footer,
  .qr-page-heading,
  .qr-actions-card { display: none !important; }
  .qr-page,
  .qr-page .row,
  .qr-page .col-lg-7 {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .sticker-wrap { padding: 0; background: #fff; box-shadow: none; }
  .sticker {
    width: 540px;
    max-width: 100%;
    box-shadow: none;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
