.dashboard {
    width: 100%;
    min-height: 100vh;
    padding: 40px;
    box-sizing: border-box;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 30%),
        radial-gradient(circle at bottom right, rgba(132, 204, 22, 0.08), transparent 30%),
        #020617;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.next-match-card {
    width: 100%;
    min-height: 220px;
    background: linear-gradient(135deg, #020617, #0f172a);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 20px;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    box-shadow:
        0 0 25px rgba(0, 140, 255, 0.08),
        inset 0 0 25px rgba(255, 255, 255, 0.02);
}

.match-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.section-subtitle {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 25px;
    font-weight: 300;
    letter-spacing: 5px;
    color: #84cc16;
    margin: 0;
}

.teams-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.team {
    display: flex;
    align-items: center;
    gap: 15px;
}

.team img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.team span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 5px;
    color: white;
    margin-left: 8px;
}

.vs-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.03);
}

.match-details {
    color: rgba(255, 255, 255, 0.65);
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 3px;
    margin: 0;
}

.countdown-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: flex-end;
    padding-left: 40px;
    margin-left: 40px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.countdown {
    display: flex;
    align-items: center;
    gap: 25px;
}

.time-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.time-box:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 55px;
    background: rgba(255, 255, 255, 0.08);
}

.time {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 70px;
    font-weight: 300;
    letter-spacing: 5px;
    color: white;
    line-height: 1;
    margin: 0 20px;
}

.label {
    font-family: 'Bebas Neue', sans-serif;
    margin-top: 8px;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
}

.dashboard-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.ranking-card {
    background: linear-gradient(135deg, #020617, #0f172a);
    min-height: 400px;
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 20px;
    padding: 25px;
    box-sizing: border-box;
    box-shadow:
        0 0 20px rgba(0, 140, 255, 0.05),
        inset 0 0 20px rgba(255, 255, 255, 0.015);
}

.card-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.card-header h3 {
    margin: 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 3px;
}

.card-header i {
    font-size: 30px;
}

.friends-ranking {
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.work-ranking {
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.friends-ranking h3,
.friends-ranking i {
    color: #3b82f6;
}

.work-ranking h3,
.work-ranking i {
    color: #ef4444
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-top: 20px;
}

.ranking-coming {
    width: 100%;
    min-height: 180px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    gap: 14px;

    color: rgba(255, 255, 255, 0.6);

    padding: 20px 0 10px 0;
}

.ranking-coming i {
    font-size: 55px;
    color: #A3E635;
}

.ranking-coming p {
    max-width: 240px;
    font-size: 16px;
    line-height: 1.6;
}

.ranking-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
}

.rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #84cc16;
}

.pseudo {
    flex: 1;
    margin-left: 15px;
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
    color: white;
    font-weight: 500;
}

.points {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}

.stats-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.stats-card {
    background: linear-gradient(135deg, #020617, #0f172a);
    min-height: 400px;
    max-height: 400px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    /*gap: 22px;*/
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 20px;
    padding: 60px 25px 25px 25px;
    box-sizing: border-box;
    box-shadow:
        0 0 20px rgba(0, 140, 255, 0.05),
        inset 0 0 20px rgba(255, 255, 255, 0.015);
    color: white;
}

.stat-item {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-bottom: 40px;
    padding-left: 15px;
}

.stat-item i {
    width: 80px;
    min-width: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    color: #A3E635;
}

.stat-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-box {
    width: 240px;
    display: flex;
    flex-direction: column;
    padding-left: 30px;
}

.stat-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 40px;
    font-weight: 300;
    letter-spacing: 5px;
    color: white;
}

.stat-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 5px;
    line-height: 20px;
    color: #A3E635;
}

.rules-card {
    background: linear-gradient(135deg, #020617, #0f172a);
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 20px;
    padding: 28px 45px;
    box-sizing: border-box;
    box-shadow:
        0 0 20px rgba(0, 140, 255, 0.05),
        inset 0 0 20px rgba(255, 255, 255, 0.015);
    color: white;
}

.rules-title {
    margin: 0 0 26px 0;
    text-align: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 2px;
    color: #A3E635;
}

.rules-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 38px;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 18px;
}

.rule-item i {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #A3E635;
    border-radius: 50%;
    font-size: 24px;
    color: #A3E635;
}

.rule-item div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rule-name {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: white;
}

.rule-points {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #A3E635;
}

.rule-separator {
    width: 1px;
    height: 38px;
    background: rgba(255, 255, 255, 0.12);
}

.rules-note {
    font-family: 'Poppins', sans-serif;
    margin: 28px 0 0 0;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.crownYell {
    color: #facc15 !important;
}

.settingPad {
    padding-top: 20px;
}

.leader-joke {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);

    font-size: 11px;
    line-height: 1.6;
    letter-spacing: 0.5px;

    color: rgba(255, 255, 255, 0.38);
    font-style: italic;
    text-align: center;
}

.first .rank {
    background: #facc15;
    color: black;
}

.second .rank {
    background: #d1d5db;
    color: black;
}

.third .rank {
    background: #d97706;
    color: white;
}


/* ========================================
   RESPONSIVE INTÉGRÉ
   Anciennement dans layout/responsive.css
======================================== */


@media screen and (max-width: 900px) {

    .dashboard {
        width: 100%;
        max-width: 100%;
        padding: 24px 14px;
        overflow-x: hidden;
    }

    .next-match-card {
        flex-direction: column;
        text-align: center;
        padding: 25px 18px;
        gap: 30px;
    }

    .match-info {
        width: 100%;
        align-items: center;
    }

    .teams-container {
        flex-direction: column;
        gap: 18px;
    }

    .dashboard .team {
        flex-direction: column;
    }

    .dashboard .team span {
        margin-left: 0;
        font-size: 24px;
        letter-spacing: 3px;
    }

    .countdown-container {
        width: 100%;
        margin: 0;
        padding: 25px 0 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        align-items: center;
    }

    .countdown {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }

    .time {
        margin: 0;
        font-size: 38px;
    }

    .label {
        font-size: 13px;
    }

    .time-box {
        flex: 1;
        min-width: auto;
    }

    .time-box:not(:last-child)::after {
        display: none;
    }

    .dashboard-grid,
    .dashboard-grid.dashboard-grid-2,
    .dashboard-grid.dashboard-grid-3 {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        gap: 22px;
        justify-content: stretch;
    }

    .dashboard-grid>*,
    .ranking-card,
    .stats-list,
    .stats-card,
    .next-match-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .ranking-card,
    .stats-card {
        min-height: auto;
    }

    .ranking-card {
        padding: 22px 18px;
    }

    .ranking-coming {
        min-height: 160px;
    }

    .ranking-coming i {
        font-size: 44px;
    }

    .ranking-coming p {
        font-size: 15px;
        line-height: 1.5;
    }

    .card-header {
        width: 100%;
        min-width: 0;
        margin-bottom: 10px;
    }

    .card-header h3 {
        font-size: 28px;
        white-space: normal;
    }

    .stats-card {
        max-height: none;
        padding: 25px 20px;
    }

    .rules-list {
        flex-direction: column;
        align-items: flex-start;
    }

    .rule-separator {
        display: none;
    }
}


@media screen and (max-width: 768px) {

    .ranking-card {
        padding: 25px 18px;
    }
}


@media screen and (max-width: 600px) {

    .ranking-card {
        padding: 20px 14px;
        border-radius: 18px;
    }

    .ranking-card h2 {
        font-size: 28px;
        letter-spacing: 2px;
    }
}

