/**
 * SHOPXL - Custom CSS (complement Bootstrap 5)
 * 
 * Ce fichier contient uniquement les styles personnalises
 * qui ne peuvent pas etre obtenus avec les classes Bootstrap.
 */

/* ══════════════════════════════════════════════════════════════════════════════
   CSS VARIABLES - Couleurs petillantes
   ══════════════════════════════════════════════════════════════════════════════ */

:root {
    /* Primary - Bleu vif electrique */
    --bs-primary: #2563eb;
    --bs-primary-rgb: 37, 99, 235;
    
    /* Success - Vert emeraude */
    --bs-success: #10b981;
    --bs-success-rgb: 16, 185, 129;
    
    /* Warning - Jaune dore */
    --bs-warning: #f59e0b;
    --bs-warning-rgb: 245, 158, 11;
    
    /* Danger - Rouge corail */
    --bs-danger: #ef4444;
    --bs-danger-rgb: 239, 68, 68;
    
    /* Info - Cyan vif */
    --bs-info: #06b6d4;
    --bs-info-rgb: 6, 182, 212;
    
    /* Fonts */
    --bs-font-sans-serif: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ══════════════════════════════════════════════════════════════════════════════
   GLOBAL OVERRIDES
   ══════════════════════════════════════════════════════════════════════════════ */

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   HERO SECTION - Degrade bleu petillant
   ══════════════════════════════════════════════════════════════════════════════ */

.hero-gradient {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #0ea5e9 100%);
}

/* Hero blockchain - dégradé violet/cyan cyberpunk */
.hero-gradient-blockchain {
    background: linear-gradient(135deg, #1a1a2e 0%, #4c1d95 40%, #7c3aed 70%, #06b6d4 100%);
}

/* ══════════════════════════════════════════════════════════════════════════════
   NAVBAR CUSTOMIZATION
   ══════════════════════════════════════════════════════════════════════════════ */

.navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 56px;
    height: 56px;
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-brand {
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

/* Forcer la navbar à rester à 56px même avec du contenu différent */
.navbar .container {
    height: 100%;
}

.navbar .navbar-collapse {
    height: 100%;
}

/* Normalisation des boutons dans la navbar pour une hauteur constante */
.navbar .btn {
    padding: 0.5rem 1rem;
    line-height: 1.5;
    min-height: 38px;
}

/* Alignement vertical des éléments navbar */
.navbar .navbar-nav,
.navbar .d-flex {
    height: 100%;
    align-items: center;
}

/* Normaliser le padding des liens de navigation */
.navbar .navbar-nav .nav-link {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Mode mobile : retirer les contraintes de hauteur */
@media (max-width: 991.98px) {
    .navbar {
        height: auto;
    }
    
    .navbar .container,
    .navbar .navbar-collapse,
    .navbar .navbar-nav,
    .navbar .d-flex {
        height: auto;
    }
}

/* Spacer pour compenser la navbar fixed-top (évite que le contenu passe sous la navbar) */
.navbar-spacer {
    height: 56px;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════════════════
   OFFLINE BANNER
   ══════════════════════════════════════════════════════════════════════════════ */

.offline-banner {
    position: sticky;
    top: 56px;
    z-index: 1020; /* En dessous de la navbar (1030) pour ne pas masquer le menu dropdown */
    background-color: var(--bs-danger);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: center;
    padding: 0.4rem 1rem;
    animation: slideDown 0.3s ease;
}

.offline-banner[hidden] {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   CARDS ENHANCEMENT
   ══════════════════════════════════════════════════════════════════════════════ */

.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   APP SIDEBAR (Desktop)
   ══════════════════════════════════════════════════════════════════════════════ */

/* Sidebar sticky avec z-index pour rester au-dessus du contenu */
.app-page nav[class*="col-lg"] .position-sticky {
    z-index: 10;
}

/* Styles UNIQUEMENT pour les nav-links de la sidebar, PAS de la navbar principale */
.app-page nav[class*="col-lg"] .nav-link {
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    transition: all 0.15s ease;
}

.app-page nav[class*="col-lg"] .nav-link:hover:not(.active) {
    background-color: rgba(var(--bs-primary-rgb), 0.08);
}

.app-page nav[class*="col-lg"] .nav-link.active {
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════════════════════
   MOBILE BOTTOM NAV
   ══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 991.98px) {
    .app-page main {
        padding-bottom: 5rem !important;
    }
    
    .app-page footer {
        display: none;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   BUTTONS - Plus de punch
   ══════════════════════════════════════════════════════════════════════════════ */

.btn {
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    box-shadow: 0 4px 14px rgba(var(--bs-primary-rgb), 0.35);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    box-shadow: 0 6px 20px rgba(var(--bs-primary-rgb), 0.45);
    transform: translateY(-1px);
}

.btn-warning {
    background-color: var(--bs-warning);
    border-color: var(--bs-warning);
    color: #fff;
    box-shadow: 0 4px 14px rgba(var(--bs-warning-rgb), 0.35);
}

.btn-warning:hover {
    background-color: #d97706;
    border-color: #d97706;
    color: #fff;
    box-shadow: 0 6px 20px rgba(var(--bs-warning-rgb), 0.45);
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--bs-success);
    border-color: var(--bs-success);
    box-shadow: 0 4px 14px rgba(var(--bs-success-rgb), 0.35);
}

.btn-success:hover {
    background-color: #059669;
    border-color: #059669;
    box-shadow: 0 6px 20px rgba(var(--bs-success-rgb), 0.45);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
    border-width: 2px;
}

.btn-outline-primary:hover {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    transform: translateY(-1px);
}

.btn-outline-light {
    border-width: 2px;
}

.btn-outline-light:hover {
    transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════════════════════════
   BADGES - Plus visibles
   ══════════════════════════════════════════════════════════════════════════════ */

.badge {
    font-weight: 600;
    padding: 0.5em 0.8em;
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}

.bg-success {
    background-color: var(--bs-success) !important;
}

.bg-warning {
    background-color: var(--bs-warning) !important;
}

.bg-danger {
    background-color: var(--bs-danger) !important;
}

.bg-info {
    background-color: var(--bs-info) !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   TEXT COLORS
   ══════════════════════════════════════════════════════════════════════════════ */

.text-primary {
    color: var(--bs-primary) !important;
}

.text-success {
    color: var(--bs-success) !important;
}

.text-warning {
    color: var(--bs-warning) !important;
}

.text-danger {
    color: var(--bs-danger) !important;
}

.text-info {
    color: var(--bs-info) !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   BG OPACITY OVERRIDES (pour utiliser nos couleurs custom)
   ══════════════════════════════════════════════════════════════════════════════ */

.bg-primary.bg-opacity-10 {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
}

.bg-success.bg-opacity-10 {
    background-color: rgba(var(--bs-success-rgb), 0.1) !important;
}

.bg-warning.bg-opacity-10 {
    background-color: rgba(var(--bs-warning-rgb), 0.1) !important;
}

.bg-danger.bg-opacity-10 {
    background-color: rgba(var(--bs-danger-rgb), 0.1) !important;
}

.bg-info.bg-opacity-10 {
    background-color: rgba(var(--bs-info-rgb), 0.1) !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   FEATURE ICONS - Cercles colores
   ══════════════════════════════════════════════════════════════════════════════ */

.feature-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.feature-icon-primary {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.15), rgba(var(--bs-primary-rgb), 0.05));
    color: var(--bs-primary);
}

.feature-icon-success {
    background: linear-gradient(135deg, rgba(var(--bs-success-rgb), 0.15), rgba(var(--bs-success-rgb), 0.05));
    color: var(--bs-success);
}

.feature-icon-warning {
    background: linear-gradient(135deg, rgba(var(--bs-warning-rgb), 0.15), rgba(var(--bs-warning-rgb), 0.05));
    color: var(--bs-warning);
}

/* ══════════════════════════════════════════════════════════════════════════════
   PARTNERS MARQUEE - Defilement infini des logos
   ══════════════════════════════════════════════════════════════════════════════ */

.partners-marquee {
    position: relative;
}

.partners-marquee::before,
.partners-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.partners-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--bs-light) 0%, transparent 100%);
}

.partners-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--bs-light) 0%, transparent 100%);
}

.partners-track {
    animation: marquee 30s linear infinite;
    width: max-content;
}

.partners-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partner-logo {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Letter spacing utility */
.letter-spacing-1 {
    letter-spacing: 0.1em;
}

/* ══════════════════════════════════════════════════════════════════════════════
   FOOTER STYLES
   ══════════════════════════════════════════════════════════════════════════════ */

footer .hover-light:hover {
    color: #fff !important;
    transition: color 0.2s ease;
}

footer .btn-outline-light.rounded-circle {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

footer .btn-outline-light:hover {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* ══════════════════════════════════════════════════════════════════════════════
   UTILITIES
   ══════════════════════════════════════════════════════════════════════════════ */

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ══════════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════════════════════════════ */

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

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* Gift emoji shake animation */
@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-15deg); }
    20% { transform: rotate(15deg); }
    30% { transform: rotate(-15deg); }
    40% { transform: rotate(15deg); }
    50% { transform: rotate(0deg); }
}

.gift-shake {
    display: inline-block;
    cursor: pointer;
    animation: shake 2s ease-in-out infinite;
    animation-delay: 1s;
    transition: transform 0.2s ease;
}

.gift-shake:hover {
    animation: none;
    transform: scale(1.3);
}

/* ══════════════════════════════════════════════════════════════════════════════
   STORE CARDS - Cards personnalisees par enseigne
   ══════════════════════════════════════════════════════════════════════════════ */

.store-card-link {
    display: block;
}

.store-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 1rem !important;
}

.store-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.store-card .card-header {
    border-radius: 1rem 1rem 0 0 !important;
}

/* Passion Beaute - Theme rose/violet */
.store-card-passion-beaute:hover {
    box-shadow: 0 20px 40px rgba(214, 51, 132, 0.2) !important;
}

/* XL Prog - Theme bleu tech */
.store-card-xl-prog:hover {
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.2) !important;
}

/* Promo cards avec bordure coloree */
.promo-card {
    border-left-width: 4px !important;
    border-left-style: solid !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
}

.promo-card-passion-beaute:hover {
    box-shadow: 0 12px 24px rgba(214, 51, 132, 0.15) !important;
}

.promo-card-xl-prog:hover {
    box-shadow: 0 12px 24px rgba(13, 110, 253, 0.15) !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   MEMBER CARD - Design Premium 3D
   ══════════════════════════════════════════════════════════════════════════════ */

/* Container avec perspective 3D (gyroscope seulement) */
.member-card-container {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    padding: 1.5rem 1rem;
    
    /* Variables pour l'effet gyroscope uniquement */
    --tilt-x: 0;
    --tilt-y: 0;
}

/* Gyroscope actif sur mobile */
.member-card-container.gyro-active {
    transform: rotateX(calc(var(--tilt-x) * 1deg)) rotateY(calc(var(--tilt-y) * 1deg));
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

/* La carte avec ratio carte bancaire (85.6mm x 53.98mm = 1.586:1) */
.member-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1.586 / 1;
    border-radius: 16px;
    transform: scale(1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
    
    /* Degrade Gold Premium */
    background: linear-gradient(135deg, 
        #1a1a2e 0%, 
        #16213e 25%,
        #1a1a2e 50%,
        #0f3460 75%,
        #1a1a2e 100%
    );
    
    /* Ombre portee */
    box-shadow: 
        0 10px 30px -5px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 215, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.member-card:hover {
    transform: scale(1.02);
    box-shadow: 
        0 20px 50px -10px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 215, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Effet holographique anime */
.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 215, 0, 0.03) 45%,
        rgba(255, 215, 0, 0.06) 50%,
        rgba(255, 215, 0, 0.03) 55%,
        transparent 60%
    );
    background-size: 200% 200%;
    animation: holographic 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes holographic {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

/* Contenu de la carte */
.member-card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header avec logo et badge VIP */
.member-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.member-card-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.member-card-brand i {
    color: #ffd700;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.5));
}

/* Badge Points Total */
.member-card-points {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.member-card-points-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffd700;
    line-height: 1;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.member-card-points-label {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.15rem;
}

/* Puce de carte (chip) */
.member-card-chip {
    width: 45px;
    height: 35px;
    background: linear-gradient(145deg, #d4af37, #c5a028, #d4af37);
    border-radius: 6px;
    position: relative;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    margin: 0.5rem 0;
}

.member-card-chip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 60%;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.member-card-chip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 15%;
    right: 15%;
    height: 2px;
    background: rgba(0, 0, 0, 0.2);
}

/* Zone du code membre */
.member-card-number {
    margin-top: auto;
    text-align: left;
}

.member-card-number-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.25rem;
    text-align: left;
}

.member-card-number-value {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffd700;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    text-align: left;
}

/* Footer avec nom */
.member-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 0.5rem;
    text-align: left;
}

.member-card-holder-label {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: left;
}

.member-card-holder-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.3;
    max-width: 180px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: left;
}

/* Motif decoratif */
.member-card-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    opacity: 0.03;
    pointer-events: none;
}

/* Zone code-barres - fond blanc pour scan */
.barcode-zone {
    background: #fff;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    text-align: center;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    max-width: 400px;
    margin: 0 auto;
}

.barcode-zone svg {
    max-width: 100%;
    height: 150px;
}

.barcode-zone-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.5rem;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    letter-spacing: 0.1em;
}

