/* Buttons */
.subscription-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;
}

.primary-button {
    background: linear-gradient(to right, #f6954b, #f9c59d, #f8aa9a);
    color: #000000;
    box-shadow: 0 4px 12px rgba(246, 149, 75, 0.2);
}

.primary-button:hover {
    background: linear-gradient(to right, #f6954b, #f9c59d, #f8aa9a);
    box-shadow: var(--shadow-lg);
}

.outline-button {
    background: transparent;
    border: 2px solid var(--orange-300);
    color: var(--text-primary);
}

.outline-button:hover {
    background: var(--orange-300);
    color: white;
    transform: translateY(-2px);
}

.btn-copy {
    background: var(--green-500);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    padding: 15px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
}

.btn-generate {
    background: var(--tab-bg);
    color: var(--text-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: 15px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
}

/* Cards */
.card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.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: rgba(52, 199, 89, 0.2);
    color: #35c759;
    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);
    /* Softer overlay for light theme */
    z-index: 1010;
    /* Above header */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.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);
}

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

.modal-card {
    padding: 15px;
    background: var(--tab-bg);
    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(--tab-bg);
    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);
    }
}

.offer-card {
    max-width: 820px;
    padding: 20px;
    border-radius: 20px;
    background-color: var(--bg-card);
    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(--bg-bubble);
    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;
}

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

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