/* --------------------------------------------------
   RESET DE BASE / SHELL APP
-------------------------------------------------- */

html, body {
    height: 100%;
    margin: 0;
}

    body.app-body {
        margin: 0;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        background-color: #f4f5f7;
        color: #1f2933;
        min-height: 100vh;
    }

.app-root {
    min-height: 100vh; /* important pour full height */
    display: flex;
    flex-direction: column;
}

/* --------------------------------------------------
   HEADER PRINCIPAL (style Google Maps)
-------------------------------------------------- */

.app-header {
    height: 64px;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.5rem;
    padding-inline: 1rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    position: relative;
    z-index: 50;
}

.app-logo-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
}

.app-logo-letter {
    line-height: 1;
}

.app-brand-name {
    font-size: 1rem;
    font-weight: 600;
}

.app-brand-subtitle {
    font-size: 0.78rem;
    color: #6b7280;
}

.app-search-wrapper {
    max-width: 560px;
    width: 100%;
}

.app-search-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    background-color: #f3f4f6;
    padding: 0.25rem 0.25rem 0.25rem 0.9rem;
    border: 1px solid transparent;
}

    .app-search-bar:focus-within {
        border-color: rgba(59, 130, 246, 0.5);
        box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
        background-color: #ffffff;
    }

.app-search-input {
    border: none;
    background: transparent;
    box-shadow: none;
    font-size: 0.9rem;
    padding-inline: 0;
}

    .app-search-input:focus {
        outline: none;
        box-shadow: none;
        background: transparent;
    }

.app-search-button {
    border-radius: 999px;
    padding-inline: 1rem;
    font-size: 0.85rem;
    border: none;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-weight: 500;
    white-space: nowrap;
}

    .app-search-button:disabled {
        opacity: 0.6;
    }

.app-header-pill {
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
}

/* --------------------------------------------------
   NAV TOP DANS LE HEADER
-------------------------------------------------- */

.app-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-topnav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 0.25rem;
}

.app-topnav-link {
    font-size: 0.85rem;
    padding: 0.28rem 0.8rem;
    border-radius: 999px;
    text-decoration: none;
    color: #4b5563;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .app-topnav-link:hover {
        background-color: #eef2ff;
        color: #1d4ed8;
    }

    /* état actif des NavLink (classe .active ajoutée par Blazor) */
    .app-topnav-link.active {
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
        color: #ffffff;
    }

/* Login pill (si pas connecté) */
.app-login-btn {
    border-radius: 999px;
    padding: 0.3rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    border: none;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

    .app-login-btn:hover {
        text-decoration: none;
        filter: brightness(1.05);
    }

/* --------------------------------------------------
   MENU "MON COMPTE" (Statistiques / API & clés)
-------------------------------------------------- */

.app-account-menu {
    position: relative;
}

.app-account-trigger {
    position: relative;
}

/* Dropdown au survol pour l’instant */
.app-account-menu:hover .app-account-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(4px);
}

.app-account-dropdown {
    position: absolute;
    right: 0;
    top: 100%; /* collé sous le bouton */
    margin-top: 0; /* supprimer le petit trou */
    min-width: 180px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 0.4rem 0;
    opacity: 0;
    transform: translateY(0);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 100;
}

.app-account-item {
    display: block;
    padding: 0.35rem 0.9rem;
    font-size: 0.86rem;
    text-decoration: none;
    color: #374151;
    white-space: nowrap;
}

    .app-account-item:hover {
        background-color: #f3f4ff;
    }

/* Bouton de déconnexion */
.app-account-logout {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    color: #b91c1c; /* rouge discret */
    cursor: pointer;
}

    .app-account-logout:hover {
        background-color: #fef2f2;
        color: #991b1b;
    }
/* --------------------------------------------------
   MAIN + FOOTER
-------------------------------------------------- */

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    background: radial-gradient(circle at top left, #e5f0ff 0, #f4f5f7 45%, #eef2ff 100%);
    overflow-y: auto; /* scroll vertical dans la zone de contenu */
    overflow-x: hidden; /* pas de scroll horizontal */
}

