/* ==========================================
   MYCRIC SCORE
   PREMIUM LANDING PAGE CSS
   PART 1
==========================================*/

/* Google Font */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ==========================================
RESET
==========================================*/

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

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Poppins',sans-serif;

    background:#0d0d0d;

    color:#fff;

    overflow-x:hidden;

    line-height:1.7;

}

img{

    max-width:100%;

    display:block;

}

a{

    text-decoration:none;

    color:inherit;

}

ul{

    list-style:none;

}

/* ==========================================
VARIABLES
==========================================*/

:root{

    --primary:#d32027;

    --primary-dark:#b3141b;

    --secondary:#ff4747;

    --white:#ffffff;

    --black:#0d0d0d;

    --gray:#b8b8b8;

    --card:#171717;

    --card2:#202020;

    --border:#2f2f2f;

    --shadow:0 15px 40px rgba(0,0,0,.35);

    --radius:18px;

    --transition:.35s ease;

}

/* ==========================================
CONTAINER
==========================================*/

.container{

    width:min(1180px,92%);

    margin:auto;

}

/* ==========================================
SECTION
==========================================*/

section{

    padding:100px 0;

}

.section-heading{

    text-align:center;

    margin-bottom:60px;

}

.section-heading span{

    display:inline-block;

    color:var(--secondary);

    font-weight:700;

    letter-spacing:2px;

    margin-bottom:10px;

}

.section-heading h2{

    font-size:42px;

    margin-bottom:18px;

    font-weight:800;

}

.section-heading p{

    color:var(--gray);

    max-width:700px;

    margin:auto;

}

/* ==========================================
BUTTONS
==========================================*/

.btn-primary{

    display:inline-flex;

    align-items:center;

    gap:10px;

    background:#000;

    color:#fff;

    padding:15px 34px;

    border-radius:999px;

    font-weight:600;

    transition:var(--transition);

    box-shadow:0 12px 30px rgba(211,32,39,.35);

}

.btn-primary:hover{

    background:var(--primary-dark);

    transform:translateY(-4px);

}

.btn-outline{

    display:inline-flex;

    align-items:center;

    padding:15px 34px;

    border-radius:999px;

    border:2px solid var(--primary);

    transition:.3s;

}

.btn-outline:hover{

    background:var(--primary);

}

/* ==========================================
LOADER
==========================================*/

.loader{

    position:fixed;

    inset:0;

    background:#000;

    display:flex;

    justify-content:center;

    align-items:center;

    z-index:9999;

}

.loader-ball{

    width:70px;

    height:70px;

    border-radius:50%;

    border:8px solid rgba(255,255,255,.15);

    border-top:8px solid var(--primary);

    animation:spin 1s linear infinite;

}

@keyframes spin{

    to{

        transform:rotate(360deg);

    }

}

/* ==========================================
NAVBAR
==========================================*/

.navbar{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    z-index:1000;

    background:rgba(10,10,10,.85);

    backdrop-filter:blur(15px);

    border-bottom:1px solid rgba(255,255,255,.05);

}

.navbar .container{

    display:flex;

    justify-content:space-between;

    align-items:center;

    height:82px;

}

.nav-right{

    display:flex;

    align-items:center;

    gap:26px;

}

.logo{

    display:flex;

    align-items:center;

    gap:12px;

    font-size:24px;

    font-weight:800;

}

.logo img{

    width:64px;

    height:64px;

    object-fit:contain;

}

nav ul{

    display:flex;

    gap:22px;

}

nav a{

    position:relative;

    transition:.3s;

    font-weight:500;

    font-size:14.5px;

    white-space:nowrap;

}

nav a:hover{

    color:var(--secondary);

}

nav a::after{

    content:"";

    position:absolute;

    bottom:-6px;

    left:0;

    width:0;

    height:2px;

    background:var(--primary);

    transition:.3s;

}

nav a:hover::after{

    width:100%;

}

.download-btn{

    background:var(--primary);

    padding:9px 18px;

    border-radius:999px;

    font-weight:600;

    font-size:13px;

    white-space:nowrap;

    transition:.3s;

    display:inline-flex;

    align-items:center;

    gap:6px;

}

