/* ==========================================================================
   SL Football Agent — Design System
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Barlow:wght@400;500;600;700&display=swap");

:root {
  /* Brand */
  --navy-950: #070b14;
  --navy-900: #0b1220;
  --navy-800: #121a2e;
  --navy-700: #1c2841;
  --navy-600: #283a5c;

  --slate-900: #0f172a;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;

  --bg: #f7f9fc;
  --white: #ffffff;

  --emerald-700: #15803d;
  --emerald-600: #16a34a;
  --emerald-500: #22c55e;
  --emerald-50: #ecfdf5;

  --gold-600: #b8860b;
  --gold-500: #d4a017;
  --gold-50: #fef9ec;

  --danger-600: #dc2626;
  --danger-50: #fef2f2;
  --info-600: #2563eb;
  --info-50: #eff6ff;
  --success-600: #16a34a;
  --success-50: #ecfdf5;

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", -apple-system, Segoe UI, Roboto, sans-serif;

  /* Shape & motion */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm:
    0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px -8px rgba(15, 23, 42, 0.16);
  --shadow-lg: 0 24px 48px -16px rgba(15, 23, 42, 0.22);
  --transition: 200ms ease;
}

/* --------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--slate-900);
  background-color: var(--bg);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy-900);
  letter-spacing: 0.2px;
}

p {
  color: var(--slate-600);
}

a {
  text-decoration: none;
  color: var(--emerald-600);
  transition: color var(--transition);
}

a:hover {
  color: var(--emerald-700);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

.content-wrapper {
  min-height: 60vh;
}

/* --------------------------------------------------------------------
   Section scaffolding
   -------------------------------------------------------------------- */

.section {
  padding: 72px 0;
}

.section-tight {
  padding: 48px 0;
}

.section-dark {
  background: var(--navy-900);
  color: var(--slate-200);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-alt {
  background: var(--white);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--emerald-600);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
  display: inline-block;
}

.section-dark .eyebrow {
  color: var(--emerald-500);
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 14px;
}

.section-head p {
  font-size: 17px;
}

.icon {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  text-align: center;
  border-radius: var(--radius-sm);
  margin: 5px 5px 5px 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  transition:
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1.2;
}

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

.btn:active {
  transform: translateY(0);
}

.primary-btn {
  background-color: var(--emerald-600);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.primary-btn:hover {
  background-color: var(--emerald-700);
  color: var(--white);
}

.secondary-btn {
  background-color: var(--white);
  color: var(--navy-900);
  border-color: var(--slate-200);
}

.secondary-btn:hover {
  border-color: var(--navy-700);
  color: var(--navy-900);
}

.btn-light {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-light:hover {
  background-color: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
  margin: 0;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* --------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------- */

.main-header {
  background: var(--navy-900);
  color: white;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: box-shadow var(--transition);
}

.main-header.scrolled {
  box-shadow: var(--shadow-md);
}

.main-header .header-inner {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  min-height: 76px;
}

.logo {
  margin: 0;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo .logo-img {
  height: 42px;
  width: 42px;
  object-fit: contain;
}

.logo .logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: 0.3px;
}

.logo .logo-text span {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--emerald-500);
}

.main-nav ul {
  display: none;
  flex-direction: column;
  width: 100%;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.main-nav ul.active {
  display: flex;
}

.main-nav li {
  padding: 0;
}

.main-nav a {
  color: var(--slate-200);
  padding: 14px 1rem;
  display: block;
  font-weight: 600;
  font-size: 15px;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--white);
}

.main-nav .nav-cta {
  background: var(--emerald-600);
  color: var(--white);
  border-radius: var(--radius-sm);
  margin: 8px 16px;
  padding: 12px 1rem;
}

.main-nav .nav-cta:hover {
  background: var(--emerald-700);
  color: var(--white);
}

.menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0 4px;
  display: block;
  line-height: 1;
}

/* --------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------- */

.main-footer {
  background: var(--navy-950);
  color: var(--slate-300);
  padding: 56px 0 0;
  margin-top: 0;
}

.main-footer .container {
  display: block;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo-full {
  height: 54px;
  width: auto;
  margin-bottom: 14px;
}

.footer-brand p {
  color: var(--slate-300);
  max-width: 320px;
  font-size: 14.5px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background var(--transition);
}

.footer-social a:hover {
  background: var(--emerald-600);
  color: var(--white);
}

.footer-social .icon {
  width: 16px;
  height: 16px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-nav ul {
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin: 0 0 10px;
  text-align: left;
}

.footer-nav a {
  color: var(--slate-300);
  font-size: 14.5px;
  padding: 0;
  display: inline-block;
  transition:
    color var(--transition),
    transform var(--transition);
}

.footer-nav a:hover {
  color: var(--white);
  transform: translateX(2px);
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--slate-300);
  font-size: 14.5px;
  margin-bottom: 12px;
}

.footer-contact .icon {
  color: var(--emerald-500);
  margin-top: 3px;
}

.footer-bottom {
  padding: 22px 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--slate-500);
}

/* --------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------- */

.hero {
  position: relative;
  background: url("../images/hero_banner.jpg.png") no-repeat top center;
  background-size: cover;
  color: white;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  padding: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7, 11, 20, 0.25) 0%,
    rgba(7, 11, 20, 0.55) 55%,
    rgba(7, 11, 20, 0.92) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 56px;
}