.app-footer {
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
    color: #9ca3af;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    background-color: #f9fafb;
}

/* --------------------------------------------------
   LAYOUT MAP
-------------------------------------------------- */

.map-layout {
    flex: 1; /* prend tout l’espace sous le header */
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Zone principale occupée par les pages */
.map-layout__content {
    width: 100%;
    position: relative;
    flex: 1; /* important pour full height */
}

/* Panneau NAVIGATION global (si tu le réutilises ailleurs, sinon peut rester inactif) */
.map-layout__sidepanel {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 25;
    max-width: 320px;
    width: 100%;
}

/* --------------------------------------------------
   NAVIGATION PANEL (NavMenu standard)
-------------------------------------------------- */

.nav-panel {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
    padding: 1.25rem 1.1rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.nav-panel__header {
    margin-bottom: 0.75rem;
}

.nav-panel__title {
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-panel__subtitle {
    font-size: 0.78rem;
    color: #6b7280;
}

.nav-panel__section {
    margin-top: 0.25rem;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(226, 232, 240, 0.7);
}

.nav-panel__section--secondary {
    margin-top: 0.5rem;
}

.nav-item {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    padding: 0.55rem 0.6rem;
    margin-bottom: 0.25rem;
    transition: background-color 0.15s ease, transform 0.12s ease;
}

    .nav-item:hover {
        background-color: #f3f4ff;
        transform: translateY(-1px);
    }

.nav-item--active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(37, 99, 235, 0.16));
    border: 1px solid rgba(37, 99, 235, 0.45);
}

.nav-item__content {
    display: flex;
    flex-direction: column;
}

.nav-item__title {
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-item__subtitle {
    font-size: 0.75rem;
    color: #6b7280;
}

.nav-panel__footer {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(226, 232, 240, 0.9);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-footer-link {
    font-size: 0.78rem;
    text-decoration: none;
    color: #4b5563;
}

    .nav-footer-link:hover {
        text-decoration: underline;
    }

/* --------------------------------------------------
   SHELL CARTES (pages /map et /trajet)
-------------------------------------------------- */

.map-shell {
    position: relative;
    width: 100%;
    flex: 1;
    height: 100%;
    max-height: none;
}

/* Panneau flottant propre à chaque page carto (Localiser un point, Trajet...) */
.map-shell__sidepanel {
    position: absolute;
    top: 70px;
    left: 16px;
    z-index: 30; /* en dessous de la top bar */
    max-width: 360px;
    width: 100%;
}

/* Zone carte plein écran */
.map-shell__viewport {
    position: absolute;
    inset: 0;
    z-index: 10;
    height: 100%;
}

/* --------------------------------------------------
   PANNEAU GAUCHE (carte et trajet)
-------------------------------------------------- */

.map-panel-card {
    border-radius: 18px !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
    box-shadow: 0 14px 45px rgba(15, 23, 42, 0.2) !important;
    padding: 1.1rem 1.1rem 1rem 1.1rem !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(18px);
}

.map-panel-header {
    margin-bottom: 0.8rem;
}

.map-panel-title {
    font-size: 1rem;
    font-weight: 600;
}

.map-panel-subtitle {
    font-size: 0.82rem;
    color: #6b7280;
}

.map-panel-form {
    margin-top: 0.25rem;
}

.map-panel-actions {
    margin-top: 0.5rem;
}

/* Bouton principal accentué */
.map-main-action {
    border-radius: 999px !important;
}

/* Ligne recherche adresse */
.map-search-line {
    align-items: center;
}

/* --------------------------------------------------
   CARTE / TOOLBAR / COORDONNÉES
-------------------------------------------------- */

.map-viewport-card {
    border-radius: 0 !important;
    border: none !important;
    padding: 0 !important;
    height: 100%;
    box-shadow: none !important;
    background: transparent !important;
}

/* Toolbar overlay en haut de la carte */
.map-toolbar {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px;
    padding: 0.4rem 0.7rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.map-toolbar-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.map-toolbar-status {
    display: flex;
    align-items: center;
}

/* Badge de statut */
.map-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

.map-badge--busy {
    background-color: #fef3c7;
    border-color: #facc15;
    color: #92400e;
}

/* Conteneur carte */
.map-wrapper {
    position: absolute;
    inset: 0;
    height: 100%;
}

/* Squelette pendant init */
.map-skeleton {
    position: absolute;
    inset: 0;
    border-radius: 0;
    background-image: linear-gradient(90deg, #e5e7eb 0, #f3f4f6 20%, #e5e7eb 40%, #e5e7eb 100%);
    background-size: 200% 100%;
    animation: mapSkeletonShimmer 1.4s ease-in-out infinite;
    z-index: 5;
}

@keyframes mapSkeletonShimmer {
    0% {
        background-position: 180% 0;
    }

    100% {
        background-position: -20% 0;
    }
}

/* Canvas Leaflet / OL */
.map-canvas {
    width: 100%;
    height: 100% !important;
}

/* Bandeau de coordonnées */
.map-coords {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 20;
    background: rgba(17, 24, 39, 0.85);
    color: #e5e7eb;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(14px);
}

/* --------------------------------------------------
   PAGE LOGIN / REGISTER (Account/*)
-------------------------------------------------- */

.auth-shell {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem 1rem;
    overflow: hidden;
    background: radial-gradient(circle at top left, #e3f2fd, #f5f5f5);
}

/* Décor flou derrière la carte */
.auth-shell__bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.18) 0, transparent 40%), radial-gradient(circle at 80% 0, rgba(16, 185, 129, 0.16) 0, transparent 40%), radial-gradient(circle at 50% 100%, rgba(129, 140, 248, 0.2) 0, transparent 45%);
    opacity: 0.9;
    pointer-events: none;
}

.auth-shell__content {
    position: relative;
    z-index: 1;
    max-width: 420px;
    width: 100%;
}

.auth-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 18px;
    padding: 2rem 2.25rem;
    border: 1px solid rgba(209, 213, 219, 0.8);
    backdrop-filter: blur(18px);
}

.auth-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.auth-logo-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.auth-logo-letter {
    line-height: 1;
}

.auth-header-text {
    display: flex;
    flex-direction: column;
}

.auth-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.auth-subtitle {
    font-size: 0.88rem;
    color: #6b7280;
}

.auth-input {
    border-radius: 10px;
}

/* Bouton submit login / register */
.auth-submit-btn {
    border-radius: 999px;
    padding: 0.6rem 1rem;
    font-weight: 600;
}

/* Divider "ou" */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0 0.75rem;
    font-size: 0.85rem;
    color: #9ca3af;
}

    .auth-divider::before,
    .auth-divider::after {
        content: "";
        flex: 1;
        border-bottom: 1px solid #e5e7eb;
    }

    .auth-divider span {
        padding: 0 0.5rem;
    }

/* Liens secondaires */
.auth-secondary-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.auth-link,
.auth-link-small {
    font-size: 0.9rem;
    text-decoration: none;
    color: #2563eb;
}

.auth-link-small {
    font-size: 0.8rem;
}

    .auth-link:hover,
    .auth-link-small:hover {
        text-decoration: underline;
    }

/* Bloc external login */
.auth-external {
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
    padding-top: 1rem;
}

.auth-external-title {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

/* --------------------------------------------------
   HOME PAGE (Index)
-------------------------------------------------- */

.home-shell {
    padding-bottom: 2.5rem;
}

.home-hero {
    padding: 2.5rem 0 2rem;
}

.home-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background-color: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.home-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background-color: #22c55e;
}

.home-title {
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.home-subtitle {
    font-size: 0.98rem;
    color: #4b5563;
    max-width: 32rem;
    margin-bottom: 1.25rem;
}

.home-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.home-cta-main {
    border-radius: 999px;
    padding-inline: 1.4rem;
    font-weight: 600;
}

.home-cta-secondary {
    border-radius: 999px;
    padding-inline: 1.2rem;
    font-weight: 500;
}

.home-small {
    font-size: 0.82rem;
    color: #6b7280;
    margin-top: 0.35rem;
}

.home-link-inline {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

    .home-link-inline:hover {
        text-decoration: underline;
    }

/* Bloc "essayer rapidement" */
.home-quick-test {
    margin-top: 1.2rem;
}

.home-quick-test-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.3rem;
}

.home-quick-test-row {
    display: flex;
    gap: 0.5rem;
}

.home-quick-test-input {
    font-size: 0.85rem;
    background-color: #f9fafb;
}

.home-quick-test-btn {
    border-radius: 999px;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Carte de preview */
.home-map-preview {
    border-radius: 22px;
    background: #0b1120;
    color: #e5e7eb;
    padding: 0.9rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(30, 64, 175, 0.6);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.home-map-preview-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.home-map-pill {
    font-size: 0.75rem;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    background-color: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.4);
    white-space: nowrap;
}

.home-map-pill-muted {
    opacity: 0.8;
}

.home-map-preview-body {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: radial-gradient(circle at 20% 0%, #1d4ed8 0, #0f172a 40%, #020617 100%);
    height: 210px;
    margin-bottom: 0.6rem;
}

.home-map-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(148, 163, 184, 0.12) 1px, transparent 1px), linear-gradient(to bottom, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.8;
}

.home-map-marker {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 3px solid #f97316;
    background-color: #f97316;
    box-shadow: 0 0 0 8px rgba(248, 179, 88, 0.4);
    top: 45%;
    left: 52%;
    transform: translate(-50%, -50%);
}

.home-map-preview-footer {
    font-size: 0.78rem;
    color: #9ca3af;
}

/* Section "Pourquoi Reverseum" */
.home-section {
    padding: 2rem 0 0.5rem;
}

.home-feature-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 1.3rem 1.2rem 1.1rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

    .home-feature-card h3 {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
    }

    .home-feature-card p {
        font-size: 0.9rem;
        color: #4b5563;
        flex: 1;
    }

.home-link {
    font-size: 0.85rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

    .home-link:hover {
        text-decoration: underline;
    }

.home-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.16rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background-color: #eff6ff;
    color: #1d4ed8;
    margin-top: 0.2rem;
}

/* --------------------------------------------------
   RESPONSIVE GLOBAL
-------------------------------------------------- */

@media (max-width: 992px) {
    .app-header {
        height: auto;
        flex-wrap: wrap;
        align-items: flex-start;
        padding-block: 0.5rem;
    }

    .app-search-wrapper {
        order: 3;
        max-width: 100%;
        margin-top: 0.5rem;
    }

    .app-header-right {
        order: 2;
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .app-topnav {
        order: 1;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .map-layout__sidepanel,
    .map-shell__sidepanel {
        max-width: 100%;
        left: 0;
        right: 0;
        padding-inline: 0.75rem;
    }

    .map-layout__sidepanel {
        top: 16px;
    }

    .map-panel-card {
        border-radius: 18px 18px 14px 14px !important;
    }

    .map-toolbar {
        right: 50%;
        transform: translateX(50%);
        top: auto;
        bottom: 72px;
    }

    .map-coords {
        bottom: 12px;
    }

    .auth-card {
        padding: 1.6rem 1.5rem;
    }

    .home-hero {
        padding-top: 1.5rem;
    }

    .home-title {
        font-size: 1.7rem;
    }

    .home-map-preview {
        margin-top: 0.5rem;
    }

    .home-quick-test-row {
        flex-direction: column;
    }

    .home-quick-test-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* --------------------------------------------------
   PAGE JETONS / BOUTIQUE
-------------------------------------------------- */

.tokens-shell {
    padding: 2.2rem 0 2.5rem;
}

.tokens-hero {
    margin-bottom: 2rem;
}

.tokens-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background-color: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.tokens-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background-color: #22c55e;
}

.tokens-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.tokens-subtitle {
    font-size: 0.95rem;
    color: #4b5563;
    max-width: 34rem;
    margin-bottom: 1.5rem;
}

/* Carte solde jetons */

.tokens-balance-card {
    background-color: #ffffff;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(209, 213, 219, 0.9);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    margin-bottom: 1.1rem;
}

.tokens-balance-card--guest {
    background: linear-gradient(135deg, #eef2ff, #f9fafb);
}

.tokens-balance-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    margin-bottom: 0.3rem;
}

.tokens-balance-value {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.tokens-balance-help {
    font-size: 0.85rem;
    color: #4b5563;
}

.tokens-balance-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.7rem;
    flex-wrap: wrap;
}

.tokens-balance-btn {
    border-radius: 999px;
}

/* Bloc usage */

.tokens-usage {
    margin-top: 1.4rem;
}

    .tokens-usage h2 {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.4rem;
    }

    .tokens-usage ul {
        padding-left: 1.1rem;
        margin-bottom: 0.4rem;
        font-size: 0.9rem;
        color: #4b5563;
    }

.tokens-usage-note {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Carte résumé à droite */

.tokens-summary-card {
    background-color: #0b1120;
    color: #e5e7eb;
    border-radius: 18px;
    padding: 1.4rem 1.3rem 1.2rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(30, 64, 175, 0.7);
}

.tokens-summary-header {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0.7rem;
}

.tokens-summary-pill {
    font-size: 0.78rem;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    background-color: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.tokens-summary-body {
    font-size: 0.9rem;
    color: #e5e7eb;
    opacity: 0.95;
    margin-bottom: 0.8rem;
}

.tokens-summary-footer {
    border-top: 1px solid rgba(55, 65, 81, 0.8);
    padding-top: 0.7rem;
}

.tokens-summary-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    display: block;
    margin-bottom: 0.3rem;
}

.tokens-summary-steps {
    font-size: 0.86rem;
    padding-left: 1rem;
    margin: 0;
}

/* Section packs */

.tokens-section {
    margin-top: 1.5rem;
}

.tokens-section-header {
    text-align: center;
    margin-bottom: 1.4rem;
}

    .tokens-section-header h2 {
        font-size: 1.4rem;
        font-weight: 600;
        margin-bottom: 0.3rem;
    }

    .tokens-section-header p {
        font-size: 0.9rem;
        color: #4b5563;
        max-width: 34rem;
        margin: 0 auto;
    }

.tokens-pricing-grid {
    margin-top: 0.5rem;
}

.tokens-plan-card {
    position: relative;
    background-color: #ffffff;
    border-radius: 18px;
    padding: 1.25rem 1.1rem 1.1rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tokens-plan-card--highlight {
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.18);
}

.tokens-plan-ribbon {
    position: absolute;
    top: 0.6rem;
    right: 0.8rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background-color: #1d4ed8;
    color: #ffffff;
    padding: 0.16rem 0.5rem;
    border-radius: 999px;
}

.tokens-plan-header {
    margin-bottom: 0.2rem;
}

.tokens-plan-name {
    font-size: 1.05rem;
    font-weight: 600;
}

.tokens-plan-subtitle {
    font-size: 0.8rem;
    color: #6b7280;
}

.tokens-plan-main {
    margin-top: 0.25rem;
}

.tokens-plan-tokens {
    font-size: 1.3rem;
    font-weight: 700;
}

.tokens-plan-price {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.15rem;
}

.tokens-plan-detail {
    font-size: 0.85rem;
    color: #4b5563;
}

.tokens-plan-list {
    margin: 0.3rem 0 0.6rem;
    padding-left: 1rem;
    font-size: 0.85rem;
    color: #4b5563;
}

.tokens-plan-btn {
    border-radius: 999px;
    font-size: 0.9rem;
}

.tokens-section-footer {
    margin-top: 1.2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 992px) {
    .tokens-shell {
        padding-top: 1.5rem;
    }

    .tokens-title {
        font-size: 1.7rem;
    }

    .tokens-summary-card {
        margin-top: 0.5rem;
    }
}
