*{box-sizing:border-box}

html{
min-height:100%;
}

body{
 margin:0;
 min-height:100vh;
 display:flex;
 flex-direction:column;
 font-family:Inter,system-ui,sans-serif;
 color:#f8fafc;
 line-height:1.6;
 background-color:#070a12;
 background-size:cover;
 background-position:center center;
 background-repeat:no-repeat;
 background-attachment:fixed;
}

/* FUNDO PADRÃO / INÍCIO */
body,
body.home-page{
 background-image:
 linear-gradient(rgba(7,10,18,.35),rgba(7,10,18,.48)),
 url('/images/inicio.jpg');
}

/* FUNDO SOBRE */
body.sobre-page{
 background-image:
 linear-gradient(rgba(7,10,18,.35),rgba(7,10,18,.48)),
 url('/images/sobre.jpg');
}

/* FUNDO EVENTOS */
body.eventos-page{
 background-image:
 linear-gradient(rgba(7,10,18,.35),rgba(7,10,18,.48)),
 url('/images/eventos.jpg');
}

/* FUNDO NOTÍCIAS */
body.noticias-page{
 background-image:
 linear-gradient(rgba(7,10,18,.35),rgba(7,10,18,.48)),
 url('/images/noticias.jpg');
}

/* FUNDO MEMBROS */
body.membros-page{
background-image:
linear-gradient(rgba(7,10,18,.35),rgba(7,10,18,.48)),
url('/images/membros.jpg');
}

/* FUNDO RECRUTAMENTO */
body.recrutamento-page{
background-image:
linear-gradient(rgba(7,10,18,.35),rgba(7,10,18,.48)),
url('/images/recrutamento.jpg');
}

/* FUNDO LOGIN */
body.login-page{
background-image:
linear-gradient(rgba(7,10,18,.35),rgba(7,10,18,.48)),
url('/images/login.jpg');
}

/* FUNDO REGISTAR */
body.registar-page{
background-image:
linear-gradient(rgba(7,10,18,.35),rgba(7,10,18,.48)),
url('/images/registar.jpg');
}

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

main{
 flex:1;
 min-height:calc(100vh - 90px);
}

.navbar{
position:sticky;
top:0;
z-index:50;
display:flex;
align-items:center;
justify-content:space-between;
padding:18px 6vw;
background:rgba(7,10,18,.72);
backdrop-filter:blur(18px);
border-bottom:1px solid rgba(255,255,255,.08)
}

.brand{
display:flex;
align-items:center;
gap:12px;
font-weight:900
}

.brand-mark{
display:grid;
place-items:center;
width:44px;
height:44px;
border-radius:16px;
background:linear-gradient(135deg,var(--primary),var(--secondary));
box-shadow:0 0 35px rgba(225,29,72,.35)
}

.brand-logo{
width:44px !important;
height:44px !important;
min-width:44px !important;
max-width:44px !important;
min-height:44px !important;
max-height:44px !important;
border-radius:16px;
object-fit:cover;
display:block;
box-shadow:0 0 35px rgba(225,29,72,.35)
}

.nav-links{
display:flex;
gap:18px;
align-items:center
}

.nav-links a{
opacity:.82
}

.nav-links a:hover,
.nav-links .active{
opacity:1;
color:white
}

.pill{
padding:10px 16px;
border:1px solid rgba(255,255,255,.14);
border-radius:999px
}

.admin-pill,
.btn.primary{
background:linear-gradient(135deg,var(--primary),var(--secondary));
border:0
}

.nav-toggle{
display:none
}

.hero{
position:relative;
display:grid;
grid-template-columns:1.15fr .85fr;
gap:40px;
align-items:center;
padding:95px 6vw;
background:transparent
}

.hero:before{
content:"";
position:absolute;
inset:0;
background:
linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),
linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px);
background-size:48px 48px;
mask-image:linear-gradient(to bottom,#000,transparent)
}

.hero>*{
position:relative
}

.eyebrow{
display:inline-flex;
color:#cbd5e1;
text-transform:uppercase;
font-size:12px;
font-weight:800;
letter-spacing:.16em;
margin-bottom:12px
}

.hero h1,
.page-hero h1{
font-size:clamp(42px,7vw,86px);
line-height:.95;
margin:0 0 20px;
font-weight:900
}