.download-btn:hover{

    transform:translateY(-3px);

}

.menu-toggle{

    display:none;

    background:none;

    border:none;

    color:var(--white);

    font-size:22px;

    cursor:pointer;

}

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

.hero{

    padding-top:170px;

    min-height:100vh;

    display:flex;

    align-items:center;

    background:
    radial-gradient(circle at top right,
    rgba(211,32,39,.25),
    transparent 40%),

    radial-gradient(circle at bottom left,
    rgba(255,255,255,.05),
    transparent 40%);

}

.hero-grid{

    display:grid;

    grid-template-columns:1.1fr .9fr;

    gap:70px;

    align-items:center;

}

.hero-badge{

    display:inline-flex;

    align-items:center;

    gap:10px;

    background:linear-gradient(135deg,#d32027,#ff3b3b);

    color:#fff;

    padding:12px 24px;

    border-radius:50px;

    font-weight:700;

    box-shadow:0 10px 25px rgba(211,32,39,.45);

    animation:pulseBadge 2s infinite;

}

@keyframes pulseBadge{

    0%,100%{
        transform:scale(1);
    }

    50%{
        transform:scale(1.05);
    }

}
.hero h1{

    font-size:64px;

    line-height:1.1;

    margin-bottom:24px;

    font-weight:800;

}

.hero p{

    color:var(--gray);

    font-size:18px;

    margin-bottom:35px;

}

.hero-buttons{

    display:flex;

    gap:18px;

    flex-wrap:wrap;

}

.hero-features{

    display:flex;

    gap:25px;

    flex-wrap:wrap;

    margin-top:35px;

    color:#ddd;

}

.hero-features div{

    display:flex;

    align-items:center;

    gap:8px;

}

.hero-features i{

    color:#00d36b;

}

/* ==========================================
LIVE SCORE CARD
==========================================*/

.live-score-card{

    background:linear-gradient(180deg,#202020,#111);

    border:1px solid rgba(255,255,255,.06);

    border-radius:25px;

    padding:35px;

    box-shadow:var(--shadow);

    animation:floatCard 5s ease-in-out infinite;

}

@keyframes floatCard{

    50%{

        transform:translateY(-12px);

    }

}

.live-header{

    display:flex;

    align-items:center;

    gap:10px;

    color:#ff6161;

    font-weight:700;

    margin-bottom:20px;

}

.live-dot{

    width:10px;

    height:10px;

    background:red;

    border-radius:50%;

    animation:pulse 1s infinite;

}

@keyframes pulse{

    50%{

        opacity:.35;

        transform:scale(1.4);

    }

}

.score{

    font-size:64px;

    font-weight:800;

    color:#fff;

    margin:15px 0;

}

.overs{

    color:#bbb;

    margin-bottom:18px;

}

.match-info{

    display:flex;

    justify-content:space-between;

    text-align:center;

    margin:25px 0;

}

.match-info strong{

    display:block;

    font-size:14px;

    color:#aaa;

}

.players{

    display:flex;

    justify-content:space-between;

    margin:25px 0;

}

.need{

    margin-top:25px;

    background:var(--primary);

    padding:14px;

    border-radius:12px;

    text-align:center;

    font-weight:700;

}

/* ==========================================
TRUSTED COUNTERS
==========================================*/

.trusted{

    background:#111;

}

.trusted-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:30px;

}

.counter{

    background:var(--card);

    border-radius:18px;

    padding:35px;

    text-align:center;

    transition:.35s;

}

.counter:hover{

    transform:translateY(-8px);

    background:var(--primary);

}

.counter h2{

    font-size:42px;

    margin-bottom:8px;

}

.counter p{

    color:#ddd;

}

/* ========= END OF PART 5 (CSS PART 1) ========= */

/* ==========================================
PART 2
WHY CHOOSE US
==========================================*/

.why-us{
    background:#121212;
}

.why-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:30px;
}

.why-card{
    background:var(--card);
    border-radius:20px;
    padding:40px 30px;
    text-align:center;
    border:1px solid rgba(255,255,255,.06);
    transition:var(--transition);
}

