/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn--primary {
    background: var(--gradient-primary);
    color: white;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--border-hover);
    color: var(--text-primary);
}

.btn--outline:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.btn--soft {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid transparent;
}

.btn--soft:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn--success {
    background: var(--success);
    color: white;
}

.btn--success:hover {
    background: #0ea5e9;
    /* Light blue or green depending on var(--success), but we can add shadow */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn--purple {
    background: var(--accent-primary);
    color: white;
}

.btn--purple:hover {
    background: #6d28d9;
    /* slightly darker purple */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.btn--discord {
    background: #5865F2;
    color: white;
}

.btn--discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(88, 101, 242, 0.3);
}

.btn--danger {
    background: var(--accent-pink);
    color: white;
}

.btn--danger:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn--white {
    background: white;
    color: #333;
    border: 1px solid #ddd;
}

.btn--white:hover {
    background: #f8f8f8;
    border-color: #ccc;
    transform: translateY(-2px);
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-google img {
    margin-right: 12px;
}

.btn-google:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 10px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.auth-divider:not(:empty)::before {
    margin-right: .5em;
}

.auth-divider:not(:empty)::after {
    margin-left: .5em;
}

.btn--sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn--lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn--full {
    width: 100%;
}

.btn--glow {
    animation: btnGlow 3s ease-in-out infinite;
}

@keyframes btnGlow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(124, 58, 237, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(124, 58, 237, 0.4), 0 0 60px rgba(6, 182, 212, 0.15);
    }
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn:hover::after {
    transform: translateX(100%);
}

/* ==================== PRODUCT CARDS ==================== */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.product-card__image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
}

.product-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Alterado de cover para contain para não esticar cortar e dar zoom */
    padding: 10px;
    /* Um pequeno respiro para não grudar nas bordas caso a proporção seja diferente */
    transition: transform var(--transition-slow);
    z-index: 2;
}

.product-card:hover .product-card__image img {
    transform: scale(1.03);
    /* Reduzido de 1.08 */
}

.product-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    background: var(--accent-pink);
    color: white;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
}

.product-card__category {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 4px 12px;
    background: rgba(10, 10, 15, 0.75);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-secondary);
    z-index: 10;
}

.product-card__content {
    padding: 20px;
}

.product-card__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.product-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.product-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--accent-orange);
}

.product-card__downloads {
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-card__pricing {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-card__price {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-green);
}

.product-card__original-price {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-card__buy {
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.product-card__buy:hover {
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

/* ==================== PLACEHOLDER IMAGES ==================== */
.placeholder-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg,
            rgba(124, 58, 237, 0.15),
            rgba(6, 182, 212, 0.1));
    z-index: 1;
}

.placeholder-image.scripts {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(99, 102, 241, 0.1));
}

.placeholder-image.vehicles {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.1));
}

.placeholder-image.maps {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.1));
}

.placeholder-image.huds {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(251, 191, 36, 0.1));
}

.placeholder-image.servers {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(251, 113, 133, 0.1));
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* ==================== SELECTION ==================== */
::selection {
    background: rgba(124, 58, 237, 0.3);
    color: white;
}

/* ==================== MARKDOWN STYLES (PRODUCT DESCRIPTION) ==================== */
.modal__description {
    line-height: 1.8;
}

.modal__description h1,
.modal__description h2,
.modal__description h3,
.modal__description h4,
.modal__description h5,
.modal__description h6 {
    color: var(--text-primary);
    margin: 1.5em 0 0.5em;
    font-family: var(--font-heading);
}

.modal__description h1 {
    font-size: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.3em;
    margin-top: 0;
}

.modal__description h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.3em;
}

.modal__description p {
    margin-bottom: 1em;
}

.modal__description ul,
.modal__description ol {
    margin: 1em 0;
    padding-left: 2em;
}

.modal__description li {
    margin-bottom: 0.5em;
}

.modal__description a {
    color: var(--accent-primary);
    text-decoration: underline;
}

.modal__description blockquote {
    border-left: 4px solid var(--accent-primary);
    padding-left: 1em;
    margin: 1em 0;
    color: var(--text-muted);
    background: rgba(124, 58, 237, 0.05);
    padding: 10px 15px;
    border-radius: 0 8px 8px 0;
}

.modal__description code {
    background: var(--bg-card);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--accent-pink);
    border: 1px solid var(--border-color);
}

.modal__description pre {
    background: var(--bg-card);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1em 0;
    border: 1px solid var(--border-color);
}

.modal__description pre code {
    background: transparent;
    padding: 0;
    color: var(--text-primary);
    border: none;
}

.modal__description table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.modal__description th,
.modal__description td {
    padding: 12px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.modal__description th {
    background: var(--bg-card);
    font-weight: 600;
}

.modal__description img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1em 0;
}

.modal__description hr {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 2em 0;
}

.modal__description mark {
    background: rgba(245, 158, 11, 0.3);
    color: var(--text-primary);
    padding: 0 4px;
    border-radius: 2px;
}

/* Checklist support */
.modal__description input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--accent-primary);
}

/* ==================== CHECKOUT ENHANCEMENTS ==================== */
    .checkout-progress .progress-step {
        flex: 1;
    }

    .checkout-section-box {
        background: var(--bg-secondary);
        border: 1px solid var(--border);
        border-radius: 20px;
        padding: 30px;
        height: 100%;
        transition: all 0.3s ease;
    }

    .checkout-section-box:hover {
        border-color: var(--border-hover);
    }

    .method-card input:checked+.method-content {
        border-color: var(--accent-primary) !important;
        background: rgba(168, 85, 247, 0.08) !important;
    }

    .method-card input:checked+.method-content div:last-child {
        background: var(--accent-primary) !important;
    }

    .summary-item:last-child {
        border-bottom: none !important;
    }

    /* Spinner Loading */
    .spinner {
        width: 40px;
        height: 40px;
        border: 3px solid rgba(168, 85, 247, 0.1);
        border-top: 3px solid var(--accent-primary);
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    .spinner--sm {
        width: 20px;
        height: 20px;
        border: 2px solid rgba(255, 255, 255, 0.2);
        border-top: 2px solid white;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Mobile Adjustments */
    @media (max-width: 768px) {
        .checkout-grid {
            display: flex;
            flex-direction: column-reverse;
            gap: 30px;
        }

        .checkout-progress {
            margin-bottom: 30px !important;
        }

        .form-row {
            grid-template-columns: 1fr !important;
        }
    }