.hero-content .eyebrow {
  color: var(--emerald-500);
}

.hero-content p.lead {
  max-width: 560px;
  color: var(--slate-200);
  font-size: 17px;
  margin-bottom: 188px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 24px;
}

.hero-trust .trust-item {
  display: flex;
  flex-direction: column;
}

.hero-trust .trust-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--white);
}

.hero-trust .trust-label {
  font-size: 13px;
  color: var(--slate-300);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* --------------------------------------------------------------------
   Features / steps / testimonials / CTA band
   -------------------------------------------------------------------- */

.features-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 0;
  flex-wrap: wrap;
}

.feature-box {
  background: var(--white);
  padding: 30px 26px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-100);
  flex: 1 1 300px;
  text-align: left;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.feature-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--emerald-50);
  color: var(--emerald-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon .icon {
  width: 26px;
  height: 26px;
}

.feature-box h4 {
  font-size: 19px;
  margin-bottom: 8px;
}

.feature-box p {
  font-size: 15px;
  margin-bottom: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 22px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-100);
}

.step .step-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  color: var(--emerald-50);
  -webkit-text-stroke: 1.5px var(--emerald-600);
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}

.step h4 {
  font-size: 18px;
  margin-bottom: 6px;
}

.step p {
  font-size: 14.5px;
  margin-bottom: 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-md);
  padding: 28px;
}

.testimonial-card .stars {
  color: var(--gold-500);
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.testimonial-card .stars .icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
}

.testimonial-card p {
  color: var(--slate-200);
  font-size: 15px;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author .avatar-circle {
  background: var(--emerald-600);
  color: var(--white);
}

.testimonial-author strong {
  color: var(--white);
  display: block;
  font-size: 14.5px;
}

.testimonial-author span {
  color: var(--slate-500);
  font-size: 13px;
}

.cta-band {
  background: linear-gradient(120deg, var(--emerald-700), var(--emerald-600));
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  color: var(--white);
  margin: 0 auto;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(26px, 4vw, 34px);
  margin-bottom: 12px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
  margin: 0 auto 26px;
}

.cta-band .btn-light {
  background: var(--white);
  color: var(--emerald-700);
  border-color: var(--white);
}

.cta-band .btn-light:hover {
  background: var(--slate-100);
  color: var(--emerald-700);
}

/* --------------------------------------------------------------------
   Generic page-content / about / contact
   -------------------------------------------------------------------- */

.page-content {
  padding: 56px 0 72px;
}

.page-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

.page-header h2 {
  font-size: clamp(26px, 4vw, 34px);
  margin-bottom: 12px;
}

.page-content.about .intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
  font-size: 17px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin: 36px 0;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.value-card .feature-icon {
  margin-bottom: 14px;
}

.value-card h4 {
  font-size: 17px;
  margin-bottom: 6px;
}

.value-card p {
  font-size: 14.5px;
  margin-bottom: 0;
}

.about-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 48px 0;
}

.about-stats .stat-item {
  text-align: center;
}

.about-stats .stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  color: var(--white);
  display: block;
}

.about-stats .stat-label {
  color: var(--slate-300);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 32px;
  align-items: start;
}

.contact-details {
  background: var(--navy-900);
  color: var(--slate-200);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-details h3 {
  margin-bottom: 18px;
  font-size: 20px;
  color: var(--white);
  text-align: left;
}

.contact-details .contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--slate-200);
}

.contact-details .contact-row:last-child {
  margin-bottom: 0;
}

.contact-details .contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.16);
  color: var(--emerald-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-details strong {
  display: block;
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-100);
}

