/* Buttons */
.subscription-button,

.copy-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 3.5rem;
    padding: 0 1.5rem;
    border-radius: var(--radius-full);
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.copy-button {
    justify-content: center;
}

.primary-button {
    background-image: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    box-shadow: 0 4px 12px rgba(246, 149, 75, 0.2);
}

.primary-button:hover {
    filter: brightness(1.1);
    box-shadow: var(--shadow-heavy);
    transform: translateY(-1px);
}

.outline-button {
    background-color: transparent;
    border: 2px solid var(--text-accent);
    color: var(--text-main);
}

.outline-button:hover {
    background-color: var(--text-accent);
    color: var(--text-contrast);
    transform: translateY(-2px);
}

.btn-copy {
    background-color: #00b09b;
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 15px;
    font-weight: 600;
    width: 100%;
}

.btn-generate {
    background-color: var(--surface-tertiary);
    color: var(--text-main);
    border: none;
    border-radius: var(--radius-md);
    padding: 15px;
    font-weight: 600;
    width: 100%;
}

/* Cards */
.card {
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    padding: 1.5rem 1.5rem 0.5rem;
}

.card-body {
    padding: 12px;
}

.oferta-box {
    position: relative;
    margin-top: 10px;
}

.desconto-badge {
    position: absolute;
    top: -10px;
    left: 15px;
    background-color: var(--tab-bg);
    color: #34C759;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: bold;
    z-index: 2;
    border: 1px solid rgba(52, 199, 89, 0.3);
}

.promotions-container {
    margin-top: 20px;
}

.promotion-item {
    margin-top: 10px;
}

/* Modals */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1010;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.show {
    opacity: 1;
}

.modal-content {
    background: var(--bg-modal-content);
    border-radius: var(--radius-xl);
    width: 95%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 24px;
    border: 1px solid var(--border-subtle);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.show .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-card {
    padding: 15px;
    background: var(--surface-primary);
    border-radius: 15px;
}

.modal-price {
    font-weight: 700;
    color: var(--orange-600);
}

.qr-section {
    text-align: center;
    margin-top: 25px;
}

.qr-placeholder {
    background: white;
    padding: 15px;
    border-radius: 15px;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.qr-placeholder-text {
    color: var(--gray-400);
    font-size: 12px;
}

.pix-key-box {
    background: var(--surface-primary);
    padding: 12px;
    border: 1px dashed var(--orange-300);
    border-radius: 8px;
    margin: 20px 0;
    font-size: 11px;
    word-break: break-all;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--tab-bg);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}

/* Utils */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: bold;
    border-radius: var(--radius-full);
    background: var(--orange-100);
    color: var(--orange-800);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(249, 115, 22, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
    }
}

/* Skeleton Loader Refined */
.skeleton {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg,
            var(--surface-primary) 0%,
            var(--surface-secondary) 50%,
            var(--surface-primary) 100%);
    background-size: 200% 100%;
    animation: skeleton-loading-soft 2s infinite ease-in-out;
}

.qr-skeleton-shape {
    border-radius: 10px;
    inset: 0;
    position: absolute;
    box-shadow: inset 0 0 0 1px var(--border-subtle);
}

@keyframes skeleton-loading-soft {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Animations Utility */
@media (prefers-reduced-motion: no-preference) {
    .animate-fade-in {
        animation: fadeIn 0.4s ease forwards;
        opacity: 0;
    }

    .animate-scale-up {
        animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
        opacity: 0;
        transform: scale(0.9);
    }

    .animate-draw-check {
        stroke-dasharray: 50;
        stroke-dashoffset: 50;
        animation: drawCheck 0.6s 0.2s cubic-bezier(0.65, 0, 0.45, 1) forwards;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(5px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes scaleUp {
        from {
            opacity: 0;
            transform: scale(0.9);
        }

        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    @keyframes drawCheck {
        to {
            stroke-dashoffset: 0;
        }
    }
}

/* Success State */
.success-icon-container {
    width: 80px;
    height: 80px;
    background: #F0F9EB;
    color: #35C759;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 0 0 rgba(53, 199, 89, 0.4);
    animation: successPulse 2s infinite ease-out 1s;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(53, 199, 89, 0.4);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(53, 199, 89, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(53, 199, 89, 0);
    }
}

.success-icon {
    width: 40px;
    height: 40px;
}

.success-title {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.success-message {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 20px;
}

/* Benefits List in PIX Modal */
.benefits-container {
    background: var(--surface-primary);
    padding: 18px;
    border-radius: var(--radius-lg);
    margin: 20px 0;
    text-align: left;
    border: 1px solid var(--border-subtle);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.benefit-item:last-child {
    margin-bottom: 0;
}

.benefit-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #35C759;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--surface-overlay);
    color: var(--text-main);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-heavy);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    z-index: 2000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
    opacity: 0;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Copy Button Success State */
.copy-button.copy-success {
    background: #35C759 !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(53, 199, 89, 0.4);
    transform: scale(0.98);
}

.offer-card {
    max-width: 820px;
    padding: 8px;
    border-radius: 20px;
    background-color: var(--surface-primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

/* Header */
.offer-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.gradient-icon {
    width: 18px;
    height: 18px;
    color: #f6842c;
}

.offer-title {
    line-height: 1;
}

/* Message */
.offer-message {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 42px;
}

.avatar {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.message-bubble {
    width: 100%;
    background: var(--surface-secondary);
    padding: 12px 16px;
    border-radius: 16px;
    font-size: .95rem;
    line-height: 1.4;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

/* Action */
.offer-action {
    position: relative;
    z-index: 5;
    transition: z-index 0.3s;
}

.offer-card:hover .offer-action,
.offer-action:hover {
    z-index: 10;
}

/* Badge */
.discount-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: #F0F9EB;
    color: #35C759;
    font-weight: 600;
    font-size: .8rem;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(52, 199, 89, 0.3);
    z-index: 15;
}

/* Original price */
.original-price {
    margin-top: 10px;
    text-align: right;
    font-size: .9rem;
    opacity: .8;
}