/* AutoGol — football betting SaaS UI */
:root {
  --ag-bg: #f4f6fb;
  --ag-bg2: #eaeef8;
  --ag-surface: #ffffff;
  --ag-text: #0f172a;
  --ag-muted: #64748b;
  --ag-primary: #6d28d9;
  --ag-primary2: #7c3aed;
  --ag-primary-soft: rgba(109, 40, 217, 0.12);
  --ag-green: #059669;
  --ag-green-soft: rgba(5, 150, 105, 0.12);
  --ag-gold: #f59e0b;
  --ag-red: #dc2626;
  --ag-border: rgba(15, 23, 42, 0.08);
  --ag-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  --ag-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
  --ag-radius: 20px;
  --ag-radius-sm: 14px;
  --ag-font: "Plus Jakarta Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ag-font);
  color: var(--ag-text);
  background: var(--ag-bg);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.ag-container { width: min(1140px, calc(100% - 2rem)); margin: 0 auto; }

/* Buttons */
.ag-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .85rem 1.35rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: .2s transform, .2s box-shadow, .2s background;
}
.ag-btn:hover { transform: translateY(-1px); }
.ag-btn-primary {
  background: linear-gradient(135deg, var(--ag-primary2), #9333ea);
  color: #fff; box-shadow: 0 12px 30px rgba(109, 40, 217, .28);
}
.ag-btn-primary:hover { box-shadow: 0 16px 36px rgba(109, 40, 217, .34); }
.ag-btn-ghost { background: #fff; border-color: var(--ag-border); color: var(--ag-text); }
.ag-btn-green { background: var(--ag-green); color: #fff; }
.ag-btn-sm { padding: .55rem 1rem; font-size: .85rem; }

/* Nav */
.ag-nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(244, 246, 251, .85);
  border-bottom: 1px solid var(--ag-border);
}
.ag-nav-inner, .ag-dash-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 1rem;
}
.ag-logo { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.15rem; }
.ag-logo-icon {
  width: 36px; height: 36px; border-radius: 12px;
  background: linear-gradient(135deg, var(--ag-green), #10b981);
  display: grid; place-items: center; font-size: 1rem;
}
.ag-nav-links { display: flex; gap: 1.5rem; color: var(--ag-muted); font-weight: 500; }
.ag-nav-links a:hover { color: var(--ag-text); }
.ag-nav-actions { display: flex; gap: .65rem; align-items: center; }

/* Hero landing */
.ag-hero {
  position: relative; overflow: hidden;
  padding: 4rem 0 5rem;
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(124, 58, 237, .18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 20%, rgba(5, 150, 105, .12), transparent 50%),
    var(--ag-bg);
}
.ag-hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center;
}
.ag-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .85rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--ag-border);
  font-size: .82rem; color: var(--ag-muted); margin-bottom: 1rem;
}
.ag-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ag-green); }
.ag-hero h1 {
  font-family: var(--ag-serif); font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.08; margin: 0 0 1rem; font-weight: 400;
}
.ag-hero h1 em { font-style: italic; color: var(--ag-primary2); }
.ag-hero-lead { font-size: 1.12rem; color: var(--ag-muted); max-width: 34rem; margin-bottom: 1.75rem; }
.ag-hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.ag-hero-trust { display: flex; flex-wrap: wrap; gap: 1.25rem; color: var(--ag-muted); font-size: .88rem; }
.ag-hero-trust span { display: flex; align-items: center; gap: .35rem; }
.ag-hero-trust strong { color: var(--ag-text); }

/* Phone mockup */
.ag-mockup-wrap { position: relative; min-height: 420px; }
.ag-mockup-phone {
  width: min(300px, 100%); margin: 0 auto;
  background: #111827; border-radius: 36px; padding: 12px;
  box-shadow: var(--ag-shadow);
}
.ag-mockup-screen {
  background: linear-gradient(180deg, #1e1b4b, #0f172a);
  border-radius: 28px; padding: 1.25rem; color: #e2e8f0; min-height: 380px;
}
.ag-float-card {
  position: absolute; background: #fff; border-radius: var(--ag-radius-sm);
  padding: .85rem 1rem; box-shadow: var(--ag-shadow-sm); border: 1px solid var(--ag-border);
  font-size: .82rem;
}
.ag-float-card.a { top: 8%; left: 0; }
.ag-float-card.b { bottom: 12%; right: 0; }
.ag-float-card strong { display: block; font-size: 1.1rem; color: var(--ag-green); }

/* Stats bar */
.ag-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin: -2rem auto 3rem; position: relative; z-index: 2;
}
.ag-stat {
  background: #fff; border-radius: var(--ag-radius-sm); padding: 1.25rem;
  border: 1px solid var(--ag-border); box-shadow: var(--ag-shadow-sm); text-align: center;
}
.ag-stat b { display: block; font-size: 1.75rem; color: var(--ag-primary2); }
.ag-stat span { color: var(--ag-muted); font-size: .85rem; }

