:root {
    --primary-green: #5eb85e;
    --primary-green-hover: #4cae4c;
    --bg-selected: #f0fdf4;
    --border-selected: #5eb85e;
    --text-dark: #333;
    --text-muted: #666;
    --border-color: #ddd;
}

.section-assinatura-v2 {
    padding: 40px 0;
    background-color: #fff;
    font-family: 'Inter', sans-serif;
}

.page-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.header-title-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.status-box {
    background-color: #fcf8e3;
    border: 1px solid #faebcc;
    color: #8a6d3b;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-box.status-box-empty {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border: 1px solid #dbeafe;
    color: var(--text-dark);
    border-radius: 12px;
    padding: 14px 16px;
    align-items: flex-start;
}

.status-empty-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--cor-primaria, var(--primary-green));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.14);
}

.status-empty-content {
    line-height: 1.35;
}

.status-empty-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.status-empty-text {
    font-size: 13px;
    color: var(--text-muted);
}

.plans-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 16px;
    margin-bottom: 50px;
    align-items: stretch;
}

@media (min-width: 768px) {
    .plans-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

.plan-card {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    z-index: 1;
}

.plan-card:hover {
    border-color: var(--primary-green);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.10);
}

.plan-card.active {
    border-color: var(--primary-green);
    background-color: var(--bg-selected);
    border-width: 2px;
}

.plans-grid:has(.plan-details[open]) .plan-card {
    opacity: 0.35;
    filter: grayscale(0.1);
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.plans-grid:has(.plan-details[open]) .plan-card:has(.plan-details[open]) {
    opacity: 1;
    filter: none;
    pointer-events: auto;
    z-index: 6;
}

.plan-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.plan-footer {
    margin-top: 10px;
}

.plan-footer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.plan-main-content header {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 8px;
}

.plan-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.plan-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.plan-apres {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 10px;
    margin-bottom: 15px;
}

.plan-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.plan-desc.plan-details-content {
    color: var(--text-dark);
}

.plan-details {
    margin-top: 0;
    margin-left: auto;
    order: 2;
    position: static;
}

.plan-details summary {
    list-style: none;
    cursor: pointer;
    color: var(--cor-primaria, var(--primary-green));
    font-size: 13px;
    font-weight: 600;
    user-select: none;
    text-align: right;
    white-space: nowrap;
}

.plan-details summary::-webkit-details-marker {
    display: none;
}

.plan-details[open] summary .label-ver-mais {
    display: none;
}

.plan-details:not([open]) summary .label-ver-menos {
    display: none;
}

.plan-details-content {
    margin-top: 8px;
    background: #fff;
    border: 2px solid rgba(15, 23, 42, 0.22);
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
    padding: 10px 12px;
    max-height: 220px;
    overflow-y: auto;
}

.plan-details[open] {
    z-index: 4;
}

.plan-price {
    order: 1;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.plan-details[open] .plan-details-content {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    width: auto;
    box-sizing: border-box;
}

.plan-details[open] .plan-details-content::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 16px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
}

.plan-price small {
    font-weight: 400;
    color: var(--text-muted);
}

.checkout-container {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    background: #fff;
    margin-top: 30px;
}

.checkout-title {
    font-size: 18px;
    font-weight: 600;
    margin-top: -5px;
    margin-bottom: 25px;
    color: var(--text-dark);
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.payment-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
    color: var(--text-dark);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-method-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.payment-method-option.selected {
    border-color: var(--primary-green);
    background-color: var(--bg-selected);
}

.payment-method-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-dark);
}

.badge-discount {
    background-color: #eee;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    color: #555;
    font-weight: 600;
}

.card-form-grid {
    margin-left: 20px;
    padding-left: 50px;
    border-left: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .card-form-grid {
        margin-left: 0;
        margin-top: 30px;
        padding-left: 0;
        border-left: none;
    }
}

.form-group-custom {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.form-control-custom {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-control-custom:focus {
    border-color: var(--primary-green);
    outline: none;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-col {
    flex: 1;
}

.btn-pay {
    background-color: var(--primary-green);
    color: #fff;
    border: none;
    width: 100%;
    padding: 15px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.2s;
}

.btn-pay:hover {
    background-color: var(--primary-green-hover);
}

.btn-pay.disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.secure-footer {
    margin-top: 15px;
    text-align: center;
    color: #888;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.pix-area {
    text-align: center;
    padding: 20px;
    border: 1px dashed #ccc;
    border-radius: 8px;
    background: #fafafa;
}