.contact-form-wrapper h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

.contact-form-wrapper .form-sub {
  margin-bottom: 22px;
  font-size: 14.5px;
}

/* --------------------------------------------------------------------
   Forms (shared by auth + CRUD)
   -------------------------------------------------------------------- */

.form-group {
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy-900);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--slate-900);
  background: var(--white);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

input::placeholder,
textarea::placeholder {
  color: var(--slate-500);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--emerald-600);
  box-shadow: 0 0 0 3px var(--emerald-50);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--danger-600);
}

.help-block {
  color: var(--danger-600);
  font-size: 13px;
  margin-top: 6px;
  display: block;
  font-weight: 500;
}

.field-hint {
  color: var(--slate-500);
  font-size: 12.5px;
  margin-top: 6px;
  display: block;
}

/* --------------------------------------------------------------------
   Alerts
   -------------------------------------------------------------------- */

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
  font-size: 14.5px;
  font-weight: 500;
  border: 1px solid transparent;
}

.alert-danger {
  background: var(--danger-50);
  color: #991b1b;
  border-color: #fecaca;
}

.alert-success {
  background: var(--success-50);
  color: #166534;
  border-color: #bbf7d0;
}

.alert-info {
  background: var(--info-50);
  color: #1e40af;
  border-color: #bfdbfe;
}

/* --------------------------------------------------------------------
   Auth pages (login / register)
   -------------------------------------------------------------------- */

.auth-page {
  padding: 0;
}

.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 76px);
}

.auth-branding {
  background: var(--navy-900);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
}

.auth-branding::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.18), transparent 70%);
  top: -120px;
  right: -160px;
}

.auth-branding .logo-full {
  height: 64px;
  width: auto;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.auth-branding h3 {
  color: var(--white);
  font-size: 28px;
  max-width: 380px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.auth-branding p {
  color: var(--slate-300);
  max-width: 360px;
  position: relative;
  z-index: 1;
}

.auth-branding ul {
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

.auth-branding ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--slate-200);
  font-size: 14.5px;
  margin-bottom: 12px;
}

.auth-branding ul li .icon {
  color: var(--emerald-500);
  width: 18px;
  height: 18px;
}

.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
  background: var(--white);
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.auth-card h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.auth-card > p {
  margin-bottom: 28px;
  font-size: 15px;
}

.auth-form {
  max-width: none;
  margin: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.auth-foot-note {
  margin-top: 22px;
  text-align: center;
  font-size: 14.5px;
  color: var(--slate-600);
}

.role-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.role-card {
  position: relative;
  display: block;
}

.role-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.role-card .role-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 18px 10px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    border-color var(--transition),
    background var(--transition);
}

.role-card .role-card-body .icon {
  width: 22px;
  height: 22px;
  color: var(--slate-500);
}

.role-card .role-card-body strong {
  font-size: 14px;
  color: var(--navy-900);
}

.role-card input:checked + .role-card-body {
  border-color: var(--emerald-600);
  background: var(--emerald-50);
}

.role-card input:checked + .role-card-body .icon {
  color: var(--emerald-600);
}

.role-card input:focus-visible + .role-card-body {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------
   Dashboard
   -------------------------------------------------------------------- */

.dashboard-content.dash {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 20px 72px;
  color: var(--slate-900);
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
}

.dashboard-hero {
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  padding: 36px 36px;
  color: var(--white);
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.dashboard-hero h2 {
  color: var(--white);
  font-size: 26px;
  margin-bottom: 6px;
}

.dashboard-hero p {
  color: var(--slate-300);
  margin-bottom: 0;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.16);
  color: var(--emerald-500);
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.dashboard-summary h3,
.dashboard-actions h3 {
  font-size: 19px;
  margin-bottom: 16px;
  color: var(--navy-900);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.metric-box {
  background-color: var(--white);
  padding: 24px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-100);
  text-align: left;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  display: flex;
  align-items: center;
  gap: 16px;
}

.metric-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.metric-box .feature-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.metric-box h4 {
  font-size: 13px;
  color: var(--slate-500);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-body);
  font-weight: 700;
}

.metric-box .count {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--navy-900);
}

.dashboard-actions {
  margin-top: 44px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.action-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  color: var(--navy-900);
  font-weight: 600;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.action-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--emerald-600);
  color: var(--navy-900);
}

.action-card .feature-icon {
  margin-bottom: 0;
}

.action-card.is-primary {
  background: var(--emerald-600);
  color: var(--white);
  border-color: var(--emerald-600);
}

