/* =========================================================
   VULPINE PANDA — thème pastel/cartoon 100% custom
   ========================================================= */

:root {
    --panda-radius: 22px;
    --panda-radius-sm: 14px;
    --panda-shadow: 0 10px 25px -8px rgba(58, 46, 57, .18);
    --panda-shadow-hover: 0 14px 30px -6px rgba(58, 46, 57, .28);
    --panda-bg: #F5FAFC;
    --panda-bg-soft: #E3F1F8;
    --panda-text: var(--panda-dark, #3A2E39);
}

html {
    height: 100%;
}

body {
    background-color: var(--panda-bg);
    color: var(--panda-text);
    font-family: 'Quicksand', 'Trebuchet MS', sans-serif;
    overflow-x: hidden;
    padding-top: 88px; /* secours si le JS n'a pas encore mesuré le header */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#app {
    flex: 1 0 auto;
}

.panda-footer {
    flex-shrink: 0;
}

/* ---------- Transition douce entre les pages ---------- */
.panda-page-transition {
    animation: pandaPageIn .45s ease both;
}

.panda-page-transition.panda-page-leaving {
    animation: pandaPageOut .2s ease both;
}

@keyframes pandaPageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pandaPageOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-6px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .panda-page-transition,
    .panda-page-transition.panda-page-leaving {
        animation: none;
    }
}

.panda-fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand, .panda-brand-text {
    font-family: 'Baloo 2', 'Quicksand', sans-serif;
    font-weight: 700;
}

a {
    color: var(--panda-primary);
}

/* ---------- Top announcement banner ---------- */
.panda-topbanner {
    padding: .45rem 0;
    text-align: center;
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
}

/* ---------- Navbar ---------- */
.panda-navbar {
    background: rgba(245, 250, 252, .92);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 18px -6px rgba(34, 51, 74, .12);
    padding: .6rem 0;
}

.panda-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.35rem;
    color: var(--panda-text) !important;
}

.panda-brand-emoji {
    font-size: 1.8rem;
}

.panda-toggler {
    border: none;
    background: var(--panda-bg-soft);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.panda-navbar .nav-link {
    font-weight: 600;
    color: var(--panda-text);
    border-radius: 999px;
    padding: .5rem 1rem;
    margin: 0 .15rem;
    transition: all .2s ease;
}

.panda-navbar .nav-link:hover,
.panda-navbar .nav-link.active {
    background: var(--panda-bg-soft);
    color: var(--panda-primary);
}

.panda-dropdown {
    border: none;
    border-radius: var(--panda-radius-sm);
    box-shadow: var(--panda-shadow);
    padding: .5rem;
}

.panda-dropdown .dropdown-item {
    border-radius: 10px;
    padding: .5rem .75rem;
    font-weight: 600;
}

.panda-dropdown .dropdown-item:hover {
    background: var(--panda-bg-soft);
    color: var(--panda-primary);
}

.panda-avatar {
    border-radius: 50%;
    border: 2px solid var(--panda-secondary);
}

/* ---------- Buttons ---------- */
.panda-btn {
    border-radius: 999px;
    font-weight: 700;
    padding: .55rem 1.4rem;
    border: none;
    transition: transform .15s ease, box-shadow .15s ease;
    box-shadow: var(--panda-shadow);
}

.panda-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--panda-shadow-hover);
}

