@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=EB+Garamond:ital,wght@0,400;0,700;1,400&display=swap');

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

:root {
    --noir: #0a0a0a;
    --noir-carte: #111111;
    --blanc: #ffffff;
    --blanc-casse: #e8e8e8;
    --gris: #888888;
    --gris-fonce: #333333;
    --argent: #b0b8c4;
    --argent-sombre: #6b7585;
}

body {
    font-family: 'EB Garamond', Georgia, serif;
    background: var(--noir);
    color: var(--blanc-casse);
    line-height: 1.6;
    min-height: 100vh;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--noir); }
::-webkit-scrollbar-thumb { background: var(--gris-fonce); border-radius: 4px; }

/* ===== LOGIN ===== */

.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(ellipse at center, #111 0%, #050505 70%);
}

.login-card {
    text-align: center;
    padding: 3rem 2.5rem;
    max-width: 400px;
    width: 100%;
}

.login-logo {
    width: 90px;
    height: 90px;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.login-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--blanc);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.login-subtitle {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    color: var(--gris);
    margin: 0.5rem 0 2rem;
    font-size: 1rem;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 2rem;
    background: var(--blanc);
    color: var(--noir);
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.login-btn:hover { opacity: 0.85; }

.login-discord-icon { width: 20px; height: 20px; filter: invert(1); }

.login-error {
    margin-top: 1.5rem;
    color: #cc4444;
    font-size: 0.9rem;
}

.login-back {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--gris);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.login-back:hover { color: var(--blanc-casse); }

/* ===== NAV ===== */

.member-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 60px;
    background: rgba(10,10,10,0.95);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.member-nav-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--blanc);
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.member-nav-logo { width: 32px; height: 32px; }

.member-nav-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    height: 100%;
}

.member-tab {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 1.2rem;
    color: rgba(255,255,255,0.45);
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.member-tab:hover {
    color: rgba(255,255,255,0.7);
}

.member-tab.active {
    color: var(--blanc);
    border-bottom-color: var(--argent);
}

.member-nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.member-nav-user {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.member-nav-logout {
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6);
    padding: 0.3rem 0.8rem;
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
}

.member-nav-logout:hover {
    color: var(--blanc);
    border-color: rgba(255,255,255,0.3);
}

/* ===== MAIN ===== */

.member-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 2rem 4rem;
    min-height: calc(100vh - 60px - 50px);
}

.member-loading {
    text-align: center;
    color: var(--gris);
    padding: 4rem 0;
    font-style: italic;
}

/* ===== PAGE HEADER ===== */

.m-page-header {
    margin-bottom: 2rem;
}

.m-page-title {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--blanc);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.m-page-subtitle {
    color: rgba(255,255,255,0.4);
    font-style: italic;
    margin-top: 0.3rem;
}

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

.m-hero {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.m-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(176,184,196,0.3);
}

.m-hero-info {
    flex: 1;
}

.m-hero-name {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blanc);
    margin: 0;
}

.m-hero-grade {
    color: var(--argent);
    font-style: italic;
    margin: 0.3rem 0 0;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* ===== CREDITS CARD ===== */

.m-credits-card {
    background: linear-gradient(135deg, rgba(176,184,196,0.08) 0%, rgba(176,184,196,0.02) 100%);
    border: 1px solid rgba(176,184,196,0.2);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.m-credits-clickable {
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
}

.m-credits-clickable:hover {
    border-color: rgba(176,184,196,0.5);
    background: linear-gradient(135deg, rgba(176,184,196,0.15) 0%, rgba(176,184,196,0.05) 100%);
}

.m-credits-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
}

.m-credits-coin {
    width: 1.8rem;
    height: 1.8rem;
    object-fit: contain;
}

.m-credits-value {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--argent);
    line-height: 1;
}

.m-credits-unit {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--argent-sombre);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== KPIS ===== */

.m-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.m-kpi {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 1.2rem;
    text-align: center;
}

.m-kpi-value {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--blanc);
}

.m-kpi-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0.3rem;
}

/* ===== SECTIONS ===== */

.m-section {
    margin-bottom: 2.5rem;
}

.m-section-title {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ===== STATS GRID ===== */

.m-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.m-stat-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    padding: 1.2rem;
    text-align: center;
}

.m-stat-highlight {
    background: rgba(176,184,196,0.05);
    border-color: rgba(176,184,196,0.15);
}

.m-stat-value {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--blanc);
}

.m-stat-highlight .m-stat-value {
    color: var(--argent);
}