.hero p,
.page-hero p{
font-size:20px;
color:#cbd5e1;
max-width:760px
}

.hero-actions{
display:flex;
gap:14px;
flex-wrap:wrap;
margin-top:32px
}

.btn{
display:inline-flex;
align-items:center;
justify-content:center;
padding:13px 20px;
border-radius:16px;
font-weight:800;
cursor:pointer;
color:white;
border:1px solid rgba(255,255,255,.14)
}

.btn.ghost{
background:rgba(255,255,255,.06)
}

.glass,
.panel,
.stat,
.driver-card,
.news-card,
.info-card,
.auth-card,
.timeline article{
background:rgba(15,18,28,.45);
border:1px solid rgba(255,255,255,.16);
box-shadow:0 20px 80px rgba(0,0,0,.22);
backdrop-filter:blur(10px)
}

.hero-card{
border-radius:32px;
padding:36px
}

.hero-card h2{
font-size:34px;
margin:10px 0
}

.stats-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:16px;
padding:30px 6vw
}

.stat{
border-radius:24px;
padding:24px
}

.stat strong{
display:block;
font-size:36px
}

.stat span,
.muted{
color:#94a3b8
}

.section{
padding:64px 6vw
}

.two-col{
display:grid;
grid-template-columns:1fr 1fr;
gap:28px;
align-items:start
}

.section h2{
font-size:38px;
line-height:1.05;
margin:0 0 16px
}

.feature-list{
display:grid;
gap:16px;
margin-top:24px
}

.feature-list div,
.info-card{
border-radius:22px;
padding:20px;
background:rgba(255,255,255,.045);
border:1px solid rgba(255,255,255,.08)
}

.panel{
border-radius:28px;
padding:28px
}

.mini-card{
padding:16px;
border-radius:18px;
background:rgba(0,0,0,.22);
margin:14px 0
}

.mini-card span,
.news-card span{
display:block;
color:#94a3b8;
font-size:14px
}

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

.driver-card,
.news-card{
border-radius:26px;
padding:24px
}

.avatar{
width:62px;
height:62px;
border-radius:22px;
display:grid;
place-items:center;
background:linear-gradient(135deg,var(--primary),var(--secondary));
font-size:28px;
font-weight:900
}

.driver-card strong{
display:block;
font-size:26px;
margin-top:10px
}

.page-hero{
padding:80px 6vw 45px;
background:transparent
}

.check-list{
padding-left:0;
list-style:none
}

.check-list li{
margin:12px 0;
padding:14px 16px;
border-radius:16px;
background:rgba(255,255,255,.05)
}

.check-list li:before{
content:"✓ ";
color:var(--secondary);
font-weight:900
}

.timeline{
display:grid;
gap:18px
}

.timeline article{
border-radius:24px;
padding:24px
}

.table-wrap{
overflow-x:auto
}

table{
width:100%;
border-collapse:collapse;
background:rgba(255,255,255,.04);
border-radius:22px;
overflow:hidden
}

th,td{
text-align:left;
padding:14px 16px;
border-bottom:1px solid rgba(255,255,255,.08)
}

th{
color:#cbd5e1;
background:rgba(255,255,255,.06)
}

.auth-shell{
padding:70px 6vw;
display:grid;
place-items:center
}

.auth-card{
width:min(460px,100%);
border-radius:30px;
padding:34px
}

.auth-card.wide{
width:min(840px,100%)
}

label{
display:grid;
gap:8px;
margin:12px 0;
color:#cbd5e1
}

input,textarea,select{
width:100%;
border:1px solid rgba(255,255,255,.12);
background:rgba(0,0,0,.25);
color:white;
border-radius:14px;
padding:13px 14px;
font:inherit
}

textarea{
min-height:110px
}

.form-grid,
.admin-grid{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:18px
}

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

.actions{
display:flex;
gap:10px;
flex-wrap:wrap
}

.actions form{
display:flex;
gap:6px
}

.actions button{
border:0;
border-radius:10px;
padding:8px 10px
}

.toast{
position:fixed;
top:86px;
right:24px;
z-index:100;
padding:14px 18px;
border-radius:16px;
font-weight:800
}

.toast.success{
background:#14532d
}

