:root {
--bg: #f4f6f8;
--surface: #ffffff;
--surface-soft: #f8fafb;
--text: #17202b;
--muted: #71808d;
--border: #e4e9ee;
--dark: #101820;
--dark-2: #172531;
--accent: #ef6c2f;
--accent-dark: #d95720;
--green: #25a56a;
--purple: #7657d9;
--shadow: 0 8px 30px rgba(20, 30, 40, .06);
--shadow-hover: 0 16px 40px rgba(20, 30, 40, .11);
}

* {
  box-sizing: border-box;
  }

html {
scroll-behavior: smooth;
}

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

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

button,
input {
font: inherit;
}

/* =========================================================
HEADER
========================================================= */

header {
background:
linear-gradient(
135deg,
#0d151c,
#15232e
);
color: #fff;
border-bottom: 1px solid rgba(255,255,255,.05);
}

.nav {
height: 72px;
max-width: 1240px;
margin: auto;
padding: 0 24px;
display: flex;
align-items: center;
gap: 34px;
}

.logo {
font-weight: 950;
font-size: 21px;
letter-spacing: -.7px;
white-space: nowrap;
}

.logo span {
color: var(--accent);
}

nav {
display: flex;
gap: 25px;
color: #b9c4cd;
font-size: 14px;
}

nav a {
transition: color .2s ease;
}

nav a:hover {
color: #fff;
}

.nav-right {
margin-left: auto;
display: flex;
gap: 15px;
align-items: center;
font-size: 14px;
white-space: nowrap;
}

.header-welcome {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 8px 11px;
border-radius: 10px;
background: rgba(239,108,47,.12);
color: #d9e0e6;
transition: .2s ease;
}

.header-welcome:hover {
background: rgba(239,108,47,.2);
transform: translateY(-1px);
}

.header-welcome strong {
color: #ff9867;
}

.mini-btn {
background: var(--accent);
padding: 9px 14px;
border-radius: 9px;
color: #fff;
font-weight: 800;
}

/* =========================================================
MAIN
========================================================= */

main {
max-width: 1240px;
margin: auto;
padding: 28px 24px 70px;
}

/* =========================================================
HERO
========================================================= */

.home-hero {
min-height: 430px;
display: grid;
grid-template-columns: 1.25fr .75fr;
align-items: center;
overflow: hidden;
position: relative;
border-radius: 26px;
padding: 52px 55px;
color: #fff;
background:
radial-gradient(
circle at 85% 30%,
rgba(239,108,47,.24),
transparent 30%
),
linear-gradient(
135deg,
#101a23,
#1c303e
);
box-shadow: 0 20px 50px rgba(12,20,28,.16);
}

.home-hero:after {
content: "";
position: absolute;
width: 380px;
height: 380px;
right: -100px;
bottom: -160px;
border-radius: 50%;
border: 1px solid rgba(255,255,255,.08);
box-shadow:
0 0 0 45px rgba(255,255,255,.02),
0 0 0 90px rgba(255,255,255,.015);
}

.hero-content {
position: relative;
z-index: 2;
}

.hero-badge {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 7px 11px;
border-radius: 30px;
background: rgba(255,255,255,.07);
border: 1px solid rgba(255,255,255,.1);
color: #dce4ea;
font-size: 12px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 1px;
}

.hero-badge span {
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--accent);
box-shadow: 0 0 0 5px rgba(239,108,47,.13);
}

.home-hero h1 {
max-width: 720px;
margin: 22px 0 15px;
font-size: clamp(42px, 5vw, 67px);
line-height: .98;
letter-spacing: -3px;
}

.home-hero h1 strong {
display: block;
color: var(--accent);
}

.home-hero p {
max-width: 610px;
margin: 0;
color: #bac6cf;
font-size: 17px;
line-height: 1.65;
}

.hero-actions {
display: flex;
gap: 11px;
flex-wrap: wrap;
margin-top: 28px;
}

.hero-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 9px;
min-height: 47px;
padding: 0 19px;
border-radius: 10px;
font-size: 14px;
font-weight: 850;
transition: .2s ease;
}

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

.hero-btn-primary {
color: #fff;
background: var(--accent);
box-shadow: 0 8px 22px rgba(239,108,47,.22);
}

.hero-btn-primary:hover {
background: var(--accent-dark);
}

.hero-btn-secondary {
color: #fff;
background: rgba(255,255,255,.08);
border: 1px solid rgba(255,255,255,.13);
}

.hero-btn-secondary:hover {
background: rgba(255,255,255,.13);
}