/* Sections */
.ag-section { padding: 4rem 0; }
.ag-section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.ag-section-head h2 {
  font-family: var(--ag-serif); font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 .75rem; font-weight: 400;
}
.ag-section-head p { color: var(--ag-muted); margin: 0; }

/* Pain cards — marketing hooks */
.ag-hooks {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.ag-hook {
  background: #fff; border-radius: var(--ag-radius); padding: 1.5rem;
  border: 1px solid var(--ag-border); box-shadow: var(--ag-shadow-sm);
  transition: .2s transform;
}
.ag-hook:hover { transform: translateY(-4px); }
.ag-hook-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.35rem; margin-bottom: 1rem;
}
.ag-hook h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.ag-hook p { margin: 0; color: var(--ag-muted); font-size: .92rem; }

/* Steps */
.ag-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.ag-step {
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 1px solid var(--ag-border); border-radius: var(--ag-radius);
  padding: 1.5rem; position: relative;
}
.ag-step-num {
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--ag-primary-soft); color: var(--ag-primary2);
  display: grid; place-items: center; font-weight: 700; margin-bottom: 1rem;
}

/* Features */
.ag-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.ag-feature {
  background: #fff; border-radius: var(--ag-radius); overflow: hidden;
  border: 1px solid var(--ag-border); box-shadow: var(--ag-shadow-sm);
}
.ag-feature-visual {
  height: 140px; background: linear-gradient(135deg, var(--ag-primary-soft), var(--ag-green-soft));
  display: grid; place-items: center; font-size: 2.5rem;
}
.ag-feature-body { padding: 1.25rem; }
.ag-feature-body h3 { margin: 0 0 .4rem; font-size: 1rem; }
.ag-feature-body p { margin: 0; color: var(--ag-muted); font-size: .88rem; }

/* CTA */
.ag-cta {
  margin: 2rem 0 4rem; padding: 3rem 2rem; border-radius: 28px; text-align: center;
  background: linear-gradient(135deg, #4c1d95, #6d28d9 45%, #059669);
  color: #fff; box-shadow: var(--ag-shadow);
}
.ag-cta h2 { font-family: var(--ag-serif); font-size: 2rem; margin: 0 0 .75rem; font-weight: 400; }
.ag-cta p { opacity: .9; max-width: 520px; margin: 0 auto 1.5rem; }

/* Footer */
.ag-footer {
  border-top: 1px solid var(--ag-border); padding: 2rem 0;
  color: var(--ag-muted); font-size: .88rem;
}
.ag-footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

/* Auth */
.ag-auth-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 2rem;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(124, 58, 237, .15), transparent),
    var(--ag-bg);
}
.ag-auth-card {
  width: min(420px, 100%); background: #fff; border-radius: var(--ag-radius);
  padding: 2rem; border: 1px solid var(--ag-border); box-shadow: var(--ag-shadow);
}
.ag-auth-card h1 { font-family: var(--ag-serif); font-size: 1.75rem; margin: 0 0 .35rem; font-weight: 400; }
.ag-auth-card .sub { color: var(--ag-muted); margin-bottom: 1.5rem; font-size: .92rem; }
.ag-field { margin-bottom: 1rem; }
.ag-field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; }
.ag-field input {
  width: 100%; padding: .8rem 1rem; border-radius: 12px;
  border: 1px solid var(--ag-border); font: inherit;
}
.ag-field input:focus { outline: 2px solid var(--ag-primary-soft); border-color: var(--ag-primary2); }
.ag-alert { padding: .75rem 1rem; border-radius: 12px; font-size: .88rem; margin-bottom: 1rem; }
.ag-alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.ag-auth-foot { text-align: center; margin-top: 1.25rem; font-size: .88rem; color: var(--ag-muted); }

/* Dashboard */
body.ag-dash { background: var(--ag-bg); }
.ag-dash-nav {
  background: #fff; border-bottom: 1px solid var(--ag-border);
  position: sticky; top: 0; z-index: 40;
}
.ag-dash-tabs { display: flex; gap: .25rem; }
.ag-dash-tabs a {
  padding: .5rem 1rem; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--ag-muted);
}
.ag-dash-tabs a.active, .ag-dash-tabs a:hover { background: var(--ag-primary-soft); color: var(--ag-primary2); }
.ag-user-chip {
  font-size: .85rem; font-weight: 600; padding: .35rem .75rem;
  background: var(--ag-bg2); border-radius: 999px;
}
.ag-dash-main { padding: 2rem 0 4rem; }
.ag-dash-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.25rem; margin-bottom: 1.25rem; }

