:root {
  --bg: #f4f6f8;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --text: #0f1720;
  --muted: #66737f;
  --border: rgba(219, 226, 234, 0.95);
  --accent: #11b3a6;
  --accent-soft: rgba(17, 179, 166, 0.14);
  --gold: #f6c453;
  --dark: #0e1720;
  --shadow: 0 18px 40px rgba(15, 23, 32, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, #dffaf5 0%, transparent 30%),
    linear-gradient(180deg, #f5f7fa 0%, #eef3f6 100%);
  color: var(--text);
}

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

.page-shell {
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 18px 32px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 32px;
  background: linear-gradient(135deg, #10181f 0%, #18242d 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -20px -40px auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(17, 179, 166, 0.16);
  filter: blur(10px);
}

.hero-card h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-card p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.driver-meta {
  margin-top: 18px;
}

.rating-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.rating-chip {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
}

.stars {
  display: inline-flex;
  gap: 4px;
  color: var(--gold);
  text-shadow: 0 2px 12px rgba(246, 196, 83, 0.28);
}

.stars span {
  font-size: 16px;
  line-height: 1;
}

.cards-section {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.ad-card {
  padding: 16px;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 8px 26px rgba(15, 23, 32, 0.06);
  backdrop-filter: blur(10px);
}

.ad-image {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #edf1f5;
}

.ad-card h2 {
  margin: 14px 0 0;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.ad-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f1f5f8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 16px;
  background: var(--dark);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.empty-state,
.error-state {
  padding: 28px 22px;
  margin-top: 20px;
  border-radius: 28px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow);
}

.empty-state h2,
.error-state h2 {
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.empty-state p,
.error-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.loader {
  display: grid;
  place-items: center;
  min-height: 100vh;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}
