:root {
    --fcl-blue:#0b4ea2;
    --fcl-deep-blue:#06356f;
    --fcl-orange:#f58220;
    --fcl-gold:#f6c343;
    --fcl-cream:#fff4d8;
    --fcl-dark:#1f2937;
}

* { box-sizing:border-box; }

html, body {
    margin:0;
    min-height:100%;
    font-family:"Segoe UI", Arial, sans-serif;
    background:var(--fcl-cream);
    color:var(--fcl-dark);
}

body {
    min-height:100vh;
    display:flex;
    flex-direction:column;
}

/* ================= HEADER ================= */
.site-header {
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:9999;
    background:linear-gradient(135deg, var(--fcl-deep-blue), var(--fcl-blue));
    color:white;
    border-bottom:5px solid var(--fcl-orange);
}

.header-bar {
    display:grid;
    grid-template-columns: 1.4fr 1.8fr 0.8fr;
    align-items:center;
    gap:20px;
    padding:14px 28px;
}

/* BRAND */
.brand {
    display:flex;
    align-items:center;
    gap:12px;
}

.brand img {
    width:72px;
    height:72px;
    border-radius:50%;
    background:white;
    padding:5px;
}

.brand h1 {
    margin:0;
    font-size:25px;
}

.brand p {
    margin:3px 0 0;
    color:var(--fcl-gold);
    font-size:14px;
}

/* MENU */
.main-menu {
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

.main-menu a {
    color:white;
    text-decoration:none;
    font-weight:700;
    padding:8px 10px;
    border-radius:20px;
}

.main-menu a:hover {
    background:var(--fcl-orange);
}

/* USER MENU */
.user-menu {
    display:flex;
    justify-content:flex-end;
    align-items:center;
}

.user-menu a {
    color:white;
    text-decoration:none;
    font-weight:700;
    padding:8px 12px;
    border-radius:20px;
}

.user-menu a:hover {
    background:var(--fcl-orange);
}

/* DROPDOWN */
.user-dropdown { position:relative; }

.user-name {
    background:var(--fcl-orange);
    color:white;
    padding:9px 14px;
    border-radius:22px;
    font-weight:700;
    cursor:pointer;
}

.dropdown-menu {
    display:none;
    position:absolute;
    top:42px;
    right:0;
    background:white;
    min-width:190px;
    border-radius:12px;
    box-shadow:0 8px 22px rgba(0,0,0,0.22);
    z-index:99999;
}

.dropdown-menu a {
    display:block;
    color:var(--fcl-dark);
    padding:12px 16px;
    text-decoration:none;
    font-weight:600;
}

.dropdown-menu a:hover {
    background:var(--fcl-orange);
    color:white;
}

.user-dropdown:hover .dropdown-menu {
    display:block;
}

/* ================= PAGE ================= */
.page-content {
    flex:1;
    padding:140px 34px 90px;
}

/* ================= HERO ================= */
.hero {
    min-height:380px;
    border-radius:26px;
    background:
        linear-gradient(135deg, rgba(6,53,111,0.84), rgba(245,130,32,0.68)),
        url('/carroms/assets/images/carrom-hero.jpg');
    background-size:cover;
    display:flex;
    align-items:center;
    padding:55px;
    color:white;
    margin-bottom:32px;
}

.hero h1 { font-size:48px; }

.hero-btn {
    margin-top:15px;
    background:var(--fcl-orange);
    color:white;
    padding:14px 26px;
    border-radius:30px;
    text-decoration:none;
}

/* ================= CARDS ================= */
.home-grid {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
}

.card {
    background:white;
    padding:26px;
    border-radius:22px;
    box-shadow:0 8px 22px rgba(0,0,0,0.12);
    border-top:6px solid var(--fcl-orange);
}

/* ================= FOOTER ================= */
.site-footer {
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    background:linear-gradient(135deg, var(--fcl-deep-blue), var(--fcl-blue));
    color:white;
    text-align:center;
    padding:16px;
    font-weight:bold;
    border-top:5px solid var(--fcl-orange);
}

/* ================= MOBILE ================= */
.hamburger { display:none; }
.mobile-menu { display:none; }
.mobile-bottom-nav { display:none; }

@media (max-width:768px) {

    .header-bar {
        grid-template-columns:1fr auto;
        padding:12px 16px;
    }

    .main-menu,
    .user-menu {
        display:none !important;
    }

    .hamburger {
        display:block;
        background:var(--fcl-orange);
        color:white;
        border:none;
        font-size:22px;
        border-radius:8px;
        padding:6px 10px;
    }

    .mobile-menu {
        position:fixed;
        top:80px;
        right:12px;
        width:240px;
        background:white;
        border-radius:16px;
        box-shadow:0 10px 30px rgba(0,0,0,0.25);
        z-index:10000;
    }

    .mobile-menu.show {
        display:block;
    }

    .mobile-menu a {
        display:block;
        padding:14px;
        text-decoration:none;
        color:var(--fcl-dark);
        border-bottom:1px solid #eee;
    }

    .mobile-menu a:hover {
        background:var(--fcl-orange);
        color:white;
    }

    .site-footer {
        display:none;
    }

    .mobile-bottom-nav {
        display:grid;
        grid-template-columns:repeat(4,1fr);
        position:fixed;
        bottom:0;
        width:100%;
        background:var(--fcl-blue);
        border-top:4px solid var(--fcl-orange);
        z-index:9999;
    }

    .mobile-bottom-nav a {
        text-align:center;
        color:white;
        padding:8px;
        text-decoration:none;
        font-size:20px;
    }

    .mobile-bottom-nav span {
        display:block;
        font-size:11px;
    }

    .page-content {
        padding-top:110px;
        padding-bottom:80px;
    }
}
.center-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 220px); /* account for header + footer */
}

