/* Hop Cagnotte - Styles */

.hc-my-wallet {
    margin: 20px 0;
}

.hc-transactions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.hc-transactions-table th,
.hc-transactions-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.hc-transactions-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.hc-tx-credit {
    color: green;
    font-weight: bold;
}

.hc-tx-debit {
    color: red;
    font-weight: bold;
}

.hc-amount.positive {
    color: green;
}

.hc-amount.negative {
    color: red;
}

/* Jauge de progression des paliers */
.hc-tier-progress {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin: 25px 0 40px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.hc-tier-progress h3 {
    margin-top: 0;
    color: #333;
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 600;
}

.hc-tier-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    flex-wrap: wrap;
    gap: 20px;
    background: linear-gradient(135deg, #E8F4FD 0%, #F0F9FF 100%);
    border-radius: 10px;
    border: 2px solid #CCE5FF;
}

.hc-tier-counter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hc-order-count {
    font-size: 36px;
    font-weight: 800;
    color: #0099FF;
    text-shadow: 0 2px 4px rgba(0, 153, 255, 0.1);
}

.hc-order-label {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.hc-tier-next {
    text-align: right;
    font-weight: 500;
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.hc-next-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hc-next-count {
    display: block;
    font-size: 22px;
    color: #0099FF;
    font-weight: 700;
}

/* Jauge de progression avec étapes */
.hc-progress-gauge {
    position: relative;
    padding: 15px 0 10px;
    margin-bottom: 15px;
    overflow: visible;
}

.hc-gauge-track {
    position: absolute;
    top: 37px;
    left: 22px;
    right: 22px;
    height: 8px;
    background: #E8F4FD;
    border-radius: 4px;
    z-index: 1;
    overflow: hidden;
}

.hc-gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, #0099FF, #33AAFF);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 153, 255, 0.3);
}

.hc-gauge-steps {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.hc-gauge-step {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hc-gauge-dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #E8F4FD;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #B0BEC5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.hc-gauge-dot.completed {
    background: #0099FF;
    color: white;
    border-color: white;
    box-shadow: 0 3px 10px rgba(0, 153, 255, 0.4);
}

.hc-gauge-dot.current {
    background: #0099FF;
    color: white;
    border-color: white;
    font-size: 17px;
    transform: scale(1.18);
    box-shadow: 0 0 0 5px rgba(0, 153, 255, 0.15), 0 4px 14px rgba(0, 153, 255, 0.5);
    animation: hc-pulse 2s ease-in-out infinite;
}

@keyframes hc-pulse {
    0%, 100% {
        box-shadow: 0 0 0 5px rgba(0, 153, 255, 0.15), 0 4px 14px rgba(0, 153, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 153, 255, 0.2), 0 6px 18px rgba(0, 153, 255, 0.6);
    }
}

.hc-gauge-label {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #90A4AE;
    white-space: nowrap;
}

.hc-gauge-label.completed {
    color: #0099FF;
    font-weight: 700;
}

.hc-gauge-label.current {
    color: #0099FF;
    font-weight: 700;
    font-size: 13px;
}

/* Liste des paliers */
.hc-tiers-list {
    display: grid;
    gap: 15px;
    margin-top: 30px;
}

.hc-tier-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    background: white;
    border: 2px solid #E8F4FD;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hc-tier-item:hover {
    box-shadow: 0 4px 12px rgba(0, 153, 255, 0.08);
    transform: translateY(-2px);
}

.hc-tier-item.unlocked {
    background: linear-gradient(135deg, #E8F4FD 0%, #F0F9FF 100%);
    border: 2px solid #99D6FF;
    box-shadow: 0 4px 12px rgba(0, 153, 255, 0.15);
}

.hc-tier-item.locked {
    opacity: 0.6;
    background: #FAFAFA;
}

.hc-tier-badge {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;
}

.hc-tier-item.unlocked .hc-tier-badge {
    background: #0099FF;
    color: white;
    box-shadow: 0 3px 10px rgba(0, 153, 255, 0.3);
}

.hc-tier-item.locked .hc-tier-badge {
    background: #E0E0E0;
    color: #999;
}

.hc-tier-check {
    display: block;
}

.hc-tier-lock {
    display: block;
    font-size: 20px;
}

.hc-tier-content {
    flex: 1;
}

.hc-tier-content strong {
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
    color: #333;
    font-weight: 600;
}

.hc-tier-content p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.hc-tier-item.unlocked .hc-tier-content strong {
    color: #0099FF;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 600px) {
    .hc-tier-progress {
        padding: 20px;
    }

    .hc-tier-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }

    .hc-tier-next {
        text-align: left;
        width: 100%;
    }

    .hc-order-count {
        font-size: 28px;
    }

    .hc-next-count {
        font-size: 18px;
    }

    .hc-progress-bar-container {
        min-height: 90px;
        padding: 25px 15px 35px;
    }

    .hc-progress-track {
        width: calc(100% - 30px);
    }

    .hc-progress-steps {
        left: 15px;
        right: 15px;
    }

    .hc-step-label {
        font-size: 10px;
        top: 42px;
    }

    .hc-step-marker {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .hc-step-marker.current {
        width: 34px;
        height: 34px;
    }

    .hc-tier-item {
        padding: 15px;
    }

    .hc-tier-badge {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}