.m-stat-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.3rem;
}

/* ===== PALMARES ===== */

.m-palmares-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.m-palmares-item {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    padding: 1.2rem;
    text-align: center;
}

.m-palmares-value {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--blanc);
}

.m-palmares-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.3rem;
}

/* ===== MEDALS ===== */

.m-medals-empty {
    background: rgba(255,255,255,0.02);
    border: 1px dashed rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-style: italic;
}

.m-medals-hint {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.25);
    margin-top: 0.5rem;
}

/* ===== GRADE TIMELINE ===== */

.m-grade-timeline {
    padding-left: 1rem;
    border-left: 2px solid rgba(255,255,255,0.08);
}

.m-grade-entry {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    position: relative;
}

.m-grade-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gris-fonce);
    border: 2px solid rgba(255,255,255,0.15);
    position: absolute;
    left: -1.35rem;
}

.m-grade-current .m-grade-dot {
    background: var(--argent);
    border-color: var(--argent-sombre);
}

.m-grade-info {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.m-grade-name {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--blanc);
}

.m-grade-date {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    font-style: italic;
}

/* ===== LEADERBOARD ===== */

.m-lb {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.m-lb-row {
    display: flex;
    align-items: center;
    padding: 0.65rem 1rem;
    background: rgba(255,255,255,0.02);
    border-radius: 4px;
    transition: background 0.15s;
}

.m-lb-row:hover { background: rgba(255,255,255,0.04); }

.m-lb-me {
    background: rgba(176,184,196,0.06) !important;
    border: 1px solid rgba(176,184,196,0.15);
}

.m-lb-rank {
    width: 45px;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
}

.m-lb-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 0.6rem;
    object-fit: cover;
}

.m-lb-name {
    flex: 1;
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
}

.m-lb-credits {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255,255,255,0.6);
    font-style: italic;
    font-size: 1.1rem;
}

.m-lb-coin {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ===== HISTORY TABLE ===== */

.m-table {
    width: 100%;
    border-collapse: collapse;
}

.m-table thead th {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.45);
    padding: 0.6rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.m-table tbody td {
    padding: 0.65rem 1rem;
    color: rgba(255,255,255,0.75);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    font-size: 0.95rem;
}

.m-table tbody tr:hover { background: rgba(255,255,255,0.02); }

.m-yes { color: #4caf50; font-weight: 700; }
.m-no { color: rgba(255,255,255,0.3); }

.m-empty {
    color: rgba(255,255,255,0.35);
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

/* ===== SHOP ===== */

.m-shop-balance {
    background: linear-gradient(135deg, rgba(176,184,196,0.08) 0%, rgba(176,184,196,0.02) 100%);
    border: 1px solid rgba(176,184,196,0.2);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.6rem;
}

.m-shop-balance-coin {
    width: 1.8rem;
    height: 1.8rem;
    object-fit: contain;
}

.m-shop-balance-value {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--argent);
    line-height: 1;
}

.m-shop-balance-unit {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--argent-sombre);
}

.m-shop-notice {
    background: rgba(255,255,255,0.02);
    border: 1px dashed rgba(176,184,196,0.15);
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    text-align: center;
    color: rgba(255,255,255,0.45);
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.m-shop-notice p + p {
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

.m-shop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.m-shop-item {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    opacity: 0.5;
}

.m-shop-item-name {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--blanc);
    margin-bottom: 0.4rem;
}

.m-shop-item-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    flex: 1;
    margin-bottom: 1rem;
}

.m-shop-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.m-shop-item-price {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--argent-sombre);
}

.m-shop-item-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.3);
    padding: 0.4rem 1rem;
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: not-allowed;
}

/* ===== STEAM LINK ===== */

.m-steam-link-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.m-steam-link-icon {
    color: rgba(255,255,255,0.4);
}

.m-steam-link-text h3 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--blanc);
    margin-bottom: 0.4rem;
}

.m-steam-link-text p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    line-height: 1.5;
}

.m-steam-link-hint {
    font-size: 0.8rem !important;
    color: rgba(255,255,255,0.35) !important;
    margin-top: 0.3rem;
}

.m-steam-link-hint a {
    color: var(--argent);
    text-decoration: none;
}

.m-steam-link-hint a:hover {
    text-decoration: underline;
}

.m-steam-link-form {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.m-steam-input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--blanc);
    padding: 0.6rem 1rem;
    font-family: 'EB Garamond', serif;
    font-size: 0.95rem;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s;
}

.m-steam-input:focus {
    border-color: var(--argent);
}