/* Mode gyroscope actif - garde les rotations gyro */
.member-card.gyro-active {
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
}

.member-card.gyro-active:hover {
    /* Pas de zoom au hover en mode gyro pour éviter les conflits */
    transform: scale(1);
}

/* Lien cliquable */
.member-card-link {
    display: flex;
    justify-content: center;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.member-card-link:hover .member-card {
    transform: scale(1.02);
}

.member-card-link:focus {
    outline: none;
}

.member-card-link:focus .member-card {
    box-shadow: 
        0 20px 50px -10px rgba(0, 0, 0, 0.6),
        0 0 0 3px rgba(255, 215, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FLIP CARD - Recto/Verso
   ═══════════════════════════════════════════════════════════════════════════ */

/* Bouton flip en overlay (centré en haut de la carte, dépasse légèrement) */
.flip-overlay-btn {
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid rgba(37, 99, 235, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    pointer-events: auto !important;
    /* S'assurer qu'il est au-dessus de tout */
    isolation: isolate;
}

.flip-overlay-btn:hover {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.5);
    transform: translateX(-50%) scale(1.1);
}

.flip-overlay-btn i {
    font-size: 1.1rem;
    color: var(--bs-primary);
    transition: all 0.2s ease;
}

.flip-overlay-btn:hover i {
    color: #fff;
    transform: rotate(180deg);
}

/* Bouton hint cliquable pour retourner la carte (legacy - conservé) */
.flip-hint-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--bs-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.flip-hint-btn:hover {
    color: var(--bs-primary);
}

.flip-hint-btn i {
    transition: transform 0.3s ease;
}

.flip-hint-btn:hover i {
    transform: rotate(180deg);
}

/* Container flip */
/* Carte flip - TOUJOURS cliquable */
.member-card-flip {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1.586 / 1;
    position: relative;
    transform-style: preserve-3d;
    
    /* Transform uniquement pour le flip */
    transform: rotateY(0deg);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Les faces sont cliquables pour le flip */
.member-card-face {
    cursor: pointer;
    pointer-events: auto;
}

/* État flippé (verso) */
.member-card-flip.flipped {
    transform: rotateY(180deg);
}

/* Faces de la carte */
.member-card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
}

.member-card-front {
    z-index: 2;
    transform: rotateY(0deg);
}

.member-card-back {
    transform: rotateY(180deg);
}

/* S'assurer que la carte interne herite du backface-visibility */
.member-card-face .member-card {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Ajustement pour la carte dans le flip */
.member-card-flip .member-card {
    transform: scale(1);
    cursor: pointer;
    width: 100%;
    height: 100%;
    max-width: none;
    /* Ombre remontee pres de la carte */
    box-shadow: 
        0 8px 25px -5px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 215, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.member-card-flip:hover .member-card {
    transform: scale(1.02);
    box-shadow: 
        0 15px 40px -8px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 215, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MAGASINS PARTENAIRES - Grille
   ═══════════════════════════════════════════════════════════════════════════ */

.partner-stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.partner-store-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.partner-store-item:hover {
    border-color: #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.partner-store-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.partner-store-info {
    min-width: 0;
    flex: 1;
}

.partner-store-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.partner-store-category {
    font-size: 0.75rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive mobile */
@media (max-width: 575.98px) {
    .partner-stores-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FACE ARRIERE - Code-barres (optimise pour scan rapide)
   ═══════════════════════════════════════════════════════════════════════════ */

.member-card-barcode {
    background: #1a1a2e;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Respecte les coins arrondis */
}

.member-card-barcode::before {
    display: none;
}

/* Bande magnetique - minimale avec coins arrondis en haut */
.magnetic-strip {
    height: 22px;
    background: linear-gradient(180deg, #0d0d14 0%, #000 100%);
    flex-shrink: 0;
    border-radius: 16px 16px 0 0;
}

/* Container du code-barres - bande blanche pleine largeur */
.barcode-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 0.4rem 0;
}

.barcode-label {
    font-size: 0.6rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

/* Zone code-barres - pleine largeur, maximisee */
.barcode-wrapper {
    background: #fff;
    padding: 0 0.75rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.barcode-wrapper svg {
    width: 100%;
    max-width: 360px;
    height: 100px;
}

.barcode-number {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.95rem;
    color: #1a1a2e;
    letter-spacing: 0.2em;
    margin-top: 0.2rem;
    font-weight: 700;
}

/* Footer de la face arriere - compact sur fond sombre avec coins arrondis en bas */
.member-card-back-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1a1a2e;
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    border-radius: 0 0 16px 16px;
}

.member-card-brand-small {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.member-card-brand-small i {
    color: var(--bs-primary);
}

.member-card-network {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.member-card-network i {
    font-size: 0.75rem;
    color: var(--bs-success);
}

/* Responsive - Tablette */
@media (max-width: 768px) {
    .member-card-container {
        padding: 1rem 0.5rem;
    }
    
    .member-card {
        max-width: 360px;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .member-card-container {
        padding: 0.75rem 0.25rem;
    }
    
    .member-card {
        max-width: 340px;
    }
    
    .member-card-content {
        padding: 1rem;
    }
    
    .member-card-brand {
        font-size: 0.95rem;
    }
    
    .member-card-number-value {
        font-size: 0.95rem;
    }
    
    .member-card-points-value {
        font-size: 1.2rem;
    }
    
    .member-card-chip {
        width: 38px;
        height: 28px;
        margin: 0.35rem 0;
    }
    
    .member-card-holder-name {
        font-size: 0.7rem;
        max-width: 140px;
    }
    
    .barcode-zone {
        padding: 0.5rem 0.75rem;
    }
    
    .barcode-zone svg {
        max-height: 65px;
    }
    
    .barcode-zone-label {
        font-size: 0.65rem;
        margin-top: 0.25rem;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   BLOCKCHAIN / CYBERPUNK HISTORY PAGE
   ══════════════════════════════════════════════════════════════════════════════ */

/* Variables cyberpunk */
:root {
    --cyber-neon-cyan: #00fff2;
    --cyber-neon-pink: #ff00ff;
    --cyber-neon-green: #00ff41;
    --cyber-neon-blue: #00d4ff;
    --cyber-dark: #0a0a0f;
    --cyber-darker: #050508;
    --cyber-grid: rgba(0, 255, 242, 0.03);
}

/* Effet scanlines pour hero blockchain */
.hero-gradient-blockchain {
    position: relative;
    overflow: hidden;
}

.hero-gradient-blockchain::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(0, 255, 242, 0.03) 50%, transparent 100%),
        repeating-linear-gradient(0deg, transparent 0px, transparent 1px, rgba(0, 255, 242, 0.02) 1px, rgba(0, 255, 242, 0.02) 2px);
    background-size: 200% 100%, 100% 4px;
    animation: scanlines 8s linear infinite;
    pointer-events: none;
}

@keyframes scanlines {
    0% { background-position: -100% 0, 0 0; }
    100% { background-position: 100% 0, 0 100%; }
}

.hero-gradient-blockchain .bi-link-45deg {
    color: var(--cyber-neon-cyan);
    filter: drop-shadow(0 0 10px rgba(0, 255, 242, 0.8));
}

/* Stats blockchain */
.blockchain-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.blockchain-stat {
    display: flex;
    flex-direction: column;
}

.blockchain-stat-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.25rem;
}

.blockchain-stat-value {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
    color: var(--cyber-neon-cyan);
    text-shadow: 0 0 10px rgba(0, 255, 242, 0.4);
}

/* Badge de statut blockchain */
.blockchain-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.blockchain-status-confirmed {
    background: rgba(0, 255, 65, 0.15);
    color: var(--cyber-neon-green);
    border: 1px solid rgba(0, 255, 65, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
}

.blockchain-status-confirmed::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--cyber-neon-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--cyber-neon-green);
    animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--cyber-neon-green); }
    50% { opacity: 0.5; box-shadow: 0 0 15px var(--cyber-neon-green); }
}

/* Header de page uniforme */
.page-header h1 {
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 0.95rem;
}

/* Panel d'informations blockchain */
.blockchain-info-panel {
    /* Conteneur principal pour les infos blockchain */
}

.blockchain-info-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(124, 58, 237, 0.15) 100%);
    border: 1px solid rgba(6, 182, 212, 0.7);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.blockchain-info-card:hover {
    border-color: rgba(6, 182, 212, 0.9);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);
}

.blockchain-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(124, 58, 237, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #0c4a6e;
    flex-shrink: 0;
}

.blockchain-info-card:hover .blockchain-info-icon {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);
    color: #075985;
}

.blockchain-info-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #374151;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.blockchain-info-value {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
}

/* Bloc informatif blockchain */
.blockchain-info-alert {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(124, 58, 237, 0.15) 100%);
    border: 1px solid rgba(6, 182, 212, 0.7);
    border-radius: 12px;
    color: #1a1a2e;
}

.blockchain-info-alert i {
    color: #0c4a6e;
    font-size: 1.1rem;
}

.blockchain-info-alert small {
    color: #1f2937;
    line-height: 1.6;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   HISTORY TIMELINE - Style sobre et épuré
   ═══════════════════════════════════════════════════════════════════════════════ */

.history-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 1.5rem;
}

/* Ligne verticale de connexion */
.history-timeline::before {
    content: '';
    position: absolute;
    left: calc(1.5rem + 18px - 1px);
    top: 2rem;
    bottom: 2rem;
    width: 2px;
    background: #d1d5db;
    z-index: 0;
}

/* Item de la timeline */
.history-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Triangle indicateur de progression */
.history-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0;
    margin-left: 18px;
    width: 40px; /* Largeur fixe pour éviter le débordement */
    transform: translateX(-50%);
    z-index: 1; /* En dessous de la sidebar */
}

.history-arrow i {
    font-size: 1.25rem;
    color: #9ca3af;
    filter: drop-shadow(0 1px 2px rgba(156, 163, 175, 0.3));
}

/* Card de l'événement */
.history-content {
    position: relative;
    width: 100%;
    background: #fff;
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    padding-left: 3rem;
    margin-left: 0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Espacement entre les items - sauf le dernier */
.history-item:not(:last-child) .history-content {
    margin-bottom: 0;
}

/* Le dernier item (création compte) doit aussi avoir de l'espace */
.history-item:last-child {
    padding-bottom: 0;
}

.history-content:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

/* Variante Facture (bleu) */
.history-item-purchase .history-content {
    border-color: rgba(37, 99, 235, 0.25);
}

.history-item-purchase .history-content:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* Variante Bon d'achat (orange/ambre) */
.history-item-voucher .history-content {
    border-color: rgba(245, 158, 11, 0.3);
}

.history-item-voucher .history-content:hover {
    border-color: #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

/* Variante Création compte (vert) */
.history-item-account .history-content {
    border-color: rgba(16, 185, 129, 0.3);
}

.history-item-account .history-content:hover {
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

/* Numéro accroché à la card */
.history-node-number {
    position: absolute;
    left: -18px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
    z-index: 2;
}

/* Header avec avatar et infos */
.history-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Avatar magasin cliquable */
.history-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    border: 1px solid rgba(37, 99, 235, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-primary);
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.history-avatar:hover {
    background: var(--bs-primary);
    color: #fff;
    transform: scale(1.05);
}

.history-item-voucher .history-avatar {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-color: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.history-item-voucher .history-avatar:hover {
    background: #f59e0b;
    color: #fff;
}

.history-item-account .history-avatar {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.history-item-account .history-avatar:hover {
    background: #10b981;
    color: #fff;
}

/* Infos principales */
.history-info {
    flex: 1;
    min-width: 0;
}

.history-store {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.history-store a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.history-store a:hover {
    color: var(--bs-primary);
}

.history-item-voucher .history-store a:hover {
    color: #f59e0b;
}

.history-item-account .history-store a:hover {
    color: #10b981;
}

.history-date {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Badge type (icône seule) */
.history-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.history-badge-purchase {
    background: rgba(37, 99, 235, 0.1);
    color: var(--bs-primary);
}

.history-badge-voucher {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.history-badge-account {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

/* Corps de l'événement */
.history-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
    margin-bottom: 0.75rem;
}

.history-description {
    font-size: 0.9rem;
    color: #4b5563;
    flex: 1;
    min-width: 200px;
}

.history-amounts {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-left: auto;
}

.history-amount {
    font-weight: 500;
    color: #6b7280;
    font-size: 0.9rem;
}

/* Badge points gagnés (vert) */
.history-points {
    font-size: 1.1rem;
    font-weight: 700;
    color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.15);
}

/* Badge bon utilisé (rouge) */
.history-voucher-used {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.08) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.15);
}

/* Footer blockchain */
.history-footer {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #9ca3af;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.history-block {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Responsive mobile */
@media (max-width: 575.98px) {
    .history-content {
        padding: 0.875rem 1rem;
        padding-left: 3rem;
    }
    
    .history-node-number {
        left: -14px;
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .history-avatar {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .history-header {
        flex-wrap: wrap;
    }
    
    .history-body {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .history-amounts {
        flex-direction: row;
        flex-wrap: wrap;
        margin-left: 0;
        gap: 0.5rem;
    }
    
    .history-footer {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* Transaction card blockchain (legacy - conservé pour compatibilité) */
.tx-card {
    background: linear-gradient(145deg, #12121a 0%, #0a0a0f 100%);
    border: 1px solid rgba(0, 255, 242, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.tx-card:hover {
    border-color: rgba(0, 255, 242, 0.3);
    box-shadow: 
        0 0 30px rgba(0, 255, 242, 0.1),
        inset 0 0 30px rgba(0, 255, 242, 0.02);
}

.tx-card-voucher:hover {
    border-color: rgba(255, 0, 255, 0.3);
    box-shadow: 
        0 0 30px rgba(255, 0, 255, 0.1),
        inset 0 0 30px rgba(255, 0, 255, 0.02);
}

/* Date header prominent */
.tx-date-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(90deg, rgba(0, 255, 242, 0.08) 0%, transparent 100%);
    border-bottom: 1px solid rgba(0, 255, 242, 0.1);
}

.tx-card-voucher .tx-date-header {
    background: linear-gradient(90deg, rgba(255, 0, 255, 0.08) 0%, transparent 100%);
    border-bottom-color: rgba(255, 0, 255, 0.1);
}

.tx-date-day {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--cyber-neon-cyan);
    line-height: 1;
    min-width: 48px;
    text-align: center;
    text-shadow: 0 0 15px rgba(0, 255, 242, 0.5);
}

.tx-card-voucher .tx-date-day {
    color: var(--cyber-neon-pink);
    text-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
}

.tx-date-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tx-date-month {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tx-date-time {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.tx-type-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(0, 255, 242, 0.1);
    color: var(--cyber-neon-cyan);
    font-size: 1.2rem;
}

.tx-card-voucher .tx-type-icon {
    background: rgba(255, 0, 255, 0.1);
    color: var(--cyber-neon-pink);
}

.tx-card-body {
    padding: 1rem 1.25rem;
}

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

/* Header de la transaction */
.tx-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.tx-store {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.tx-type-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tx-type-purchase {
    background: rgba(0, 212, 255, 0.15);
    color: var(--cyber-neon-blue);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.tx-type-voucher {
    background: rgba(255, 0, 255, 0.15);
    color: var(--cyber-neon-pink);
    border: 1px solid rgba(255, 0, 255, 0.3);
}

/* Montants */
.tx-amounts {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.tx-amount {
    display: flex;
    flex-direction: column;
}

.tx-amount-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tx-amount-value {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 1.1rem;
    font-weight: 700;
}

.tx-amount-value.positive {
    color: var(--cyber-neon-green);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
}

.tx-amount-value.negative {
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.4);
}

.tx-amount-value.neutral {
    color: #fff;
}

/* Hash blockchain */
.tx-hash-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tx-hash-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, rgba(0, 255, 242, 0.1), rgba(0, 212, 255, 0.05));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyber-neon-cyan);
    font-size: 0.8rem;
}

.tx-hash-details {
    flex: 1;
    min-width: 0;
}

.tx-hash {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tx-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.25rem;
}

.tx-meta-item {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.35);
}

.tx-meta-item i {
    margin-right: 0.25rem;
    color: var(--cyber-neon-cyan);
    opacity: 0.6;
}


/* Points badge in table */
.points-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.8rem;
    font-weight: 600;
}

.points-badge-positive {
    background: rgba(0, 255, 65, 0.15);
    color: var(--cyber-neon-green);
    border: 1px solid rgba(0, 255, 65, 0.2);
}

.points-badge-negative {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

/* Chain visualization */
.chain-link {
    position: absolute;
    left: 1.5px;
    top: 100%;
    width: 0;
    height: 1rem;
    border-left: 2px dashed rgba(0, 255, 242, 0.2);
}

/* Block number badge */
.block-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.5rem;
    background: rgba(0, 255, 242, 0.08);
    border: 1px solid rgba(0, 255, 242, 0.15);
    border-radius: 4px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.65rem;
    color: var(--cyber-neon-cyan);
}

.block-badge i {
    font-size: 0.6rem;
    opacity: 0.7;
}

/* Security indicators */
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.1), rgba(0, 255, 242, 0.05));
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 20px;
    font-size: 0.65rem;
    color: var(--cyber-neon-green);
}

.security-badge i {
    font-size: 0.7rem;
}

/* Animation pour les nouveaux blocs */
@keyframes newBlock {
    0% {
        opacity: 0;
        transform: translateY(-10px);
        border-color: var(--cyber-neon-cyan);
        box-shadow: 0 0 30px rgba(0, 255, 242, 0.4);
    }
    50% {
        border-color: var(--cyber-neon-cyan);
        box-shadow: 0 0 20px rgba(0, 255, 242, 0.2);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        border-color: rgba(0, 255, 242, 0.1);
        box-shadow: none;
    }
}

.tx-card.new-block {
    animation: newBlock 0.6s ease-out;
}

/* Glitch effect on hover */
.glitch-text {
    position: relative;
}

.glitch-text:hover {
    animation: glitch 0.3s ease;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

/* Responsive mobile */
@media (max-width: 767.98px) {
    .blockchain-header {
        padding: 1rem;
    }
    
    .blockchain-stats {
        gap: 1rem;
    }
    
    .blockchain-stat-value {
        font-size: 0.75rem;
    }
    
    .tx-amounts {
        gap: 1rem;
    }
    
    .tx-hash {
        font-size: 0.6rem;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   HERO 3D VIP CARD - Carte VIP premium tournante
   ══════════════════════════════════════════════════════════════════════════════ */

.hero-card-3d-container {
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.hero-card-3d {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1.586 / 1;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCard 25s linear infinite;
}

@keyframes rotateCard {
    0% {
        transform: rotateY(0deg) rotateX(5deg);
    }
    100% {
        transform: rotateY(360deg) rotateX(5deg);
    }
}

/* Face de la carte */
.hero-card-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 265px; /* Hauteur fixe identique au parent */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 20px;
    overflow: visible;
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(212, 175, 55, 0.3);
}

/* Recto & Verso - Design VIP noir et or */
.hero-card-front,
.hero-card-back {
    background: linear-gradient(135deg, 
        #1a1a1a 0%, 
        #2d2d2d 40%,
        #1a1a1a 60%,
        #0a0a0a 100%
    );
}

.hero-card-front {
    transform: rotateY(0deg);
}

.hero-card-back {
    transform: rotateY(180deg);
}

/* Contenu de la carte */
.hero-card-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
    border-radius: 20px;
    overflow: hidden;
}

/* Motif décoratif subtil en arrière-plan */
.hero-card-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Header avec logo et badge VIP */
.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.hero-card-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-card-logo i {
    font-size: 1.5rem;
    color: #d4af37;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

.hero-card-brand-name {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Badge VIP */
.hero-card-vip-badge {
    background: linear-gradient(135deg, #d4af37 0%, #f4e5b1 50%, #d4af37 100%);
    color: #1a1a1a;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    box-shadow: 
        0 4px 12px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Type de carte */
.hero-card-type {
    text-align: center;
    margin: 1.5rem 0;
}

.hero-card-type-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

/* Footer infos */
.hero-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.hero-card-info-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.hero-card-info-label {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-card-info-value {
    font-size: 0.75rem;
    color: #d4af37;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.hero-card-serie {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Ruban cadeau VIP - Croix décalée (vertical + horizontal) */
.gift-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    overflow: hidden;
    z-index: 10;
    pointer-events: none;
}

/* Ruban horizontal - positionné au milieu-bas - Rouge Noël */
.gift-ribbon-horizontal {
    position: absolute;
    top: 55%;
    left: 0;
    right: 0;
    height: 45px;
    background: linear-gradient(180deg, 
        #dc2626 0%, 
        #ef4444 20%,
        #dc2626 40%,
        #b91c1c 60%,
        #dc2626 80%,
        #ef4444 100%
    );
    box-shadow: 
        0 6px 18px rgba(220, 38, 38, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3);
}

/* Ruban vertical - décalé vers la droite - Rouge Noël */
.gift-ribbon-vertical {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 73%;
    width: 45px;
    background: linear-gradient(90deg, 
        #dc2626 0%, 
        #ef4444 20%,
        #dc2626 40%,
        #b91c1c 60%,
        #dc2626 80%,
        #ef4444 100%
    );
    box-shadow: 
        0 6px 18px rgba(220, 38, 38, 0.6),
        inset 2px 0 0 rgba(255, 255, 255, 0.4),
        inset -2px 0 0 rgba(0, 0, 0, 0.3);
}

/* Intersection des rubans - effet de profondeur */
.gift-ribbon-vertical::after {
    content: '';
    position: absolute;
    top: 55%;
    left: 0;
    right: 0;
    height: 45px;
    background: linear-gradient(135deg, 
        transparent 0%,
        rgba(0, 0, 0, 0.15) 50%,
        transparent 100%
    );
}

/* Effet holographique subtil */
.hero-card-face::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(212, 175, 55, 0.08) 45%,
        rgba(212, 175, 55, 0.15) 50%,
        rgba(212, 175, 55, 0.08) 55%,
        transparent 70%
    );
    background-size: 200% 200%;
    animation: holoShine 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
    border-radius: 20px;
}

@keyframes holoShine {
    0%, 100% {
        background-position: 200% 0;
    }
    50% {
        background-position: -200% 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-card-3d-container {
        padding: 1rem;
        min-height: 320px;
    }
    
    .hero-card-3d {
        max-width: 340px;
        height: 214px; /* 340 / 1.586 */
    }
    
    .hero-card-face {
        height: 214px; /* Même hauteur sur mobile */
    }
    
    .hero-card-content {
        padding: 1.5rem;
    }
    
    .gift-ribbon-horizontal,
    .gift-ribbon-vertical {
        height: 40px;
    }
    
    .gift-ribbon-vertical {
        width: 40px;
    }
    
    .hero-card-brand-name {
        font-size: 1.1rem;
    }
    
    .hero-card-logo i {
        font-size: 1.3rem;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   PRINT STYLES
   ══════════════════════════════════════════════════════════════════════════════ */

@media print {
    .navbar,
    footer,
    .app-sidebar,
    .fixed-bottom {
        display: none !important;
    }
    
    main {
        padding: 0 !important;
    }
}
