/**
 * Styles pour le système de boutique
 * Version 1.0.0
 */

/* Container principal de la boutique */
#section-boutique {
    display: none;
    height: 100%;
    overflow: hidden;
    background: var(--app-bg, #f5f5f7);
}

#section-boutique.active {
    display: flex;
    flex-direction: column;
}

/* Les onglets sont maintenant gérés par le système global dans permis-duels.css */

/* Contenu de la boutique */
.shop-content {
    flex: 1;
    overflow-y: auto;
    padding: 120px 15px 20px; /* Ajout du padding-top pour le menu global */
}

/* Bannière Premium dans la boutique */
.shop-premium-banner {
    margin: 0 0 25px 0;
    text-align: center;
}

.shop-premium-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    width: 100%;
    max-width: 600px;
    justify-content: center;
}

.shop-premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.shop-premium-btn .premium-icon {
    font-size: 32px;
}

.shop-premium-btn .premium-text {
    text-align: left;
    color: #333;
}

.shop-premium-btn .premium-text strong {
    display: block;
    font-size: 18px;
    margin-bottom: 2px;
}

.shop-premium-btn .premium-text small {
    display: block;
    font-size: 14px;
    opacity: 0.8;
}

.shop-premium-btn .premium-price {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-left: auto;
}

/* Masquer si déjà Premium */
.is-premium-user .shop-premium-banner {
    display: none;
}

.shop-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.shop-pane.active {
    display: block;
}

/* Header de section */
.shop-header {
    margin-bottom: 25px;
    text-align: center;
}

.shop-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}

.shop-header p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Grille d'items */
.shop-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Carte d'item */
.shop-item-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.shop-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.shop-item-card.owned {
    border: 2px solid #4CAF50;
}

.shop-item-card.equipped {
    border: 2px solid #0066cc;
}

/* Badge équipé/possédé */
.item-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #0066cc;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.item-badge.owned {
    background: #4CAF50;
}

/* Header de l'item */
.item-header {
    padding: 20px;
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ea 100%);
    text-align: center;
}

.item-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.item-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

/* Corps de l'item */
.item-body {
    padding: 20px;
}

.item-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.item-features {
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #333;
    padding: 5px 0;
}

.feature-item .check {
    color: #4CAF50;
    font-weight: bold;
}

/* Prix et actions */
.item-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 12px;
    color: #666;
}