.form-card {
    background: white;
    width: 420px;
    max-width: 95%;
    padding: 30px;
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.18);
    border-top: 6px solid var(--fcl-orange);
}

.form-card input {
    border: 1px solid #ccc;
}

.form-card button {
    cursor: pointer;
}
.session-page {
    max-width: 1200px;
    margin: 0 auto;
}

.session-card {
    max-width: 460px;
    margin: 0 auto 30px;
    background: white;
    padding: 28px;
    border-radius: 22px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
    border-top: 6px solid var(--fcl-orange);
    text-align: center;
}

.session-card h1 {
    margin: 0 0 8px;
    color: var(--fcl-blue);
}

.session-card p {
    margin-bottom: 20px;
}

.session-card select {
    width: 220px;
    padding: 13px;
    border-radius: 12px;
    border: 1px solid #ccc;
    font-weight: bold;
}

.season-title {
    text-align: center;
    color: var(--fcl-blue);
    margin-bottom: 24px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.dash-card {
    background: white;
    color: var(--fcl-dark);
    text-decoration: none;
    padding: 24px;
    border-radius: 22px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
    border-top: 6px solid var(--fcl-orange);
}

.dash-card:hover {
    transform: translateY(-5px);
}

.dash-icon {
    font-size: 34px;
}

.dash-card h3 {
    color: var(--fcl-blue);
}

@media (max-width: 1000px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.back-icon-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--fcl-orange);
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
}

.back-icon-text:hover {
    background: var(--fcl-gold);
    color: var(--fcl-deep-blue);
}
.mobile-account-menu {
    display: none;
}