.why-card:hover{
    transform:translateY(-10px);
    background:var(--primary);
}

.why-card i{
    font-size:46px;
    color:var(--secondary);
    margin-bottom:25px;
}

.why-card:hover i{
    color:#fff;
}

.why-card h3{
    margin-bottom:15px;
    font-size:24px;
}

.why-card p{
    color:#cfcfcf;
}

/* ==========================================
FEATURES
==========================================*/

.features{
    background:#0f0f0f;
}

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

.feature-card{

    background:var(--card);

    padding:35px;

    border-radius:22px;

    border:1px solid rgba(255,255,255,.05);

    transition:.35s;

    position:relative;

    overflow:hidden;

}

.feature-card::before{

    content:"";

    position:absolute;

    width:120px;

    height:120px;

    background:rgba(211,32,39,.08);

    border-radius:50%;

    top:-60px;

    right:-60px;

}

.feature-card:hover{

    transform:translateY(-10px);

    border-color:var(--primary);

}

.feature-icon{

    width:72px;

    height:72px;

    border-radius:18px;

    background:rgba(211,32,39,.12);

    display:flex;

    justify-content:center;

    align-items:center;

    margin-bottom:25px;

}

.feature-icon i{

    color:var(--primary);

    font-size:32px;

}

.feature-card h3{

    margin-bottom:15px;

    font-size:24px;

}

.feature-card p{

    color:#bdbdbd;

}

/* ==========================================
SCREENSHOTS
==========================================*/

.screenshots{

    background:#151515;

}

.phone-gallery{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:35px;

    margin-top:60px;

}

.phone{

    border-radius:35px;

    overflow:hidden;

    transition:.35s;

    box-shadow:0 20px 45px rgba(0,0,0,.45);

}

.phone img{

    width:100%;

    display:block;

}

.phone:hover{

    transform:translateY(-12px) scale(1.03);

}

/* ==========================================
APP HIGHLIGHTS
==========================================*/

.highlights{

    background:#101010;

}

.highlight-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:80px;

    align-items:center;

}

.highlight-left img{

    border-radius:30px;

    box-shadow:var(--shadow);

}

.section-tag{

    display:inline-block;

    background:#ffffff;

    color:#d32027;

    padding:12px 24px;

    border-radius:50px;

    font-weight:700;

    box-shadow:0 8px 20px rgba(0,0,0,.25);

}

.highlight-right h2{

    font-size:42px;

    margin-bottom:25px;

}

.highlight-right p{

    color:#bcbcbc;

    margin-bottom:30px;

}

.highlight-right ul{

    display:grid;

    gap:18px;

    margin-bottom:35px;

}

.highlight-right li{

    display:flex;

    align-items:center;

    gap:12px;

}

.highlight-right li i{

    color:#00d36b;

}

/* ==========================================
TOURNAMENT
==========================================*/

.tournament{

    background:#111;

}

.tournament-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:70px;

    align-items:center;

}

.tournament-image img{

    border-radius:24px;

    box-shadow:var(--shadow);

}

.tournament-card{

    display:flex;

    gap:25px;

    align-items:flex-start;

    margin-bottom:28px;

    background:var(--card);

    padding:25px;

    border-radius:18px;

    transition:.35s;

}

.tournament-card:hover{

    background:var(--primary);

}

.tournament-card i{

    font-size:34px;

    color:#ff5d5d;

}

.tournament-card:hover i{

    color:#fff;

}

.tournament-card h3{

    margin-bottom:10px;

}

/* ==========================================
STATISTICS
==========================================*/

.statistics{

    background:#171717;

}

.statistics-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:25px;

}

.stat-card{

    text-align:center;

    padding:40px;

    background:var(--card);

    border-radius:18px;

    transition:.35s;

}

.stat-card:hover{

    background:var(--primary);

    transform:translateY(-8px);

}

.stat-card h3{

    font-size:42px;

    margin-bottom:10px;

}

/* ==========================================
LIVE DASHBOARD
==========================================*/

.dashboard{

    background:#111;

}