.ag-card {
  background: #fff; border-radius: var(--ag-radius); border: 1px solid var(--ag-border);
  box-shadow: var(--ag-shadow-sm); overflow: hidden;
}
.ag-card-head {
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--ag-border);
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
}
.ag-card-head h2 { margin: 0; font-size: 1rem; }
.ag-card-body { padding: 1.25rem; }

/* Featured pick */
.ag-featured {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #065f46 100%);
  color: #fff; border: none;
}
.ag-featured .ag-card-head { border-color: rgba(255,255,255,.12); color: #e2e8f0; }
.ag-featured .ag-card-head h2 { color: #fff; }
.ag-featured-match { font-size: 1.35rem; font-weight: 700; margin-bottom: .25rem; }
.ag-featured-league { opacity: .75; font-size: .88rem; margin-bottom: 1rem; }
.ag-pick-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem;
  background: rgba(255,255,255,.08); border-radius: 14px; padding: 1rem;
}
.ag-odd-pill {
  background: var(--ag-gold); color: #1f2937; font-weight: 800;
  padding: .45rem .85rem; border-radius: 999px; font-size: 1.05rem;
}
.ag-edge { color: #6ee7b7; font-weight: 600; font-size: .88rem; }
.ag-prob { opacity: .85; font-size: .88rem; }

/* Rec list */
.ag-rec-item {
  display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem;
  padding: .85rem 0; border-bottom: 1px solid var(--ag-border);
}
.ag-rec-item:last-child { border-bottom: 0; }
.ag-rec-meta { font-size: .78rem; color: var(--ag-muted); }
.ag-rec-pick { font-weight: 600; }
.ag-conf {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: .2rem .5rem; border-radius: 999px;
}
.ag-conf-high { background: var(--ag-green-soft); color: var(--ag-green); }
.ag-conf-medium { background: var(--ag-primary-soft); color: var(--ag-primary2); }
.ag-conf-lean { background: #fef3c7; color: #b45309; }

/* Tickets */
.ag-ticket {
  border: 1px solid var(--ag-border); border-radius: var(--ag-radius-sm);
  padding: 1rem; margin-bottom: .85rem;
}
.ag-ticket:last-child { margin-bottom: 0; }
.ag-ticket-title { font-weight: 700; margin-bottom: .5rem; }
.ag-ticket-meta { display: flex; gap: 1rem; font-size: .85rem; color: var(--ag-muted); margin-bottom: .75rem; }
.ag-leg {
  display: flex; justify-content: space-between; gap: .75rem;
  font-size: .85rem; padding: .35rem 0; border-top: 1px dashed var(--ag-border);
}
.ag-leg:first-of-type { border-top: 0; padding-top: 0; }

/* Doctor */
.ag-doctor-form .ag-leg-row {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr .7fr .7fr auto; gap: .5rem;
  margin-bottom: .5rem; align-items: end;
}
.ag-doctor-form input, .ag-doctor-form select {
  width: 100%; padding: .65rem .75rem; border-radius: 10px;
  border: 1px solid var(--ag-border); font: inherit; font-size: .85rem;
}
.ag-doctor-result { margin-top: 1rem; }
.ag-verdict {
  padding: 1rem 1.15rem; border-radius: 14px; font-weight: 600; margin-bottom: 1rem;
}
.ag-verdict-aprobat { background: var(--ag-green-soft); color: #065f46; }
.ag-verdict-atentie { background: #fef3c7; color: #92400e; }
.ag-verdict-respinse { background: #fef2f2; color: #991b1b; }
.ag-verdict-invalid { background: var(--ag-bg2); color: var(--ag-muted); }
.ag-doc-list { margin: 0; padding-left: 1.1rem; font-size: .88rem; color: var(--ag-muted); }
.ag-doc-list li { margin-bottom: .35rem; }
.ag-doc-list.ok { color: var(--ag-green); }
.ag-doc-list.bad { color: var(--ag-red); }

@media (max-width: 960px) {
  .ag-hero-grid, .ag-dash-grid, .ag-hooks, .ag-steps, .ag-features, .ag-stats { grid-template-columns: 1fr; }
  .ag-nav-links { display: none; }
  .ag-float-card { position: static; margin-top: .75rem; }
  .ag-mockup-wrap { min-height: auto; }
  .ag-doctor-form .ag-leg-row { grid-template-columns: 1fr 1fr; }
}