/* =========================================================
HERO VISUAL
========================================================= */

.hero-visual {
height: 320px;
position: relative;
display: flex;
align-items: center;
justify-content: center;
}

.hero-ball {
width: 185px;
height: 185px;
display: grid;
place-items: center;
border-radius: 50%;
font-size: 85px;
background:
radial-gradient(
circle at 35% 30%,
rgba(255,255,255,.16),
rgba(255,255,255,.025)
);
border: 1px solid rgba(255,255,255,.12);
box-shadow:
0 25px 70px rgba(0,0,0,.3),
inset 0 0 40px rgba(255,255,255,.03);
}

.hero-floating-card {
position: absolute;
display: flex;
align-items: center;
gap: 11px;
padding: 13px 16px;
min-width: 145px;
border-radius: 14px;
background: rgba(255,255,255,.09);
border: 1px solid rgba(255,255,255,.13);
backdrop-filter: blur(12px);
box-shadow: 0 15px 40px rgba(0,0,0,.2);
}

.hero-floating-card > span {
font-size: 22px;
}

.hero-floating-card small {
display: block;
color: #aebbc5;
font-size: 11px;
}

.hero-floating-card strong {
display: block;
margin-top: 2px;
font-size: 20px;
}

.hero-card-top {
top: 22px;
right: 15px;
}

.hero-card-bottom {
bottom: 25px;
left: 8px;
}

/* =========================================================
ESTATÍSTICAS
========================================================= */

.home-stats {
display: grid;
grid-template-columns: repeat(4,1fr);
gap: 14px;
margin-top: 18px;
}

.stat-card {
display: flex;
align-items: center;
gap: 14px;
padding: 20px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 15px;
box-shadow: var(--shadow);
}

.stat-icon {
width: 48px;
height: 48px;
display: grid;
place-items: center;
border-radius: 13px;
font-size: 20px;
}

.stat-icon.orange {
background: #fff0e9;
}

.stat-icon.dark {
background: #edf1f4;
}

.stat-icon.green {
background: #eaf8f1;
}

.stat-icon.purple {
background: #f0edff;
}

.stat-card span {
display: block;
color: var(--muted);
font-size: 12px;
font-weight: 700;
}

.stat-card strong {
display: block;
margin-top: 3px;
font-size: 25px;
}

/* =========================================================
SEARCH
========================================================= */

.home-search {
display: flex;
align-items: center;
justify-content: space-between;
gap: 25px;
margin-top: 38px;
padding: 25px 27px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 17px;
box-shadow: var(--shadow);
}

.search-label,
.section-kicker {
display: block;
color: var(--accent);
font-size: 10px;
font-weight: 900;
letter-spacing: 1.5px;
}

.home-search h2 {
margin: 5px 0 0;
font-size: 21px;
}

.home-search form {
display: flex;
gap: 9px;
flex: 0 1 500px;
}

.search-input {
flex: 1;
display: flex;
align-items: center;
gap: 8px;
padding: 0 13px;
min-height: 45px;
border: 1px solid var(--border);
border-radius: 10px;
background: var(--surface-soft);
}

.search-input span {
font-size: 20px;
color: var(--muted);
}

.search-input input {
width: 100%;
border: 0;
outline: 0;
background: transparent;
color: var(--text);
}

.home-search button {
border: 0;
padding: 0 19px;
border-radius: 10px;
color: #fff;
background: var(--accent);
font-weight: 800;
cursor: pointer;
}

/* =========================================================
SECÇÕES
========================================================= */

.home-section {
margin-top: 48px;
}

.home-section-head,
.panel-head {
display: flex;
justify-content: space-between;
align-items: flex-end;
gap: 15px;
margin-bottom: 18px;
}

.home-section-head h2,
.panel-head h2 {
margin: 4px 0 0;
font-size: 25px;
letter-spacing: -.5px;
}

.view-all,
.panel-head > a {
color: var(--accent);
font-size: 13px;
font-weight: 800;
}

/* =========================================================
JOGOS
========================================================= */

.matches-grid {
display: grid;
grid-template-columns: repeat(3,1fr);
gap: 15px;
}

.match-card {
padding: 19px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 17px;
box-shadow: var(--shadow);
transition: .2s ease;
}

.match-card:hover {
transform: translateY(-3px);
box-shadow: var(--shadow-hover);
border-color: #d7dde3;
}

.match-top {
display: flex;
justify-content: space-between;
align-items: center;
color: var(--muted);
font-size: 11px;
font-weight: 700;
}

.match-status {
padding: 5px 8px;
border-radius: 20px;
background: #f1f4f6;
color: #64717c;
}