.m-steam-input::placeholder {
    color: rgba(255,255,255,0.25);
}

.m-steam-btn {
    background: var(--argent);
    color: var(--noir);
    border: none;
    padding: 0.6rem 1.5rem;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.m-steam-btn:hover { opacity: 0.85; }

.m-steam-error {
    color: #cc4444;
    font-size: 0.85rem;
    margin-top: 0;
}

.m-steam-linked {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(76, 175, 80, 0.06);
    border: 1px solid rgba(76, 175, 80, 0.15);
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.m-steam-linked-icon {
    color: #4caf50;
    font-size: 1.1rem;
    font-weight: 700;
}

.m-steam-linked a {
    color: var(--argent);
    text-decoration: none;
}

.m-steam-linked a:hover { text-decoration: underline; }

.m-steam-unlink {
    margin-left: auto;
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
    padding: 0.25rem 0.6rem;
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.m-steam-unlink:hover {
    color: #cc4444;
    border-color: rgba(204,68,68,0.3);
}

/* ===== HFSTATS LEADERBOARD ===== */

.m-hf-lb-stat {
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    min-width: 70px;
    text-align: right;
}

.m-stats-prev .m-stat-card {
    opacity: 0.7;
}

.m-loading-hf {
    text-align: center;
    color: var(--gris);
    padding: 2rem;
    font-style: italic;
}

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

.member-footer {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.member-footer a {
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
    text-decoration: none;
}

.member-footer a:hover { color: rgba(255,255,255,0.5); }

/* ===== CLICKABLE KPIS ===== */

.m-kpi-clickable {
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.m-kpi-clickable:hover {
    background: rgba(176,184,196,0.06);
    border-color: rgba(176,184,196,0.2);
    transform: translateY(-2px);
}

.m-kpi-clickable:active {
    transform: translateY(0);
}

/* ===== HOME GRID (next event + top players) ===== */

.m-home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.m-home-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 1.5rem;
}

.m-home-card .m-section-title {
    margin-bottom: 1rem;
}

/* Next event */

.m-next-event-name {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blanc);
    margin-bottom: 0.3rem;
}

.m-next-event-date {
    color: rgba(255,255,255,0.45);
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.m-next-event-rsvps {
    display: flex;
    gap: 1.5rem;
}

.m-next-event-rsvp {
    text-align: center;
}

.m-next-event-rsvp-val {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 700;
}

.m-rsvp-going { color: #4caf50; }
.m-rsvp-maybe { color: var(--argent); }
.m-rsvp-decline { color: #cc4444; }

.m-next-event-rsvp-lbl {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.2rem;
}

/* Top players */

.m-top-player-row {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.m-top-player-row:last-child { border-bottom: none; }

.m-top-player-rank {
    width: 30px;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.45);
}

.m-top-rank-1 { color: #d4af37; }
.m-top-rank-2 { color: var(--argent); }
.m-top-rank-3 { color: #cd7f32; }

.m-top-player-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 0.6rem;
    object-fit: cover;
}

.m-top-player-name {
    flex: 1;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.m-top-player-count {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    font-style: italic;
}

/* ===== BACK LINK ===== */

.m-back-link {
    display: inline-block;
    color: var(--argent-sombre);
    font-size: 0.85rem;
    cursor: pointer;
    margin-bottom: 0.8rem;
    transition: color 0.2s;
}

.m-back-link:hover { color: var(--argent); }

/* ===== MEDALS GRID ===== */

.m-medals-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.m-medal-card {
    position: relative;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(176,184,196,0.1);
    border-left: none;
    border-radius: 6px;
    padding: 0.9rem 1rem 0.9rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.m-medal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.m-medal-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 3px 0 0 3px;
}

.m-medal-name {
    font-family: 'EB Garamond', serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1.3;
}

/* ===== CONSTRUCTION ===== */

.m-construction {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255,255,255,0.02);
    border: 1px dashed rgba(255,255,255,0.08);
    border-radius: 8px;
}

.m-construction-icon {
    font-size: 3rem;
    color: var(--argent-sombre);
    margin-bottom: 1rem;
}

.m-construction h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--blanc);
    margin-bottom: 0.5rem;
}

.m-construction p {
    color: rgba(255,255,255,0.4);
    font-style: italic;
}

/* ===== MEDAL REQUESTS ===== */

.m-medal-request-hint {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    font-style: italic;
}

.m-medal-request-form {
    background: rgba(176,184,196,0.04);
    border: 1px solid rgba(176,184,196,0.12);
    border-radius: 8px;
    padding: 1.2rem;
}

.m-form-group {
    margin-bottom: 1rem;
}

.m-form-label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.4rem;
}

.m-form-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(176,184,196,0.15);
    border-radius: 4px;
    color: #fff;
    font-family: 'EB Garamond', serif;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.m-form-input:focus {
    outline: none;
    border-color: rgba(176,184,196,0.4);
}

/* Select dropdown */
select.m-form-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    padding-right: 2.2rem;
    cursor: pointer;
}

select.m-form-input option {
    background: #1a1a1a;
    color: #ddd;
    padding: 0.5rem;
}

.m-form-textarea {
    resize: vertical;
    min-height: 60px;
}

/* Medal dropdown custom */
.m-medal-dropdown {
    position: relative;
    width: 100%;
}

.m-medal-dropdown-selected {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(176,184,196,0.15);
    border-radius: 4px;
    color: #fff;
    font-family: 'EB Garamond', serif;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: border-color 0.3s;
}

.m-medal-dropdown-selected:hover {
    border-color: rgba(176,184,196,0.4);
}

.m-medal-dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: #1a1a1a;
    border: 1px solid rgba(176,184,196,0.2);
    border-radius: 4px;
    z-index: 100;
    margin-top: 2px;
}

.m-medal-dropdown-item {
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ddd;
    font-family: 'EB Garamond', serif;
    font-size: 0.95rem;
    transition: background 0.15s;
}

.m-medal-dropdown-item:hover {
    background: rgba(176,184,196,0.1);
}

.m-medal-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

/* Custom file upload */
.m-file-upload {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.m-file-upload input[type="file"] {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.m-file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(176,184,196,0.08);
    border: 1px solid rgba(176,184,196,0.2);
    border-radius: 4px;
    color: #b0b8c4;
    font-family: 'EB Garamond', serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.m-file-upload-btn:hover {
    background: rgba(176,184,196,0.15);
    border-color: rgba(176,184,196,0.35);
}

.m-file-upload-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.m-file-upload-text {
    color: rgba(255,255,255,0.35);
    font-size: 0.8rem;
    font-style: italic;
}

.m-btn {
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    border: 1px solid;
    transition: all 0.3s;
}

.m-btn-primary {
    background: rgba(176,184,196,0.1);
    color: #b0b8c4;
    border-color: rgba(176,184,196,0.3);
}

.m-btn-primary:hover {
    background: rgba(176,184,196,0.2);
}

.m-medal-request-status {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.m-status-pending { color: #e0a030; }
.m-status-approved { color: #50b464; }
.m-status-rejected { color: #dc5050; }
.m-status-error { color: #dc5050; }

.m-medal-requests-history {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.m-medal-request-item {
    background: rgba(176,184,196,0.04);
    border: 1px solid rgba(176,184,196,0.1);
    border-radius: 6px;
    padding: 0.8rem 1rem;
}

.m-medal-request-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.3rem;
}

.m-medal-request-name {
    font-weight: 600;
    color: #b0b8c4;
}

.m-medal-request-desc {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    margin: 0.3rem 0;
}

.m-medal-request-proofs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.4rem 0;
}

.m-medal-proof-thumb {
    max-width: 100px;
    max-height: 70px;
    border-radius: 4px;
    border: 1px solid rgba(176,184,196,0.15);
    object-fit: cover;
}

.m-medal-proof-link {
    color: #7aa2f7;
    font-size: 0.8rem;
}

.m-medal-request-review {
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    margin: 0.2rem 0;
}

.m-medal-request-date {
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
}

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

@media (max-width: 768px) {
    .m-kpis { grid-template-columns: repeat(2, 1fr); }
    .m-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .m-palmares-grid { grid-template-columns: repeat(2, 1fr); }
    .m-shop-grid { grid-template-columns: 1fr; }
    .m-home-grid { grid-template-columns: 1fr; }
    .member-nav-brand span { display: none; }
}

@media (max-width: 600px) {
    .m-kpis { grid-template-columns: 1fr; }
    .m-stats-grid { grid-template-columns: 1fr; }
    .m-palmares-grid { grid-template-columns: repeat(2, 1fr); }
    .m-hero { flex-direction: column; text-align: center; }
    .member-main { padding: 1.5rem 1rem; }
    .member-nav { padding: 0 1rem; }
    .member-nav-tabs { gap: 0; }
    .member-tab { padding: 0 0.6rem; font-size: 0.65rem; }
}