.panda-btn-primary {
    background: linear-gradient(135deg, var(--panda-primary), #3E9FD6);
    color: #fff;
}

.panda-btn-primary:hover {
    color: #fff;
}

.panda-btn-secondary {
    background: linear-gradient(135deg, var(--panda-secondary), #63c3aa);
    color: #fff;
}

.panda-btn-ghost {
    background: #fff;
    border: 2px solid var(--panda-bg-soft);
    color: var(--panda-text);
}

.panda-btn-lg {
    padding: .8rem 2rem;
    font-size: 1.05rem;
}

/* Generic bootstrap buttons used by plugins (shop, litebans...) inherit the style */
.btn-primary {
    background: linear-gradient(135deg, var(--panda-primary), #3E9FD6);
    border: none;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: var(--panda-shadow);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #3E9FD6, var(--panda-primary));
    box-shadow: var(--panda-shadow-hover);
}

.btn-secondary,
.btn-success {
    border-radius: 999px;
    font-weight: 700;
}

/* ---------- Generic cards / panda card ---------- */
.card,
.panda-card {
    border: none;
    border-radius: var(--panda-radius);
    box-shadow: var(--panda-shadow);
    background: #fff;
}

.card-header {
    background: var(--panda-bg-soft);
    border: none;
    border-radius: var(--panda-radius) var(--panda-radius) 0 0 !important;
    font-weight: 700;
}

.panda-card {
    padding: 2rem;
}

/* ---------- Badges / alerts / forms / tables (shop, litebans, wiki...) ---------- */
.badge, .panda-badge {
    background: var(--panda-accent);
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    padding: .4em .8em;
}

.alert, .panda-alert-warning {
    border: none;
    border-radius: var(--panda-radius-sm);
    font-weight: 600;
}

.alert-warning, .panda-alert-warning {
    background: #FFF3CD;
    color: #7a5b00;
}

.form-control, .form-select, .panda-input {
    border-radius: var(--panda-radius-sm);
    border: 2px solid var(--panda-bg-soft);
    padding: .6rem 1rem;
}

.form-control:focus, .form-select:focus, .panda-input:focus {
    border-color: var(--panda-primary);
    box-shadow: 0 0 0 .2rem rgba(255, 143, 177, .25);
}

.table {
    background: #fff;
    border-radius: var(--panda-radius-sm);
    overflow: hidden;
}

.table thead {
    background: var(--panda-bg-soft);
}

.pagination .page-link {
    border-radius: 999px !important;
    margin: 0 .15rem;
    border: none;
    color: var(--panda-text);
    font-weight: 600;
}

.pagination .page-item.active .page-link {
    background: var(--panda-primary);
    color: #fff;
}

/* ---------- Section helpers ---------- */
.panda-kicker {
    display: inline-block;
    background: var(--panda-bg-soft);
    color: var(--panda-primary);
    font-weight: 700;
    padding: .35rem 1rem;
    border-radius: 999px;
    margin-bottom: .75rem;
    font-size: .9rem;
}

.panda-section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.panda-subtitle {
    color: #8a7a87;
    max-width: 640px;
    margin: 0 auto;
}

.panda-page {
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}

/* ---------- Hero ---------- */
.panda-hero {
    position: relative;
    padding: 4rem 0 5rem;
    overflow: hidden;
    background: linear-gradient(180deg, #EAF6FC 0%, var(--panda-bg) 100%);
}

.panda-hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: .5;
    z-index: 0;
}

.panda-hero-blob-1 {
    width: 260px;
    height: 260px;
    background: var(--panda-secondary);
    top: -60px;
    right: -60px;
}

.panda-hero .container {
    position: relative;
    z-index: 1;
}

.panda-hero-title {
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.panda-hero-text {
    font-size: 1.1rem;
    color: #6b5a68;
}

.panda-hero-image-wrap {
    position: relative;
    border-radius: var(--panda-radius);
    overflow: hidden;
    box-shadow: var(--panda-shadow-hover);
    aspect-ratio: 16 / 8;
}

.panda-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- Stats ---------- */
.panda-stats {
    padding: 2rem 0 4rem;
}

.panda-stat-card {
    background: #fff;
    border-radius: var(--panda-radius);
    box-shadow: var(--panda-shadow);
    padding: 2rem 1rem;
}

.panda-stat-icon {
    font-size: 1.8rem;
    color: var(--panda-primary);
    margin-bottom: .5rem;
    display: block;
}

.panda-stat-online {
    color: #6bd68c;
    font-size: .9rem;
}

.panda-stat-number {
    display: block;
    font-family: 'Baloo 2', sans-serif;
    font-size: 2rem;
    font-weight: 800;
}

.panda-stat-label {
    color: #8a7a87;
    font-weight: 600;
}

/* ---------- About ---------- */
.panda-about {
    padding: 3rem 0;
}

.panda-about-image {
    max-width: 100%;
    border-radius: var(--panda-radius);
}

.panda-about-text {
    color: #6b5a68;
    line-height: 1.7;
}

/* ---------- News / blog ---------- */
.panda-news {
    padding: 4rem 0;
    background: var(--panda-bg-soft);
    border-radius: 60px;
    margin: 2rem 1rem;
}

.panda-news-card {
    display: block;
    background: #fff;
    border-radius: var(--panda-radius);
    box-shadow: var(--panda-shadow);
    overflow: hidden;
    text-decoration: none;
    color: var(--panda-text);
    height: 100%;
    transition: transform .2s ease;
}

.panda-news-card:hover {
    transform: translateY(-4px);
    color: var(--panda-text);
}

.panda-news-image {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.panda-news-body {
    padding: 1.25rem;
}

.panda-news-date {
    color: #8a7a87;
    font-size: .85rem;
    font-weight: 600;
}

.panda-news-title {
    font-size: 1.1rem;
    margin-top: .3rem;
}

/* ---------- CTA ---------- */
.panda-cta {
    padding: 4rem 0;
}

.panda-cta-card {
    background: linear-gradient(135deg, var(--panda-primary), var(--panda-accent));
    border-radius: 40px;
    padding: 3.5rem 2rem;
    color: #fff;
    box-shadow: var(--panda-shadow-hover);
}

.panda-cta-emoji {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 1rem;
}

.panda-cta-title {
    color: #fff;
    font-size: 2rem;
}

.panda-cta-text {
    color: rgba(255, 255, 255, .9);
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

.panda-cta .panda-btn-primary {
    background: #fff;
    color: var(--panda-primary);
}

/* ---------- Vote page ---------- */
.panda-vote-card {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.panda-spinner {
    color: var(--panda-primary);
}

#vote-card .spinner-parent {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    backdrop-filter: blur(0);
    border-radius: var(--panda-radius);
    z-index: 5;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    transition: all .25s ease;
}

#vote-card.voting .spinner-parent {
    opacity: 1;
    visibility: visible;
    background: rgba(245, 250, 252, .75);
    backdrop-filter: blur(4px);
}

.panda-vote-site-btn.disabled {
    background: #e4edf2;
    color: #93a3ad;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 1;
}

.panda-vote-site-btn.disabled .vote-timer {
    background: #c7d6dd;
    color: #4a5a63;
}

.panda-alert-success {
    background: #DFF6E8;
    color: #22703B;
    border: none;
    border-radius: var(--panda-radius-sm);
    font-weight: 600;
}

.panda-alert-danger {
    background: #FCE4E4;
    color: #9A2E2E;
    border: none;
    border-radius: var(--panda-radius-sm);
    font-weight: 600;
}

/* ---------- Wiki cards ---------- */
.panda-wiki-card {
    display: block;
    background: #fff;
    border-radius: var(--panda-radius);
    box-shadow: var(--panda-shadow);
    text-align: center;
    padding: 2rem 1rem;
    text-decoration: none;
    color: var(--panda-text);
    transition: transform .2s ease;
    height: 100%;
}

.panda-wiki-card:hover {
    transform: translateY(-4px);
    color: var(--panda-primary);
}

.panda-wiki-icon {
    font-size: 2rem;
    color: var(--panda-secondary);
    margin-bottom: .75rem;
    display: block;
}

.panda-wiki-title {
    font-size: 1.1rem;
    margin-bottom: .5rem;
}

/* ---------- Footer ---------- */
.panda-footer {
    background: var(--panda-dark, #3A2E39);
    color: #f2e9ee;
    position: relative;
    margin-top: 0;
}

.panda-footer-wave {
    position: absolute;
    top: -39px;
    left: 0;
    width: 100%;
    height: 40px;
    line-height: 0;
    color: var(--panda-dark, #3A2E39);
}

.panda-footer-wave svg {
    display: block;
    width: 100%;
    height: 100%;
}

.panda-footer-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 1.3rem;
    color: #fff;
}

.panda-footer-logo {
    height: 44px;
    width: auto;
    border-radius: 10px;
}

.panda-footer-title {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.panda-footer-text {
    color: #cbb9c4;
}

.panda-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.panda-footer-links li {
    margin-bottom: .6rem;
}

.panda-footer-links a {
    color: #cbb9c4;
    text-decoration: none;
    font-weight: 600;
}

.panda-footer-links a:hover {
    color: var(--panda-secondary);
}

.panda-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.panda-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}

.panda-social-btn:hover {
    background: var(--panda-primary);
    color: #fff;
}

.panda-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
}

.panda-copyright {
    color: #cbb9c4;
    font-size: .9rem;
}

.panda-legal-link {
    color: #cbb9c4;
    margin-left: 1rem;
    text-decoration: none;
    font-size: .9rem;
}

.panda-legal-link:hover {
    color: var(--panda-secondary);
}

/* ---------- Error pages ---------- */
.panda-error-page {
    text-align: center;
    padding: 3rem 1rem 5rem;
}

.panda-error-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.panda-error-code {
    font-size: 4rem;
    color: var(--panda-primary);
}

.panda-error-title {
    margin-bottom: 1rem;
}

.panda-error-text {
    color: #8a7a87;
    max-width: 480px;
    margin: 0 auto 2rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .panda-navbar-actions {
        margin-top: 1rem;
    }

    .panda-hero {
        padding-top: 3rem;
    }

    .panda-hero-title {
        font-size: 2.1rem;
    }
}

/* =========================================================
   Page Vote — sites empilés + podium/classement avec skins
   ========================================================= */

.panda-vote-sticky {
    position: sticky;
    top: 1.5rem;
}

.panda-vote-card-title {
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
    text-align: center;
    color: var(--panda-primary);
}

.panda-alert-info {
    background: var(--panda-bg-soft);
    color: var(--panda-text);
    border: none;
    border-radius: var(--panda-radius-sm);
}

.panda-vote-count {
    text-align: center;
    font-weight: 700;
    color: #8a7a87;
    margin-bottom: 1rem;
}

.panda-vote-sites {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.panda-vote-site-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--panda-primary), #3E9FD6);
    color: #fff;
    font-weight: 700;
    padding: .85rem 1.1rem;
    border-radius: var(--panda-radius-sm);
    text-decoration: none;
    box-shadow: var(--panda-shadow);
    transition: transform .15s ease, box-shadow .15s ease;
}

.panda-vote-site-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--panda-shadow-hover);
}

.panda-vote-rewards {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    justify-content: center;
}

.panda-reward-chip {
    display: flex;
    align-items: center;
    gap: .4rem;
    background: var(--panda-bg-soft);
    border-radius: 999px;
    padding: .4rem .9rem;
    font-size: .85rem;
    font-weight: 600;
}

.panda-reward-chip img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.panda-goal-progress {
    position: relative;
    height: 2.4rem;
    background: var(--panda-bg-soft);
    border-radius: 999px;
    overflow: hidden;
}

.panda-goal-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--panda-secondary), var(--panda-primary));
}

