:root {
  --brick: #c41e3a;
  --brick-dark: #9a1830;
  --navy: #002147;
  --navy-light: #1a3a5c;
  --gold: #c9a227;
  --gold-light: #e8d48b;
  --cream: #faf8f5;
  --gray-100: #f3f4f6;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--gray-800);
  background: var(--cream);
  line-height: 1.6;
}
a { color: var(--brick); text-decoration: none; }
a:hover { color: var(--brick-dark); }
img { max-width: 100%; height: auto; }

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

.announcement {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}

.site-header {
  background: #fff;
  border-bottom: 3px solid var(--brick);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.brand span { color: var(--brick); }
.nav { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--navy); font-weight: 500; font-size: 0.95rem; }

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--brick); color: #fff; }
.btn-primary:hover { background: var(--brick-dark); color: #fff; }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { background: var(--navy-light); color: #fff; }
.btn-outline { border-color: var(--brick); color: var(--brick); background: transparent; }
.btn-outline:hover { background: var(--brick); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.85rem; }

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #1a4d2e 100%);
  color: #fff;
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--brick) 0, var(--brick) 20px, #fff 20px, #fff 40px);
}
.hero-eyebrow {
  color: var(--gold-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin: 0 0 1rem; font-weight: 800; }
.hero p { font-size: 1.15rem; opacity: 0.92; max-width: 640px; margin-bottom: 1.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.search-bar {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 0.75rem;
  margin-top: 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
@media (max-width: 768px) { .search-bar { grid-template-columns: 1fr; } }

.section { padding: 3.5rem 0; }
.section-title { font-size: 1.85rem; color: var(--navy); margin: 0 0 0.5rem; font-weight: 800; }
.section-subtitle { color: var(--gray-600); margin-bottom: 2rem; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.04);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.card h3 { margin: 0 0 0.5rem; color: var(--navy); font-size: 1.15rem; }
.card-cover {
  height: 160px;
  background: linear-gradient(135deg, var(--navy-light), var(--brick));
  border-radius: 8px;
  margin: -0.5rem -0.5rem 1rem;
  object-fit: cover;
  width: calc(100% + 1rem);
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-600);
}
.badge-featured { background: var(--gold-light); color: var(--navy); }
.badge-pro { background: var(--navy); color: #fff; }
.badge-free { background: #dcfce7; color: #166534; }

.rating { color: var(--gold); font-weight: 700; }

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer h4 { color: var(--gold-light); margin: 0 0 1rem; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer a { color: rgba(255,255,255,.8); display: block; margin-bottom: 0.4rem; font-size: 0.9rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.5rem; font-size: 0.85rem; opacity: 0.7; }
.footer-langs { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.5rem; }

.input, input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}
.input:focus, input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brick);
  box-shadow: 0 0 0 3px rgba(196,30,58,.15);
}
label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.9rem; color: var(--navy); }
.form-group { margin-bottom: 1rem; }

.messages { list-style: none; padding: 0; margin: 1rem 0; }
.messages li { padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 0.5rem; }
.messages .success { background: #dcfce7; color: #166534; }
.messages .error { background: #fee2e2; color: #991b1b; }
.messages .warning { background: #fef3c7; color: #92400e; }
.messages .info { background: #dbeafe; color: #1e40af; }

.empty-state { color: var(--gray-600); font-style: italic; }

/* Dashboard / Partners */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
@media (max-width: 900px) { .dash-layout { grid-template-columns: 1fr; } }
.dash-sidebar {
  background: var(--navy);
  color: #fff;
  padding: 1.5rem 1rem;
}
.dash-sidebar a {
  display: block;
  color: rgba(255,255,255,.85);
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}
.dash-sidebar a:hover, .dash-sidebar a.active { background: rgba(255,255,255,.12); color: #fff; }
.dash-main { padding: 2rem; background: var(--gray-100); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: #fff; padding: 1.25rem; border-radius: 10px; border-left: 4px solid var(--brick); }
.stat-card .num { font-size: 1.75rem; font-weight: 800; color: var(--navy); }
.stat-card .lbl { font-size: 0.8rem; color: var(--gray-600); text-transform: uppercase; }

table.data { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
table.data th, table.data td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid #e5e7eb; font-size: 0.9rem; }
table.data th { background: var(--navy); color: #fff; font-weight: 600; }
table.data tr:hover { background: #f9fafb; }

.onboarding-steps { display: flex; gap: 1rem; margin-bottom: 2rem; }
.onboarding-step { flex: 1; text-align: center; padding: 1rem; border-radius: 8px; background: #fff; border: 2px solid #e5e7eb; }
.onboarding-step.active { border-color: var(--brick); background: #fff5f6; }
.onboarding-step.done { border-color: #22c55e; background: #f0fdf4; }

.map-placeholder {
  height: 280px;
  background: linear-gradient(180deg, #e8f4ea, #d4e8d8);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-weight: 600;
}