:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #5b6474;
  --border: #e6e8ee;
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
  --radius: 14px;
  --brand-blue: #0a4ccf;
  --brand-accent: #ff8a00;
  --footer-bg: var(--brand-blue);
  --footer-text: rgba(255, 255, 255, 0.9);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a {
  color: var(--brand-blue);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(10, 76, 207, 0.35);
  outline-offset: 2px;
}

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

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 12px 20px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(10, 76, 207, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(10, 76, 207, 0.25);
}

.btn-secondary {
  background: #ffffff;
  color: var(--brand-blue);
  border-color: var(--border);
}

.btn-ghost {
  background: transparent;
  color: var(--brand-blue);
}

.chip,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(10, 76, 207, 0.12);
  color: var(--brand-blue);
}

.badge-success {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.badge-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card-media img {
  width: 100%;
  display: block;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  object-fit: cover;
}

.card-body {
  padding: 16px 18px 20px;
}

.input,
.select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  background: #ffffff;
}

.input::placeholder {
  color: #9aa3b2;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}

.nav.is-scrolled {
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

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

.nav-logo {
  display: inline-flex;
  align-items: center;
}

.nav-logo img {
  height: 34px;
}

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

.nav-link,
.nav-links a,
.nav-links button {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 0;
  padding: 8px 10px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
}

.nav-links a.active,
.nav-links a:hover,
.nav-links button:hover {
  background: rgba(10, 76, 207, 0.08);
  color: var(--brand-blue);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 76, 207, 0.08);
  color: var(--brand-blue);
  font-weight: 600;
}

.nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
}

.nav-group {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: none;
  padding: 8px;
  z-index: 20;
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown,
.nav-group.is-open .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
}

.nav-dropdown a:hover {
  background: rgba(10, 76, 207, 0.08);
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(86vw, 360px);
  height: 100vh;
  background: #ffffff;
  box-shadow: -10px 0 20px rgba(15, 23, 42, 0.08);
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1050;
}

body.nav-open .nav-drawer {
  transform: translateX(0);
}

body.nav-open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 980px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.hero {
  background: linear-gradient(120deg, rgba(10, 76, 207, 0.9), rgba(255, 138, 0, 0.85)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.15), transparent 45%);
  color: #ffffff;
  padding: 90px 0 80px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero p {
  font-size: 1.05rem;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.searchbar {
  background: #ffffff;
  border-radius: 999px;
  padding: 10px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr auto;
  gap: 8px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
  margin-top: 28px;
}

.searchbar input,
.searchbar select {
  border: 0;
  background: #f6f7fb;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 14px;
}

.searchbar button {
  border-radius: 999px;
}

@media (max-width: 900px) {
  .searchbar {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .searchbar input,
  .searchbar select,
  .searchbar button {
    width: 100%;
  }
}

.filters {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.filters-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  align-items: end;
}

.filter-pill {
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffffff;
  font-size: 13px;
}

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

.pagination a,
.pagination span {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
}

.auth-shell {
  min-height: calc(100vh - 200px);
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(460px, 100%);
  padding: 32px;
}

.auth-title {
  text-align: center;
  margin-bottom: 20px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.table thead th {
  background: #f6f7fb;
  font-size: 13px;
  color: var(--muted);
}

.table tbody tr:nth-child(even) {
  background: #fafbff;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.dashboard-card {
  padding: 18px;
}

.dashboard-card-value {
  font-size: 1.6rem;
  font-weight: 700;
}

.dashboard-card-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.listing-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.listing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

.listing-card .listing-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.listing-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
}

@media (max-width: 980px) {
  .listing-detail-grid {
    grid-template-columns: 1fr;
  }
}

.footer {
  background: var(--footer-bg);
  color: #ffffff;
}

.footer-links a,
.footer-section p,
.footer-bottom {
  color: var(--footer-text);
}