.panda-goal-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    color: var(--panda-text);
}

/* ---------- Podium ---------- */
.panda-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.panda-podium-spot {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
}

.panda-podium-spotlight {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: .6rem;
    background: radial-gradient(circle, var(--panda-bg-soft) 0%, rgba(227, 241, 248, 0) 72%);
}

.panda-podium-spotlight-1 {
    width: 180px;
    height: 180px;
}

.panda-podium-skin {
    height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 8px 10px rgba(34, 51, 74, .25));
    position: relative;
    z-index: 1;
    animation: pandaPodiumFloat 3.2s ease-in-out infinite;
}

.panda-podium-spotlight-1 .panda-podium-skin {
    height: 180px;
}

@keyframes pandaPodiumFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.panda-podium-crown {
    position: absolute;
    top: -1.6rem;
    font-size: 1.7rem;
    filter: drop-shadow(0 3px 4px rgba(34, 51, 74, .25));
    animation: pandaPodiumFloat 3.2s ease-in-out infinite;
    animation-delay: -.3s;
}

.panda-podium-medal {
    position: absolute;
    top: 1.4rem;
    right: calc(50% - 62px);
    font-size: 1.5rem;
    z-index: 2;
    background: #fff;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--panda-shadow);
}

.panda-podium-medal-1 {
    right: calc(50% - 72px);
    width: 38px;
    height: 38px;
    font-size: 1.7rem;
}