.action-card.is-primary .feature-icon {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.action-card.is-primary:hover {
  color: var(--white);
  border-color: var(--emerald-700);
  background: var(--emerald-700);
}

/* --------------------------------------------------------------------
   Tables / CRUD list pages
   -------------------------------------------------------------------- */

.list-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.list-toolbar h2 {
  margin-bottom: 4px;
}

.list-toolbar .toolbar-text p {
  margin-bottom: 0;
}

.action-bar {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  background: var(--white);
  padding: 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-100);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  color: var(--slate-900);
}

.data-table thead th {
  background-color: var(--slate-100);
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--slate-600);
  border-bottom: 1px solid var(--slate-200);
}

.data-table thead th:first-child {
  border-radius: var(--radius-sm) 0 0 0;
}

.data-table thead th:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
}

.data-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--slate-100);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background-color: var(--slate-100);
}

.data-table td:last-child {
  white-space: nowrap;
}

.name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--emerald-50);
  color: var(--emerald-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.club-logo-cell {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--slate-200);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.badge-goalkeeper {
  background: var(--gold-50);
  color: var(--gold-600);
}
.badge-defender {
  background: var(--info-50);
  color: var(--info-600);
}
.badge-midfielder {
  background: var(--success-50);
  color: var(--success-600);
}
.badge-forward {
  background: var(--danger-50);
  color: var(--danger-600);
}
.badge-neutral {
  background: var(--slate-100);
  color: var(--slate-600);
}

.action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  margin-right: 6px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: #fff;
  transition:
    background-color var(--transition),
    transform var(--transition);
}

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

.action-link .icon {
  width: 14px;
  height: 14px;
}

.edit-btn {
  background-color: var(--info-600);
}

.edit-btn:hover {
  background-color: #1d4ed8;
  color: #fff;
}

.delete-btn {
  background-color: var(--danger-600);
}

.delete-btn:hover {
  background-color: #b91c1c;
  color: #fff;
}

.empty-state {
  text-align: center;
  padding: 56px 24px;
  background: var(--white);
  border: 1px dashed var(--slate-200);
  border-radius: var(--radius-md);
}

.empty-state .feature-icon {
  margin: 0 auto 18px;
}

.empty-state h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.empty-state p {
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------
   Form cards (add / edit player & club)
   -------------------------------------------------------------------- */

.form-card-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-100);
}

.form-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--slate-100);
}

.form-card-header .feature-icon {
  margin-bottom: 0;
}

.form-card-header h2 {
  font-size: 22px;
  margin-bottom: 2px;
}

.form-card-header p {
  margin-bottom: 0;
  font-size: 14.5px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

/* --------------------------------------------------------------------
   SLPL club lookup
   -------------------------------------------------------------------- */

.lookup-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.lookup-intro h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.lookup-intro p {
  margin-bottom: 0;
  font-size: 14px;
}

.slpl-lookup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 44px;
}

.club-card {
  background: var(--white);
  padding: 18px 12px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.club-card:hover,
.club-card:focus-visible {
  background: var(--emerald-50);
  border-color: var(--emerald-600);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.club-card img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 0 auto 10px;
}

.club-card h4 {
  font-size: 0.92em;
  margin: 0;
  color: var(--navy-900);
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 40px 0 24px;
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--slate-200);
}

/* --------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------- */

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .auth-split {
    grid-template-columns: 1fr;
  }

  .auth-branding {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) {
  .main-nav ul {
    display: flex !important;
    flex-direction: row;
    width: auto;
    text-align: left;
    border-top: none;
  }

  .main-nav li {
    padding: 0;
  }

  .main-nav a {
    padding: 28px 14px;
  }

  .main-nav .nav-cta {
    margin: 0 0 0 8px;
    padding: 10px 20px;
  }

  .menu-toggle {
    display: none;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 52px 0;
  }

  .hero {
    min-height: 76vh;
  }

  .hero-content h1,
  .hero-content .hero-headline {
    font-size: 1.9rem;
  }

  .data-table th,
  .data-table td {
    font-size: 0.85rem;
    padding: 10px;
  }

  .form-card {
    padding: 28px 22px;
  }

  .dashboard-hero {
    padding: 28px 24px;
  }
}

@media (max-width: 600px) {
  .role-options {
    grid-template-columns: 1fr;
  }

  .about-stats {
    gap: 28px;
    padding: 28px;
  }

  .cta-band {
    padding: 40px 24px;
  }
}