.price-amount {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.price-amount .coin-icon {
    font-size: 16px;
}

/* Boutons d'action */
.item-action-btn {
    padding: 10px 20px;
    border-radius: 25px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.item-action-btn.buy {
    background: #0066cc;
    color: white;
}

.item-action-btn.buy:hover {
    background: #0052a3;
    transform: scale(1.05);
}

.item-action-btn.buy:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.item-action-btn.equip {
    background: #4CAF50;
    color: white;
}

.item-action-btn.equip:hover {
    background: #45a049;
}

.item-action-btn.sell {
    background: #ff9500;
    color: white;
}

.item-action-btn.sell:hover {
    background: #e68600;
}

/* Section inventaire */
.inventory-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.stat-card {
    flex: 1;
    min-width: 120px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stat-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 12px;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Items de l'inventaire */
.inventory-items {
    display: grid;
    gap: 15px;
}

.inventory-item {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.inventory-item-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.inventory-item-info {
    flex: 1;
}

.inventory-item-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 5px 0;
}

.inventory-item-details {
    font-size: 12px;
    color: #666;
}

.inventory-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.resale-value {
    font-size: 14px;
    color: #ff9500;
    font-weight: 600;
}

.depreciation-info {
    font-size: 11px;
    color: #999;
}

/* Modal de confirmation avec effet liquidglass */
.sell-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2147483647;
    padding: 20px;
}

.sell-confirm-content {
    background: #ffffff;
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 24px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
                inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.sell-confirm-icon {
    font-size: 40px;
    margin-bottom: 16px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.sell-confirm-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.sell-confirm-text {
    font-size: 14px;
    color: #4a4a4a;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.sell-price-info {
    background: rgba(244, 244, 246, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(209, 213, 219, 0.3);
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.original-price {
    font-size: 12px;
    color: #6b7280;
    text-decoration: line-through;
    opacity: 0.8;
}

.resale-price {
    font-size: 20px;
    font-weight: 700;
    color: #f59e0b;
    margin: 4px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.loss-percentage {
    font-size: 12px;
    color: #ef4444;
    font-weight: 500;
}

.sell-confirm-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.confirm-btn {
    flex: 1;
    padding: 10px 18px;
    border-radius: 16px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.confirm-btn.cancel {
    background: rgba(229, 231, 235, 0.8);
    color: #374151;
    border: 1px solid rgba(156, 163, 175, 0.2);
}

.confirm-btn.cancel:hover {
    background: rgba(209, 213, 219, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.confirm-btn.confirm {
    background: rgba(251, 146, 60, 0.9);
    color: white;
    border: 1px solid rgba(251, 146, 60, 0.3);
    position: relative;
    overflow: hidden;
}

.confirm-btn.confirm::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.confirm-btn.confirm:hover {
    background: rgba(249, 115, 22, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(251, 146, 60, 0.3);
}

.confirm-btn.confirm:hover::before {
    width: 300px;
    height: 300px;
}

/* État vide */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state .empty-icon {
    font-size: 16px;
    display: block;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.empty-state p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

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

/* Responsive */
@media (max-width: 768px) {
    .shop-items-grid {
        grid-template-columns: 1fr;
    }
    
    .inventory-stats {
        padding-bottom: 10px;
    }
    
    .sell-confirm-content {
        padding: 20px;
    }
} 

/* Nouveau design inventaire moderne */
.inventory-modern {
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.inventory-header {
    text-align: center;
    margin-bottom: 40px;
}

.inventory-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.inventory-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.inventory-section {
    margin-bottom: 40px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.section-icon {
    font-size: 24px;
}

/* Grille pour les véhicules */
.inventory-vehicles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.vehicle-inventory-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.vehicle-inventory-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.vehicle-inventory-card.equipped {
    border-color: #667eea;
    background: linear-gradient(to bottom right, #ffffff, #f0f4ff);
}

.equipped-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.vehicle-inventory-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.vehicle-inventory-icon {
    font-size: 48px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f7;
    border-radius: 12px;
}

.vehicle-inventory-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 5px 0;
}

.vehicle-inventory-specs {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.vehicle-inventory-spec {
    display: flex;
    align-items: center;
    gap: 5px;
}

.vehicle-inventory-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.vehicle-action-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vehicle-action-btn.primary {
    background: #667eea;
    color: white;
}

.vehicle-action-btn.primary:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.vehicle-action-btn.secondary {
    background: #ff9500;
    color: white;
}

.vehicle-action-btn.secondary:hover {
    background: #e68600;
    transform: translateY(-1px);
}

/* Grille pour les améliorations */
.inventory-upgrades {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.upgrade-inventory-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.upgrade-inventory-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.upgrade-inventory-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
}

.upgrade-inventory-info {
    flex: 1;
}

.upgrade-inventory-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

.upgrade-inventory-info p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.upgrade-active-badge {
    background: #10b981;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* Badge Multichargeur */
.multichargeur-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f59e0b;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    animation: pulse 2s ease-in-out infinite;
}

/* État de carburant dans l'inventaire */
.vehicle-fuel-status {
    margin: 15px 0;
    padding: 15px;
    background: #f5f5f7;
    border-radius: 10px;
}

.fuel-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.fuel-value {
    font-weight: 600;
    color: #333;
}

.fuel-bar-container {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.fuel-bar-bg {
    width: 100%;
    height: 100%;
    position: relative;
}

.fuel-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    transition: width 0.5s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 5px;
}

.fuel-bar-fill.charging {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    animation: chargeAnimation 2s ease-in-out infinite;
}

@keyframes chargeAnimation {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.charging-icon {
    font-size: 14px;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.8));
}

.multichargeur-info {
    margin-top: 8px;
    text-align: center;
}

.charging-text {
    font-size: 12px;
    color: #f59e0b;
    font-style: italic;
}

/* Animation pour les véhicules avec Multichargeur actif */
.vehicle-inventory-card.multichargeur-active {
    border-color: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

/* État vide */
.inventory-empty {
    text-align: center;
    padding: 40px;
    background: #f5f5f7;
    border-radius: 12px;
}

.inventory-empty p {
    color: #666;
    font-size: 16px;
}

/* Message boutique vide */
.shop-empty-message {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(to bottom, #f8f9fa, #f0f2f5);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    grid-column: 1 / -1;
}

.shop-empty-message .empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    filter: grayscale(0.5);
    opacity: 0.7;
}

.shop-empty-message h3 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 24px;
    font-weight: 700;
}

.shop-empty-message p {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.shop-empty-message .hint {
    color: #888;
    font-size: 14px;
    font-style: italic;
    margin-top: 16px;
} 

/* ==========================
   Notifications
   ========================== */

.resource-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 20px;
    transform: translateX(400px);
    transition: all 0.3s ease-out;
    z-index: 2147483647;
    max-width: 320px;
    font-weight: 500;
    font-size: 15px;
    
    /* Effet liquid glass comme le menu du bas */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    
    /* Contenu */
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Animation d'entrée */
.resource-notification.show {
    transform: translateX(0);
}

/* Icône selon le type */
.resource-notification::before {
    content: '✨';
    font-size: 20px;
    display: inline-block;
}

.resource-notification.success::before {
    content: '✅';
}

.resource-notification.error::before {
    content: '❌';
}

.resource-notification.warning::before {
    content: '⚠️';
}

.resource-notification.info::before {
    content: 'ℹ️';
}

/* Effet de brillance subtile */
.resource-notification::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
    pointer-events: none;
}

@media (max-width: 768px) {
    .resource-notification {
        left: 16px;
        right: 16px;
        top: auto;
        bottom: 80px; /* Remonté plus haut, au-dessus du menu */
        transform: translateY(120px);
        max-width: none;
        text-align: center;
        justify-content: center;
    }
    
    .resource-notification.show {
        transform: translateY(0);
    }
} 

/* ===================================
   Styles pour le popup de confirmation d'achat
   =================================== */

.shop-confirm-content {
    text-align: center;
    padding: 0;
}

.shop-confirm-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px;
    background: rgba(241, 245, 249, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.shop-confirm-icon {
    font-size: 36px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.shop-confirm-details h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: left;
}

.shop-confirm-price {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    text-align: left;
}

.shop-confirm-price strong {
    color: #667eea;
    font-size: 16px;
    font-weight: 600;
}

.shop-confirm-balance {
    background: rgba(244, 244, 246, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: 12px;
    margin: 0 0 16px 0;
    border: 1px solid rgba(209, 213, 219, 0.3);
}

.shop-confirm-balance p {
    margin: 3px 0;
    font-size: 13px;
    color: #4b5563;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shop-confirm-balance p:last-child {
    color: #667eea;
    font-weight: 600;
    padding-top: 6px;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
}

.shop-confirm-question {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 12px 0 16px 0;
}

/* Styles spécifiques pour le popup de confirmation d'achat */
.permis-popup-body .shop-confirm-content + .permis-popup-footer {
    margin-top: 0;
}

/* Surcharger les styles du popup pour shop */
.permis-popup-overlay .permis-popup .permis-popup-btn {
    /* Les styles sont déjà définis dans permis-duels.css */
}

/* Supprimer l'ancien header coloré */
.shop-confirm-content .permis-popup-header {
    background: none;
    color: inherit;
    padding: 0;
    margin: 0;
    border-radius: 0;
}

.permis-popup-header h3::before {
    content: '🛒';
    font-size: 24px;
}

/* Améliorer le style général du popup */
.permis-popup {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    overflow: hidden;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .shop-confirm-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .shop-confirm-icon {
        font-size: 40px;
    }
    
    .shop-confirm-details h4 {
        font-size: 18px;
    }
    
    .permis-popup {
        margin: 20px;
        max-width: calc(100% - 40px);
    }
} 

/* Styles pour le contenu de succès d'achat */
.purchase-success {
    text-align: center;
    padding: 20px 0;
}

.purchase-success .success-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: inline-block;
    animation: bounceIn 0.6s ease;
}

.purchase-success h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 15px 0;
}

.purchase-success .success-message {
    font-size: 16px;
    color: #10b981;
    margin-bottom: 20px;
    font-weight: 500;
}

.purchase-success .new-balance {
    background: #f0fdf4;
    padding: 15px 25px;
    border-radius: 12px;
    display: inline-block;
    border: 2px solid #10b981;
}

.purchase-success .new-balance p {
    margin: 0;
    font-size: 16px;
    color: #065f46;
}

.purchase-success .new-balance strong {
    font-size: 20px;
    color: #10b981;
}

/* Styles pour les états de chargement et d'erreur */
.shop-confirm-question .loading {
    color: #3b82f6;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.shop-confirm-question .error-message {
    color: #ef4444;
    font-weight: 500;
}

/* Animation pour l'icône de succès */
@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Améliorer le header en cas de succès */
.permis-popup-header h3:has-text("✅") {
    color: white !important;
}

/* Styles pour les boutons désactivés */
.permis-popup-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Transition douce pour les changements de contenu */
.permis-popup-body {
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .purchase-success .success-icon {
        font-size: 48px;
    }
    
    .purchase-success h3 {
        font-size: 20px;
    }
    
    .purchase-success .new-balance {
        padding: 12px 20px;
    }
}

/* Espace de scroll pour la boutique sur mobile */
@media (max-width: 600px) {
    .shop-content::after {
        content: '';
        display: block;
        height: 65px;
        width: 100%;
    }
} 