.live-badge {
color: #d94b35;
font-size: 10px;
}

.match-teams {
display: grid;
grid-template-columns: 1fr 45px 1fr;
align-items: center;
gap: 5px;
margin: 23px 0 18px;
}

.team {
min-width: 0;
text-align: center;
}

.team img,
.team-placeholder {
width: 55px;
height: 55px;
margin: auto;
object-fit: contain;
}

.team-placeholder {
display: grid;
place-items: center;
border-radius: 50%;
background: #eef1f4;
color: #697681;
font-size: 14px;
font-weight: 900;
}

.team strong {
display: block;
margin-top: 9px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 13px;
}

.match-vs {
text-align: center;
color: var(--accent);
font-size: 11px;
font-weight: 900;
}

.match-footer {
padding-top: 13px;
border-top: 1px solid var(--border);
color: var(--muted);
font-size: 11px;
text-align: center;
}

.match-footer span {
color: #9aa5ae;
}

/* =========================================================
RESULTADOS / CLASSIFICAÇÃO
========================================================= */

.home-two-columns {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 17px;
margin-top: 48px;
}

.home-panel {
min-width: 0;
padding: 23px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 18px;
box-shadow: var(--shadow);
}

.panel-head {
align-items: center;
}

.panel-head h2 {
font-size: 21px;
}

.results-list {
border-top: 1px solid var(--border);
}

.result-row {
display: grid;
grid-template-columns: 65px 1fr 65px 1fr;
gap: 10px;
align-items: center;
padding: 14px 0;
border-bottom: 1px solid var(--border);
transition: .15s ease;
}

.result-row:hover {
background: #fafbfc;
}

.result-date {
color: var(--muted);
font-size: 11px;
}

.result-team {
font-size: 13px;
}

.result-team.home {
text-align: right;
}

.result-score {
text-align: center;
font-size: 18px;
font-weight: 900;
}

.result-score span {
color: #a6afb7;
margin: 0 2px;
}

/* =========================================================
CLASSIFICAÇÃO
========================================================= */

.standings {
font-size: 12px;
}

.standing-head,
.standing-row {
display: grid;
grid-template-columns: 30px minmax(0,1fr) 25px 35px 30px;
gap: 8px;
align-items: center;
}

.standing-head {
padding: 10px 0;
color: #9aa5ae;
font-size: 10px;
font-weight: 800;
border-bottom: 1px solid var(--border);
}

.standing-row {
padding: 11px 0;
border-bottom: 1px solid var(--border);
}

.position-number {
color: var(--muted);
font-weight: 800;
}

.standing-club {
min-width: 0;
display: flex;
align-items: center;
gap: 8px;
}