.dashboard-grid{

    display:grid;

    grid-template-columns:1.2fr .8fr;

    gap:50px;

}

.scoreboard{

    background:var(--card);

    border-radius:25px;

    padding:40px;

    box-shadow:var(--shadow);

}

.big-score{

    font-size:70px;

    font-weight:800;

    margin:20px 0;

}

.dashboard-stats{

    display:flex;

    justify-content:space-between;

    margin:30px 0;

}

.dashboard-stats strong{

    display:block;

    color:#aaa;

    margin-bottom:8px;

}

.last-over{

    margin-top:25px;

}

.last-over div{

    display:flex;

    gap:10px;

    flex-wrap:wrap;

    margin-top:15px;

}

.last-over div span{

    width:40px;

    height:40px;

    border-radius:50%;

    background:var(--primary);

    display:flex;

    justify-content:center;

    align-items:center;

}

.player-box{

    background:var(--card);

    padding:30px;

    border-radius:20px;

    margin-bottom:30px;

}

.player-box table{

    width:100%;

    border-collapse:collapse;

    margin-top:20px;

}

.player-box th{

    text-align:left;

    padding-bottom:12px;

}

.player-box td{

    padding:12px 0;

    border-top:1px solid rgba(255,255,255,.05);

}

/* ==========================================
TEAMS
==========================================*/

.teams{

    background:#151515;

}

.team-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:30px;

}

.team-card{

    background:var(--card);

    text-align:center;

    padding:40px 30px;

    border-radius:20px;

    transition:.35s;

}

.team-card:hover{

    background:var(--primary);

    transform:translateY(-8px);

}

.team-card i{

    font-size:48px;

    color:#ff5d5d;

    margin-bottom:20px;

}

.team-card:hover i{

    color:#fff;

}

.team-card h3{

    margin-bottom:15px;

}

/* ==========================================
END OF CSS PART 2
==========================================*/

/* ==========================================
PART 3
HOW IT WORKS
==========================================*/

.how-it-works{
    background:#101010;
}

.steps-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}

.step-card{
    background:var(--card);
    border-radius:20px;
    padding:40px 30px;
    text-align:center;
    position:relative;
    transition:.35s;
}

.step-card:hover{
    transform:translateY(-10px);
    background:var(--primary);
}

.step-number{
    position:absolute;
    top:20px;
    right:20px;
    width:40px;
    height:40px;
    border-radius:50%;
    background:rgba(255,255,255,.12);
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
}

.step-card i{
    font-size:48px;
    color:#ff5d5d;
    margin-bottom:20px;
}

.step-card:hover i{
    color:#fff;
}

.step-card h3{
    margin-bottom:15px;
}

/* ==========================================
TESTIMONIALS
==========================================*/

.testimonials{
    background:#161616;
}

.testimonial-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
}

.testimonial-card{
    background:var(--card);
    padding:35px;
    border-radius:20px;
    text-align:center;
    transition:.35s;
}

.testimonial-card:hover{
    transform:translateY(-10px);
}

.testimonial-card img{
    width:90px;
    height:90px;
    border-radius:50%;
    object-fit:cover;
    margin:auto;
    margin-bottom:20px;
    border:4px solid var(--primary);
}

.testimonial-card h3{
    margin-bottom:5px;
}

.testimonial-card span{
    color:#bbb;
}

.stars{
    color:#FFD700;
    font-size:20px;
    margin:20px 0;
}

/* ==========================================
FAQ
==========================================*/

.faq{
    background:#111;
}

.faq-container{
    max-width:900px;
    margin:auto;
}

.faq details{
    background:var(--card);
    margin-bottom:20px;
    padding:20px 25px;
    border-radius:15px;
    transition:.3s;
}

.faq details[open]{
    border-left:5px solid var(--primary);
}

.faq summary{
    cursor:pointer;
    font-weight:600;
    font-size:18px;
}

.faq p{
    margin-top:15px;
    color:#c9c9c9;
}

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

