/* Styles pour le widget Acheter des followers */

:root {
    --primary-blue: #1e3a8a;
    --primary-purple: #6b21a8;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-modal: #ffffff;
    --text-dark: #1a202c;
    --text-gray: #718096;
    --text-light: #a0aec0;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --fire-color: #f59e0b;
    --premium-color: #8b5cf6;
}

.bpx-af-widget.blocker {
    background-color: rgba(0, 0, 0, 0.25);
}

.bpx-af-widget .pricing-modal {
    max-width: 620px;
    margin: 0 auto;
    background: var(--bg-modal);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.bpx-af-widget .modal-header {
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.bpx-af-widget .username {
    color: var(--text-gray);
    font-size: 24px;
    font-weight: 500;
}

.bpx-af-widget .modal-title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 24px 0;
}

.bpx-af-widget .pricing-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    padding-right: 8px;
    justify-content: center;
}

.bpx-af-widget .pricing-list::-webkit-scrollbar {
    width: 6px;
}

.bpx-af-widget .pricing-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.bpx-af-widget .pricing-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.bpx-af-widget .pricing-option {
    position: relative;
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 48%;
}

.bpx-af-widget .pricing-option-custom {
    width: calc(96% + 10px);
}

.bpx-af-widget .pricing-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bpx-af-widget .option-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.bpx-af-widget .pricing-option:hover .option-content {
    border-color: var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.bpx-af-widget .pricing-option input[type="radio"]:checked ~ .option-content {
    border-color: #cbd5e1;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.04) 100%);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08), 0 6px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.bpx-af-widget .option-info {
    flex: 1;
}

.bpx-af-widget .option-info.full-width {
    width: 100%;
}

.bpx-af-widget .followers-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    flex-direction: column;
    align-items: baseline;
}

.bpx-af-widget .followers-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.bpx-af-widget .badge-icon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bpx-af-widget .badge-icon.discount {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.bpx-af-widget .badge-option-icon {
    position: absolute;
    top: -10px;
    width: fit-content;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bpx-af-widget .badge-option-icon.fire {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.bpx-af-widget .unit-price {
    display: block;
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 2px;
}

.bpx-af-widget .pricing-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.bpx-af-widget .current-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.bpx-af-widget .original-price {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
}

.bpx-af-widget .pricing-option.popular .option-content {
    border-color: #f59e0b;
}

.bpx-af-widget .custom-option .option-content {
    flex-direction: column;
    align-items: flex-start;
}

.bpx-af-widget .custom-slider-container {
    width: 100%;
    margin: 16px 0;
}

.bpx-af-widget .slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.bpx-af-widget .slider-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.bpx-af-widget .custom-input {
    width: 120px;
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    transition: all 0.3s ease;
}

.bpx-af-widget .custom-input:focus {
    outline: none;
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.bpx-af-widget .custom-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #e5e7eb;
    border-radius: 10px;
    outline: none;
    margin: 12px 0;
}

.bpx-af-widget .custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid #d1d5db;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.bpx-af-widget .custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.bpx-af-widget .custom-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid #d1d5db;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.bpx-af-widget .slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
    margin-top: 4px;
}

.bpx-af-widget .custom-section {
    margin: auto;
    width: calc(96% + 10px);
}

.bpx-af-widget .custom-pricing {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 10px;
}

.bpx-af-widget .custom-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

.bpx-af-widget .custom-counter-followers {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

.bpx-af-widget .custom-unit-price {
    font-size: 12px;
    color: var(--text-gray);
}

.bpx-af-widget .continue-btn {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
    border: 0;
}

.bpx-af-widget .continue-btn:hover {
    transform: translateY(-1px);
}

.bpx-af-widget .continue-btn:active {
    transform: translateY(0);
}

.bpx-af-widget .continue-btn.load {
    pointer-events: none;
    opacity: 0.8;
    cursor: wait;
    position: relative;
    color: transparent;
}

.bpx-af-widget .continue-btn.load::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
}

.bpx-af-widget .btn-edit {
    border: none;
    background: transparent;
}

.bpx-af-widget .btn-edit svg {
    height: 18px;
    width: 18px;
}

.bpx-af-widget .btn-edit:hover {
    background-color: transparent;
}

.bpx-af-widget .input-username {
    max-width: 600px;
    text-align: center;
    margin: auto;
}

.bpx-af-widget .input-username .input-container {
    display: flex;
    align-items: center;
    padding: 4px;
    overflow: hidden;
}

.bpx-af-widget .input-username .input-container > svg {
    width: 50px;
    height: 50px;
    margin-left: 10px;
    margin-right: 5px;
}

.bpx-af-widget .input-username .input-container button {
    width: fit-content;
    height: 50px;
    padding-left: 35px;
    padding-right: 35px;
    margin-left: 5px;
    display: flex;
    align-items: center;
}

.bpx-af-widget .input-username .input-container input {
    border: none;
    outline: none;
    width: 100%;
    height: 50px;
    background: transparent;
}

@keyframes spinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {
    .bpx-af-widget .pricing-modal {
        width: 100%;
        padding: 20px 16px;
        border-radius: 16px;
    }

    .bpx-af-widget .modal-title {
        font-size: 18px;
    }

    .bpx-af-widget .followers-number {
        font-size: 16px;
    }

    .bpx-af-widget .current-price {
        font-size: 20px;
    }

    .bpx-af-widget .badge-icon {
        font-size: 10px;
        padding: 3px 10px;
    }

    .bpx-af-widget .option-content {
        padding: 12px;
        gap: 12px;
    }

    .bpx-af-widget .followers-badge {
        flex-direction: column-reverse;
    }

    .bpx-af-widget .custom-input {
        width: 100px;
        font-size: 14px;
    }
}