@media (max-width: 768px) {
    .mobile-account-menu {
        position: fixed;
        right: 10px;
        bottom: 72px;
        width: 250px;
        background: white;
        border-radius: 18px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.25);
        overflow: hidden;
        z-index: 10000;
    }

    .mobile-account-menu.show {
        display: block;
    }

    .mobile-account-menu a {
        display: block;
        padding: 15px 18px;
        color: var(--fcl-dark);
        text-decoration: none;
        font-weight: 700;
        border-bottom: 1px solid #eee;
    }

    .mobile-account-menu a:hover {
        background: var(--fcl-orange);
        color: white;
    }
}
/* FINAL MOBILE FIXED APP LAYOUT */
@media (max-width: 768px) {
    html,
    body {
        height: 100%;
        overflow: hidden;
    }

    body {
        position: fixed;
        width: 100%;
        height: 100%;
    }

    .site-header {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 99999;
    }

    .mobile-bottom-nav {
        position: fixed !important;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 99999;
    }

    .page-content {
        position: fixed;
        top: 105px;
        bottom: 65px;
        left: 0;
        right: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 20px 18px 30px !important;
    }

    .mobile-menu {
        position: fixed !important;
    }

    .mobile-account-menu {
        position: fixed !important;
    }
}
.availability-card {
    background: white;
    padding: 28px;
    border-radius: 22px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
    border-top: 6px solid var(--fcl-orange);
}

.availability-player-select {
    margin-bottom: 24px;
}

.availability-player-select label {
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    color: var(--fcl-blue);
}

.availability-player-select select {
    width: 260px;
    max-width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #ccc;
}

.availability-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.availability-day {
    background: #fff8ea;
    border: 1px solid #f2d8a7;
    border-radius: 16px;
    padding: 16px;
}

.date-label {
    font-weight: bold;
    color: var(--fcl-blue);
    margin-bottom: 10px;
}

.availability-day select {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
}

.save-btn {
    margin-top: 24px;
    background: var(--fcl-orange);
    color: white;
    border: none;
    padding: 13px 24px;
    border-radius: 24px;
    font-weight: bold;
    cursor: pointer;
}

.legend-card {
    margin-top: 18px;
    background: white;
    padding: 18px;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}

@media (max-width: 900px) {
    .availability-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .availability-grid {
        grid-template-columns: 1fr;
    }
}
.ranking-card {
    background: white;
    padding: 24px;
    border-radius: 22px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
    border-top: 6px solid var(--fcl-orange);
}

.ranking-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.ranking-table th,
.ranking-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.ranking-table th {
    background: var(--fcl-blue);
    color: white;
}

.ranking-table tr:hover {
    background: #fff4d8;
}

.ranking-table td:first-child {
    font-weight: bold;
    color: var(--fcl-orange);
}
/* CENTERED CONTAINER */
.ranking-container {
    display: flex;
    justify-content: center;
}

/* SMALL NICE CARD */
.ranking-card {
    width: 100%;
    max-width: 700px;
    padding: 18px;
}

/* TABLE STYLE */
.ranking-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

/* HEADER */
.ranking-table th {
    background: var(--fcl-blue);
    color: white;
    padding: 12px;
    text-align: center;
    font-size: 13px;
}

/* ROWS */
.ranking-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

/* TEAM NAME LEFT */
.ranking-table td:nth-child(2) {
    text-align: left;
    font-weight: 600;
}

/* HOVER EFFECT */
.ranking-table tr:hover {
    background: #fff4d8;
}

/* RANK STYLE */
.rank {
    font-weight: bold;
    color: var(--fcl-orange);
}

/* POINTS HIGHLIGHT */
.points {
    font-weight: bold;
    color: var(--fcl-blue);
}
/* FINAL COMPACT TEAM RANKING FIX */
.centered-title {
    text-align: center;
}

.ranking-container {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.compact-ranking-card {
    width: 100% !important;
    max-width: 620px !important;
    padding: 18px !important;
    margin: 0 auto !important;
}

.compact-ranking-table {
    width: 100% !important;
    min-width: 0 !important;
    border-collapse: collapse !important;
    font-size: 14px !important;
}

.compact-ranking-table th {
    background: var(--fcl-blue) !important;
    color: white !important;
    padding: 12px !important;
    text-align: center !important;
}

.compact-ranking-table td {
    padding: 12px !important;
    text-align: center !important;
    border-bottom: 1px solid #eee !important;
}

.compact-ranking-table td:nth-child(2) {
    text-align: left !important;
    font-weight: 700 !important;
}

.rank {
    color: var(--fcl-orange) !important;
    font-weight: bold !important;
}

.points {
    color: var(--fcl-blue) !important;
    font-weight: bold !important;
}