.download-section{
    background:linear-gradient(135deg,#ca060f,#000000);
    text-align:center;
}

.download-section h2{
    font-size:46px;
    margin:25px 0;
}

.download-section p{
    max-width:700px;
    margin:auto;
    margin-bottom:40px;
}

.large-btn{
    font-size:18px;
    padding:18px 45px;
}

.download-info{
    margin-top:30px;
    display:flex;
    justify-content:center;
    gap:25px;
    flex-wrap:wrap;
}

.download-info span{
    background:rgba(255,255,255,.12);
    padding:10px 18px;
    border-radius:999px;
}

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

footer{
    background:#0b0b0b;
    padding:70px 0 25px;
}

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

footer h3,
footer h4{
    margin-bottom:20px;
}

footer ul li{
    margin-bottom:12px;
}

footer ul li a{
    color:#c8c8c8;
    transition:.3s;
}

footer ul li a:hover{
    color:var(--secondary);
}

.social-icons{
    display:flex;
    gap:15px;
}

.social-icons a{
    width:46px;
    height:46px;
    border-radius:50%;
    background:var(--card);
    display:flex;
    justify-content:center;
    align-items:center;
    transition:.3s;
}

.social-icons a:hover{
    background:var(--primary);
}

footer hr{
    border:none;
    border-top:1px solid rgba(255,255,255,.08);
    margin:45px 0 25px;
}

.copyright{
    text-align:center;
    color:#999;
}

/* ==========================================
WHATSAPP BUTTON
==========================================*/

.whatsapp-btn{
    position:fixed;
    bottom:30px;
    left:30px;
    width:60px;
    height:60px;
    border-radius:50%;
    background:#25D366;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:28px;
    color:#fff;
    box-shadow:0 10px 30px rgba(0,0,0,.35);
    z-index:999;
    transition:.3s;
}

.whatsapp-btn:hover{
    transform:scale(1.1);
}

/* ==========================================
SCROLL TO TOP
==========================================*/
.scroll-top{
    position: fixed !important;
    right: 24px !important;
    bottom: 24px !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(211,32,39,.45);
    transform: none !important;
    transition: .3s;
    z-index: 99999 !important;
}

.scroll-top:hover{
    background: var(--primary-dark);
    box-shadow: 0 14px 32px rgba(211,32,39,.55);
    transform: translateY(-4px) !important;
}

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

@media(max-width:992px){

.hero-grid,
.highlight-grid,
.tournament-grid,
.dashboard-grid{

grid-template-columns:1fr;

}

.hero{
text-align:center;
}

.hero-buttons,
.hero-features{
justify-content:center;
}

.navbar .container{
flex-direction:column;
height:auto;
padding:20px 0;
}

nav ul{
margin:20px 0;
flex-wrap:wrap;
justify-content:center;
}

}

@media(max-width:768px){

section{
padding:70px 0;
}

.hero{
padding-top:230px;
}

.hero h1{
font-size:42px;
}

.section-heading h2{
font-size:32px;
}

.score,
.big-score{
font-size:48px;
}

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

.match-info,
.dashboard-stats{
flex-direction:column;
gap:20px;
}

.download-info{
flex-direction:column;
}

}

@media(max-width:480px){

.hero h1{
font-size:34px;
}

.btn-primary,
.btn-outline,
.download-btn{
width:100%;
justify-content:center;
}

.phone-gallery,
.feature-grid,
.why-grid,
.team-grid,
.statistics-grid,
.steps-grid,
.testimonial-grid{
grid-template-columns:1fr;
}

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

.whatsapp-btn,
.scroll-top{
width:46px;
height:46px;
font-size:17px;
}

.scroll-top{
right:16px !important;
bottom:16px !important;
}

.whatsapp-btn{
left:16px;
bottom:16px;
}

}

/* ==========================================
SMOOTH ANIMATIONS
==========================================*/

.feature-card,
.team-card,
.stat-card,
.phone,
.why-card,
.step-card,
.testimonial-card,
.counter,
.tournament-card{

animation:fadeUp .8s ease both;

}

@keyframes fadeUp{

from{

opacity:0;

transform:translateY(40px);

}

to{

opacity:1;

transform:translateY(0);

}

}

/* ==========================================
END OF MYCRIC SCORE CSS
VERSION 1.0
==========================================*/

/* --- MOBILE RESPONSIVE FIXES --- */
@media(max-width:992px){
    .menu-toggle { display: block !important; margin-top: 10px; }
    .navbar .container { flex-direction: column; height: auto; padding: 15px 0; }
    .nav-right { flex-direction: column; width: 100%; gap: 0; }
    nav { display: none; width: 100%; padding: 20px 0; text-align: center; background: var(--black); }
    nav.active { display: block; }
    nav ul { flex-direction: column; gap: 15px; }
    .download-btn { margin-top: 12px; padding: 11px 24px; font-size: 14px; }

    .hero-grid, .highlight-grid, .tournament-grid, .dashboard-grid, .trusted-grid { grid-template-columns: 1fr !important; }
    .hero { padding-top: 220px; text-align: center; }
    .hero-buttons, .hero-features { justify-content: center; }
    .hero-badge { font-size: 12px; padding: 10px 15px; }
}
/* ========================================= */
/* LIVE MATCHES SECTION (Home Page) */
/* ========================================= */

.matches-section {
    background: var(--black);
    padding: 80px 0;
}

.matches-heading {
    text-align: center;
    margin-bottom: 30px;
}

.matches-heading h2 {
    color: var(--white);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.matches-heading p {
    color: var(--gray);
    font-size: 15px;
}

.matches-tabs {
    display: flex;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto 24px;
}

.matches-tab-btn {
    flex: 1;
    padding: 12px 8px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--gray);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.matches-tab-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

#homeMatchList {
    max-width: 640px;
    margin: 0 auto;
}

.home-match-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: block;
}