.standing-club strong {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.standing-club img,
.club-mini-logo {
width: 29px;
height: 29px;
flex: none;
object-fit: contain;
}

.club-mini-logo {
display: grid;
place-items: center;
border-radius: 50%;
background: #edf1f4;
color: #697681;
font-size: 9px;
font-weight: 900;
}

/* =========================================================
MARCADORES
========================================================= */

.scorers-grid {
display: grid;
grid-template-columns: repeat(5,1fr);
gap: 14px;
}

.scorer-card {
position: relative;
padding: 21px 17px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 17px;
box-shadow: var(--shadow);
transition: .2s ease;
}

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

.scorer-number {
position: absolute;
top: 13px;
right: 14px;
color: #c7cdd2;
font-size: 11px;
font-weight: 900;
}

.scorer-photo {
width: 70px;
height: 70px;
display: block;
margin-bottom: 16px;
border-radius: 50%;
object-fit: cover;
}

.scorer-placeholder {
display: grid;
place-items: center;
background: #edf1f4;
color: #65737d;
font-weight: 900;
}

.scorer-info strong {
display: block;
font-size: 14px;
line-height: 1.3;
}

.scorer-info span {
display: block;
margin-top: 4px;
color: var(--muted);
font-size: 11px;
}

.scorer-goals {
display: flex;
align-items: baseline;
gap: 5px;
margin-top: 17px;
padding-top: 12px;
border-top: 1px solid var(--border);
}

.scorer-goals strong {
color: var(--accent);
font-size: 25px;
}

.scorer-goals span {
color: var(--muted);
font-size: 11px;
}

/* =========================================================
PESSOAS
========================================================= */

.people-grid {
display: grid;
grid-template-columns: repeat(3,1fr);
gap: 15px;
}

.person-card {
display: flex;
align-items: center;
gap: 15px;
padding: 17px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 16px;
box-shadow: var(--shadow);
transition: .2s ease;
}

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

.person-photo {
width: 68px;
height: 68px;
flex: none;
border-radius: 50%;
object-fit: cover;
}

.person-placeholder {
display: grid;
place-items: center;
background:
linear-gradient(
135deg,
#eef2f5,
#dfe5e9
);
color: #66747e;
font-weight: 900;
}

.person-body {
min-width: 0;
}

.person-body h3 {
margin: 0 0 7px;
font-size: 15px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.position-badge {
display: inline-block;
padding: 4px 7px;
border-radius: 5px;
background: #fff0e9;
color: var(--accent);
font-size: 10px;
font-weight: 800;
}

.person-meta {
display: grid;
gap: 4px;
margin-top: 9px;
color: var(--muted);
font-size: 10px;
}

/* =========================================================
CLUBES
========================================================= */

.clubs-grid {
display: grid;
grid-template-columns: repeat(3,1fr);
gap: 14px;
}

.club-card {
display: flex;
align-items: center;
gap: 14px;
position: relative;
padding: 18px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 16px;
box-shadow: var(--shadow);
transition: .2s ease;
}

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

.club-logo {
width: 58px;
height: 58px;
flex: none;
object-fit: contain;
}

.club-placeholder {
display: grid;
place-items: center;
border-radius: 14px;
background: #eef1f4;
color: #697681;
font-weight: 900;
}

.club-card h3 {
margin: 0 0 4px;
font-size: 15px;
}

.club-card span {
display: block;
color: var(--accent);
font-size: 10px;
font-weight: 800;
}

.club-card small {
display: block;
margin-top: 6px;
color: var(--muted);
font-size: 10px;
}

.club-arrow {
margin-left: auto;
color: #aab3ba;
font-size: 20px;
}

/* =========================================================
EMPTY
========================================================= */

.empty-modern {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 160px;
padding: 30px;
background: var(--surface);
border: 1px dashed var(--border);
border-radius: 16px;
color: var(--muted);
text-align: center;
}

.empty-modern > span {
margin-bottom: 8px;
font-size: 25px;
}

.empty-modern strong {
color: var(--text);
font-size: 14px;
}

.empty-modern p {
margin: 5px 0 0;
font-size: 12px;
}

.empty-modern.small {
min-height: 120px;
}

/* =========================================================
CTA
========================================================= */

.home-cta {
position: relative;
overflow: hidden;
display: flex;
justify-content: space-between;
align-items: center;
gap: 25px;
margin-top: 55px;
padding: 38px 42px;
border-radius: 21px;
color: #fff;
background:
radial-gradient(
circle at 90% 50%,
rgba(239,108,47,.25),
transparent 35%
),
linear-gradient(
135deg,
#121c24,
#1b2d39
);
}

.home-cta > div {
position: relative;
z-index: 1;
}

.home-cta > div > span {
color: #ff9968;
font-size: 10px;
font-weight: 900;
letter-spacing: 1.5px;
}

.home-cta h2 {
max-width: 650px;
margin: 8px 0;
font-size: 29px;
line-height: 1.15;
}

.home-cta p {
max-width: 600px;
margin: 0;
color: #b9c5cd;
font-size: 14px;
}

/* =========================================================
FORMULÁRIOS / PÁGINAS EXISTENTES
========================================================= */

.form-wrap {
max-width: 480px;
margin: 35px auto;
padding: 30px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 17px;
box-shadow: var(--shadow);
}

.form-wrap h1 {
margin-top: 0;
}

form {
display: grid;
gap: 16px;
}

label {
font-weight: 700;
font-size: 14px;
}

input,
select,
textarea {
display: block;
width: 100%;
margin-top: 7px;
padding: 12px 13px;
border: 1px solid var(--border);
border-radius: 9px;
background: #fff;
color: var(--text);
font: inherit;
}

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

input:focus,
select:focus,
textarea:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px rgba(239,108,47,.12);
}

.error {
background: #fff0ed;
border: 1px solid #ffc9bd;
color: #b63d24;
padding: 11px;
border-radius: 9px;
margin-bottom: 15px;
}

.profile {
display: flex;
gap: 18px;
align-items: center;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 17px;
padding: 25px;
box-shadow: var(--shadow);
}

.profile h1 {
margin: 5px 0;
}

.avatar {
width: 48px;
height: 48px;
border-radius: 50%;
background: #dfe5eb;
display: grid;
place-items: center;
font-weight: 900;
}

.big {
width: 82px;
height: 82px;
font-size: 24px;
}

.page-title {
margin: 20px 0;
}

.page-title h1 {
font-size: 34px;
margin: 7px 0;
}

/* =========================================================
FOOTER
========================================================= */

footer {
max-width: 1240px;
margin: auto;
text-align: center;
border-top: 1px solid var(--border);
padding: 28px 24px;
color: var(--muted);
font-size: 12px;
}

/* =========================================================
RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .nav {
        gap: 20px;
    }

    nav {
        gap: 15px;
    }

    .home-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-visual {
        display: none;
    }

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

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

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


/* =========================================================
TABLET / TELEMÓVEL
========================================================= */

@media (max-width: 850px) {

    nav {
        display: none;
    }

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

    .home-two-columns {
        grid-template-columns: 1fr;
    }

    .home-search {
        align-items: stretch;
        flex-direction: column;
    }

    .home-search form {
        width: 100%;
        max-width: none;
    }

    .home-cta {
        align-items: flex-start;
        flex-direction: column;
    }

}


/* =========================================================
TELEMÓVEL
========================================================= */

@media (max-width: 650px) {

    main {
        padding: 18px 14px 50px;
    }


    /* -----------------------------------------------------
       HEADER
       ----------------------------------------------------- */

    .nav {
        min-height: 68px;
        height: auto;
        padding: 11px 15px;
        gap: 10px;
    }


    /* LOGO
       Mantém TRANSFER laranja e AMADOR branco */

    .logo {
        font-size: 18px;
        flex-shrink: 0;
    }

    .logo span {
        color: var(--accent);
    }


    /* ÁREA DIREITA */

    .nav-right {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 7px;
        white-space: nowrap;
    }


    /* Quando NÃO está autenticado:
       Entrar + Registar continuam visíveis */

    .nav-right > a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }


    /* Esconde apenas links normais do utilizador
       quando está autenticado */

    .header-welcome {
        max-width: 145px;
        padding: 7px 9px;
    }

    .header-welcome strong {
        max-width: 85px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


    /* Botão REGISTAR */

    .mini-btn {
        padding: 8px 11px;
        font-size: 12px;
    }


    /* -----------------------------------------------------
       HERO
       ----------------------------------------------------- */

    .home-hero {
        padding: 35px 25px;
        border-radius: 20px;
    }

    .home-hero h1 {
        font-size: 43px;
        letter-spacing: -2px;
    }

    .home-hero p {
        font-size: 15px;
    }


    /* -----------------------------------------------------
       ESTATÍSTICAS
       ----------------------------------------------------- */

    .home-stats {
        gap: 9px;
    }

    .stat-card {
        padding: 14px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
    }

    .stat-card strong {
        font-size: 21px;
    }


    /* -----------------------------------------------------
       GRELHAS
       ----------------------------------------------------- */

    .matches-grid,
    .people-grid,
    .clubs-grid,
    .scorers-grid {
        grid-template-columns: 1fr;
    }


    /* -----------------------------------------------------
       PESQUISA
       ----------------------------------------------------- */

    .home-search {
        padding: 20px;
    }

    .home-search form {
        flex-direction: column;
    }

    .home-search button {
        min-height: 44px;
    }


    /* -----------------------------------------------------
       RESULTADOS
       ----------------------------------------------------- */

    .result-row {
        grid-template-columns: 50px 1fr 52px 1fr;
        gap: 5px;
    }

    .result-team {
        font-size: 11px;
    }


    /* -----------------------------------------------------
       CTA
       ----------------------------------------------------- */

    .home-cta {
        padding: 30px 25px;
    }

    .home-cta h2 {
        font-size: 24px;
    }

}


/* =========================================================
TELEMÓVEL PEQUENO
========================================================= */

@media (max-width: 420px) {

    .logo {
        font-size: 16px;
    }


    /* Mantém Entrar e Registar */

    .nav-right {
        gap: 5px;
    }

    .nav-right > a {
        font-size: 12px;
    }

    .header-welcome {
        max-width: 120px;
    }

    .header-welcome strong {
        max-width: 65px;
    }

    .mini-btn {
        padding: 8px 10px;
        font-size: 12px;
    }


    /* HERO */

    .home-hero h1 {
        font-size: 36px;
    }


    /* ESTATÍSTICAS */

    .home-stats {
        grid-template-columns: 1fr 1fr;
    }

    .stat-card {
        gap: 9px;
    }

    .stat-icon {
        width: 35px;
        height: 35px;
        font-size: 15px;
    }

    .stat-card span {
        font-size: 10px;
    }

    .stat-card strong {
        font-size: 18px;
    }

}