.toast.error{
background:#7f1d1d
}

/* =========================
   FOOTER PREMIUM PAT
========================= */

.footer,
.footer.footer-premium{
display:grid;
grid-template-columns:1.6fr 1fr 1fr;
gap:42px;
padding:54px 6vw;
position:relative;
background:
linear-gradient(135deg,rgba(5,7,13,.92),rgba(10,16,30,.88)),
radial-gradient(circle at top left,rgba(225,29,72,.18),transparent 35%),
radial-gradient(circle at bottom right,rgba(22,163,74,.14),transparent 35%);
border-top:1px solid rgba(255,255,255,.10);
color:#cbd5e1;
backdrop-filter:blur(18px);
box-shadow:0 -24px 90px rgba(0,0,0,.28)
}

.footer::before{
content:"";
position:absolute;
left:6vw;
right:6vw;
top:0;
height:1px;
background:linear-gradient(90deg,transparent,rgba(255,255,255,.25),transparent)
}

.footer-col,
.footer>div{
display:flex;
flex-direction:column;
gap:12px
}

.footer-brand h3,
.footer h3{
margin:0 0 8px;
color:#fff;
font-size:22px;
font-weight:900;
letter-spacing:-.02em
}

.footer-col strong,
.footer strong{
color:#fff;
font-size:15px;
font-weight:900;
letter-spacing:.08em;
text-transform:uppercase
}

.footer-brand p,
.footer p{
margin:0;
max-width:520px;
color:#cbd5e1;
line-height:1.8
}

.footer-link,
.footer-info,
.footer a,
.footer span{
display:inline-flex;
align-items:center;
gap:10px;
width:fit-content;
margin-top:0;
color:#94a3b8;
font-size:15px;
line-height:1.6;
transition:.25s ease
}

.footer-link,
.footer a{
text-decoration:none
}

.footer-link:hover,
.footer a:hover{
color:#fff;
transform:translateX(5px)
}

.discord-link{
color:#a5b4fc !important
}

.discord-link:hover{
color:#5865f2 !important;
text-shadow:0 0 18px rgba(88,101,242,.45)
}

.footer-link i,
.footer-info i{
width:20px;
min-width:20px;
font-size:17px;
text-align:center;
color:currentColor
}

/* LOGIN SOCIAL */

.social-login{
display:flex;
flex-direction:column;
gap:14px;
margin:25px 0;
}

.social-btn{
display:flex;
align-items:center;
justify-content:center;
gap:12px;
padding:14px;
border-radius:16px;
font-weight:800;
transition:.25s;
border:1px solid rgba(255,255,255,.12);
}

.social-btn:hover{
transform:translateY(-2px);
background:rgba(255,255,255,.06);
}

.google-btn{
background:rgba(255,255,255,.04);
}

.auth-divider{
position:relative;
text-align:center;
margin:24px 0;
}

.auth-divider span{
background:rgba(15,18,28,.92);
padding:0 16px;
color:#94a3b8;
position:relative;
z-index:2;
}

.auth-divider::before{
content:"";
position:absolute;
left:0;
top:50%;
width:100%;
height:1px;
background:rgba(255,255,255,.1);
}

.full-btn{
width:100%;
margin-top:10px;
}

.auth-bottom-text{
text-align:center;
margin-top:22px;
color:#cbd5e1;
}

.auth-bottom-text a{
font-weight:800;
color:white;
}

@media(max-width:900px){
.hero,
.two-col,
.form-grid,
.admin-grid,
.footer,
.footer.footer-premium{
grid-template-columns:1fr
}

.footer,
.footer.footer-premium{
gap:28px;
padding:42px 6vw
}

.footer-link:hover,
.footer a:hover{
transform:none
}

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

.nav-toggle{
display:block;
background:transparent;
border:0;
color:white;
font-size:28px
}

.nav-links{
display:none;
position:absolute;
left:0;
right:0;
top:75px;
padding:20px 6vw;
background:#070a12;
flex-direction:column;
align-items:flex-start
}

.nav-open .nav-links{
display:flex
}
}

@media(max-width:560px){
.stats-grid,
.cards-grid{
grid-template-columns:1fr
}

.hero{
padding-top:60px
}

.hero h1,
.page-hero h1{
font-size:42px
}
}