.home-match-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.home-match-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.home-status-badge {
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.4px;
}

.home-status-live { background: rgba(211,32,39,.18); color: #ff6b6b; }
.home-status-upcoming { background: rgba(255,255,255,.08); color: var(--gray); }
.home-status-completed { background: rgba(80,200,120,.15); color: #6fdc9a; }

.home-match-type { font-size: 11px; color: var(--gray); }

.home-team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.home-team-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-team-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #2a2a2a;
}

.home-team-name {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
}

.home-team-score {
    color: var(--white);
    font-size: 14.5px;
    font-weight: 700;
}

.home-match-result {
    color: var(--secondary);
    font-size: 12px;
    margin-top: 8px;
    font-weight: 600;
}

.matches-empty-state {
    text-align: center;
    color: var(--gray);
    padding: 50px 20px;
}

.matches-loading-spin {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255,255,255,.15);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 50px auto;
    animation: matchesSpin .8s linear infinite;
}

@keyframes matchesSpin { to { transform: rotate(360deg); } }

.matches-view-all {
    display: block;
    text-align: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 13.5px;
    margin-top: 16px;
    text-decoration: none;
}

/* ---- Matches section: mobile responsive ---- */
@media(max-width:768px){
    .matches-heading h2 { font-size: 26px; }
    .matches-tabs { max-width: 100%; }
    .matches-tab-btn { font-size: 12px; padding: 10px 6px; }
    .home-match-card { padding: 14px; }
    .home-team-name { font-size: 13px; }
    .home-team-score { font-size: 13.5px; }
}

@media(max-width:480px){
    .matches-section { padding: 50px 0; }
    .matches-heading h2 { font-size: 22px; }
    .matches-heading p { font-size: 13px; }
}

/* ---- Fix: cards/grids overflowing right side on narrow mobile screens ---- */
@media(max-width:600px){
    .why-grid,
    .feature-grid,
    .phone-gallery,
    .statistics-grid,
    .team-grid,
    .steps-grid,
    .testimonial-grid,
    .footer-grid{
        grid-template-columns:1fr !important;
    }

    /* Kisi bhi jagah agar koi element apne parent se bada ho jaaye,
       usko force se contain karo - overflow-x:hidden ke saath ye
       guarantee karta hai ki content cut nahi hoga, balki fit hoga. */
    img, video, table, .container, section, .card, .grid, .live-score-card{
        max-width:100%;
        box-sizing:border-box;
    }
}