.panda-podium-name {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 700;
    text-align: center;
    font-size: 1.05rem;
}

.panda-podium-votes {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    color: var(--panda-primary);
    background: var(--panda-bg-soft);
    padding: .15rem .65rem;
    border-radius: 999px;
    margin: .3rem 0 .6rem;
}

.panda-podium-empty {
    color: #b3a3ae;
    font-weight: 600;
    margin-bottom: .5rem;
    display: block;
}

.panda-podium-block {
    width: 100%;
    border-radius: var(--panda-radius-sm) var(--panda-radius-sm) 0 0;
    box-shadow: var(--panda-shadow);
    position: relative;
    overflow: hidden;
}

.panda-podium-block::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .35) 0%, rgba(255, 255, 255, 0) 40%);
}

.panda-podium-block-1 {
    height: 130px;
    background: linear-gradient(180deg, var(--panda-primary), #3E9FD6);
}

.panda-podium-block-2 {
    height: 95px;
    background: linear-gradient(180deg, var(--panda-secondary), #4fb3ab);
}

.panda-podium-block-3 {
    height: 70px;
    background: linear-gradient(180deg, var(--panda-accent), #7e93d9);
}

@media (max-width: 767px) {
    .panda-podium-spotlight,
    .panda-podium-spotlight-1 {
        width: 100px;
        height: 100px;
    }

    .panda-podium-skin,
    .panda-podium-spotlight-1 .panda-podium-skin {
        height: 95px;
    }
}

@media (max-width: 480px) {
    .panda-podium-spotlight,
    .panda-podium-spotlight-1 {
        width: 130px;
        height: 130px;
    }

    .panda-podium-skin,
    .panda-podium-spotlight-1 .panda-podium-skin {
        height: 120px;
    }

    .panda-podium-medal,
    .panda-podium-medal-1 {
        width: 32px;
        height: 32px;
        font-size: 1.3rem;
        right: calc(50% - 62px);
    }
}

/* ---------- Liste complète du classement ---------- */
.panda-vote-list {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.panda-vote-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border-radius: var(--panda-radius-sm);
    box-shadow: var(--panda-shadow);
    padding: .75rem 1.1rem;
}

.panda-vote-row-top {
    border: 2px solid var(--panda-bg-soft);
}

.panda-vote-rank {
    font-weight: 800;
    width: 2.5rem;
    text-align: center;
    color: var(--panda-primary);
}

.panda-vote-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.panda-vote-name {
    flex: 1;
    font-weight: 700;
    text-transform: capitalize;
}

.panda-vote-votes {
    font-weight: 700;
    color: #8a7a87;
}

@media (max-width: 767px) {
    .panda-podium-skin {
        height: 60px;
    }

    .panda-podium-block-1 {
        height: 90px;
    }

    .panda-podium-block-2 {
        height: 70px;
    }

    .panda-podium-block-3 {
        height: 55px;
    }
}

/* =========================================================
   Page Profil
   ========================================================= */

.panda-profile-banner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #fff;
    border-radius: var(--panda-radius);
    box-shadow: var(--panda-shadow);
    padding: 1.75rem;
    margin-bottom: 2rem;
}

.panda-profile-avatar {
    border-radius: 20px;
    box-shadow: var(--panda-shadow);
}

.panda-profile-role {
    display: inline-block;
    font-weight: 700;
    font-size: .8rem;
    padding: .2rem .7rem;
    border-radius: 999px;
    margin-bottom: .35rem;
}

.panda-profile-name {
    font-size: 1.6rem;
    margin-bottom: .25rem;
}

.panda-profile-since {
    color: #8a7a87;
    margin-bottom: 0;
    font-size: .9rem;
}

.panda-profile-since strong {
    color: var(--panda-text);
}

.panda-profile-nav .nav-link {
    text-align: left;
    border-radius: var(--panda-radius-sm);
    font-weight: 600;
    color: var(--panda-text);
    padding: .65rem .9rem;
    margin-bottom: .3rem;
}

.panda-profile-nav .nav-link:hover {
    background: var(--panda-bg-soft);
}

.panda-profile-nav .nav-link.active {
    background: linear-gradient(135deg, var(--panda-primary), #3E9FD6);
    color: #fff;
}

@media (max-width: 575px) {
    .panda-profile-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================================
   Page LiteBans
   ========================================================= */

.panda-litebans-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.panda-litebans-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.panda-litebans-tab {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: var(--panda-text);
    font-weight: 700;
    padding: .5rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: var(--panda-shadow);
    font-size: .9rem;
}

.panda-litebans-tab:hover {
    color: var(--panda-primary);
}

.panda-litebans-tab.active {
    background: linear-gradient(135deg, var(--panda-primary), #3E9FD6);
    color: #fff;
}

.panda-litebans-tab.active .panda-badge {
    background: rgba(255, 255, 255, .3);
}

.panda-litebans-search {
    position: relative;
    display: flex;
    align-items: center;
}

.panda-litebans-search i {
    position: absolute;
    left: 1rem;
    color: #b3a3ae;
}

.panda-litebans-search input {
    border: 2px solid var(--panda-bg-soft);
    border-radius: 999px;
    padding: .55rem 1rem .55rem 2.4rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    min-width: 220px;
}

.panda-litebans-search input:focus {
    outline: none;
    border-color: var(--panda-primary);
}

.panda-litebans-counts {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    text-align: left;
}

.panda-litebans-count-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    padding: .4rem .1rem;
    border-bottom: 1px solid var(--panda-bg-soft);
}

/* ---------- Liste des sanctions ---------- */
.panda-punish-list {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.panda-punish-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border-radius: var(--panda-radius-sm);
    box-shadow: var(--panda-shadow);
    padding: .7rem 1.1rem;
    flex-wrap: wrap;
}

.panda-punish-player,
.panda-punish-staff {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--panda-text);
    min-width: 140px;
}

.panda-punish-player:hover,
.panda-punish-staff:hover {
    color: var(--panda-primary);
}

.panda-punish-player img,
.panda-punish-staff img {
    border-radius: 8px;
}

.panda-punish-reason {
    flex: 1;
    color: #8a7a87;
    font-size: .9rem;
}

.panda-punish-date {
    color: #8a7a87;
    font-size: .85rem;
    white-space: nowrap;
}

.panda-punish-status {
    font-weight: 700;
    font-size: .8rem;
    padding: .3rem .7rem;
    border-radius: 999px;
    white-space: nowrap;
}

.panda-status-permanent {
    background: #FCE4E4;
    color: #9A2E2E;
}

.panda-status-expired,
.panda-status-removed {
    background: var(--panda-bg-soft);
    color: #8a7a87;
}

.panda-status-active {
    background: #FFF3CD;
    color: #7a5b00;
}

.panda-punish-empty {
    text-align: center;
    padding: 2rem;
    color: #8a7a87;
    font-weight: 600;
    background: #fff;
    border-radius: var(--panda-radius-sm);
    box-shadow: var(--panda-shadow);
}

@media (max-width: 767px) {
    .panda-punish-player,
    .panda-punish-staff {
        min-width: 100%;
    }
}

.panda-discord-note {
    background: var(--panda-bg-soft);
    border-radius: var(--panda-radius-sm);
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--panda-text);
}

.panda-discord-note a {
    color: var(--panda-primary);
}

.panda-profile-delete-note {
    margin-left: auto;
    border: 2px solid #E33E3E;
    border-radius: var(--panda-radius-sm);
    background: #FCE4E4;
    color: #9A2E2E;
    font-weight: 600;
    font-size: .9rem;
    padding: .9rem 1.25rem;
    max-width: 380px;
    text-align: center;
}

.panda-profile-delete-note a {
    color: #9A2E2E;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .panda-profile-delete-note {
        margin-left: 0;
        max-width: 100%;
    }
}

/* =========================================================
   Corrections responsive tablette / mobile (priorité finale)
   ========================================================= */

@media (max-width: 767px) {
    /* Le logo est configurable en admin ; on le plafonne pour ne jamais
       casser la navbar sur mobile, quelle que soit la taille choisie */
    .panda-brand img {
        max-height: 44px !important;
        width: auto !important;
    }

    .panda-brand-text {
        font-size: 1.05rem;
    }

    .panda-navbar-actions {
        flex-direction: column;
        align-items: stretch !important;
    }

    .panda-navbar-actions .btn {
        width: 100%;
        text-align: center;
    }

    .panda-card {
        padding: 1.25rem;
    }

    .panda-section-title {
        font-size: 1.6rem;
    }

    /* Les sidebars "sticky" collent mal une fois les colonnes empilées
       en une seule colonne : on les repasse en position normale */
    .panda-vote-sticky,
    .panda-docs-sidebar,
    .panda-docs-toc {
        position: static !important;
        max-height: none !important;
    }

    .panda-hero-image-wrap {
        aspect-ratio: 4 / 3;
    }

    .panda-cta-card {
        padding: 2rem 1.25rem;
    }

    .panda-news {
        margin: 2rem 0;
        border-radius: 30px;
        padding: 2.5rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .panda-podium {
        flex-direction: column;
        align-items: center;
        gap: .75rem;
    }

    .panda-podium-spot {
        width: 100%;
        max-width: 240px;
    }

    .panda-podium-block {
        border-radius: var(--panda-radius-sm) !important;
        height: auto !important;
        padding: .75rem;
    }

    .panda-error-code {
        font-size: 3rem;
    }

    .panda-error-emoji {
        font-size: 3rem;
    }
}