/* ---- Flexbox overflow fix (root cause) ----
   Flex items by default have min-width:auto, jiski wajah se agar
   andar ka text (jaise team name) lamba ho, to poora flex row apni
   container se bahar chala jaata hai - aur overflow-x:hidden ki
   wajah se wo hissa "cut/hidden" dikhta hai right side se. Ye fix
   saari card/row layouts ke liye lagu karta hai. */
.home-team-row,
.home-team-info,
.home-match-card,
.match-info,
.team-row,
.card,
.testimonial-card,
.feature-card,
.step-card,
[class*="-card"],
[class*="-row"] {
    min-width: 0;
}

.home-team-name,
.team-name,
h3, h4, p, span {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Flex rows jinme text + score/badge dono hain - text ko shrink/
   truncate hone do, dusra hissa apni jagah fixed rahe. */
.home-team-info {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.home-team-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* ========================================= */
/* LEGAL / SUPPORT PAGES (Terms, Privacy, Support) */
/* ========================================= */

/* ---- Secondary nav bar (used on legal pages) ---- */
.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10,10,10,.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.nav .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.nav .brand .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    display: inline-block;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 26px;
    flex-wrap: wrap;
}

.nav ul a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.nav ul a:hover,
.nav ul a.active {
    color: var(--white);
    border-bottom-color: var(--primary);
}

/* ---- Legal page header (hero-style banner) ---- */
.legal-header {
    background: linear-gradient(135deg, var(--black), var(--primary) 160%);
    padding: 60px 0 50px;
    text-align: center;
}

.legal-header h1 {
    color: var(--white);
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 10px;
}

.legal-header p {
    color: rgba(255,255,255,.75);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

/* ---- Legal body content ---- */
.legal-body {
    background: var(--black);
    max-width: 780px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.legal-body h2 {
    color: var(--white);
    font-size: 21px;
    font-weight: 700;
    margin: 36px 0 14px;
}

.legal-body h2:first-child {
    margin-top: 0;
}

.legal-body p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 14px;
}

.legal-body ul {
    margin: 0 0 18px 0;
    padding-left: 22px;
}

.legal-body li {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 8px;
}

.legal-body a {
    color: var(--primary);
}

/* ---- Support page: FAQ grid ---- */
.section {
    background: var(--black);
    padding: 20px 0 80px;
}

.support-grid {
    max-width: 900px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.faq-item h3 {
    color: var(--white);
    font-size: 15.5px;
    font-weight: 700;
    margin-bottom: 10px;
}

.faq-item p {
    color: var(--gray);
    font-size: 13.5px;
    line-height: 1.7;
}

.contact-card {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--card), var(--primary) 220%);
    border-radius: 16px;
    padding: 34px;
    text-align: center;
}

.contact-card h2 {
    color: var(--white);
}

.contact-card .email {
    display: inline-block;
    margin-top: 12px;
    color: var(--white);
    font-weight: 700;
    font-size: 17px;
    padding: 10px 22px;
    background: rgba(255,255,255,.12);
    border-radius: 30px;
}

/* ---- Shared footer (legal pages) ---- */
.footer {
    background: var(--black);
    border-top: 1px solid var(--border);
    padding: 30px 0;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer .brand {
    color: var(--white);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.footer ul {
    display: flex;
    list-style: none;
    gap: 22px;
    flex-wrap: wrap;
}

.footer ul a {
    color: var(--gray);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.footer ul a:hover {
    color: var(--white);
}

.footer .copyright {
    color: #777;
    font-size: 12px;
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

/* ---- Mobile responsive for legal pages ---- */
@media(max-width:600px){
    .nav .container { flex-direction: column; align-items: flex-start; }
    .nav ul { gap: 16px; }
    .legal-header { padding: 44px 0 36px; }
    .legal-header h1 { font-size: 28px; }
    .legal-body { padding: 40px 18px 60px; }
    .legal-body h2 { font-size: 18px; }
    .footer .container { flex-direction: column; text-align: center; }
    .footer ul { justify-content: center; }
}
