/* ===== ANTI-FLASH SYSTEM - ADICIONAR NO INÍCIO DO CSS ===== */
/* Previne o "piscar" do resumo durante o carregamento */

/* Esconder resumo inicialmente até o JavaScript estar pronto */
#producttotal {
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
    min-height: 200px !important;
    background: #f8fafc !important;
    position: relative !important;
}

/* Mostrar loader enquanto carrega */
#producttotal::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 30px !important;
    height: 30px !important;
    border: 3px solid #e2e8f0 !important;
    border-top: 3px solid #1063fe !important;
    border-radius: 50% !important;
    animation: neexo-spinner 1s linear infinite !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10 !important;
}

/* Animação do loader */
@keyframes neexo-spinner {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Quando o JavaScript estiver pronto, mostrar com transição suave */
#producttotal.neexo-ready {
    opacity: 1 !important;
}

/* Esconder loader quando pronto */
#producttotal.neexo-ready::before {
    display: none !important;
}

/* Esconder elementos específicos do WHMCS até estar pronto */
#producttotal:not(.neexo-ready) .total-due-today,
#producttotal:not(.neexo-ready) .clearfix,
#producttotal:not(.neexo-ready) .summary-totals {
    opacity: 0 !important;
}

/* ===== FIM DO ANTI-FLASH SYSTEM ===== */

/* ================================================
   NEEXO THEME - LAGOM STYLE CONFIGURATION PAGE
   ================================================ */

:root {
    --primary-color: #1063fe;
    --primary-hover: #0d52d9;
    --primary-light: #e8f2ff;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --border-color: #e2e8f0;
    --background-light: #f7fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 4px;
    --border-radius-sm: 3px;
    --card-height: 200px;
    --grid-gap: 20px;
    --section-gap: 30px;
}

/* Reset and Base Styles */
.neexo-configure-product {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
}

.neexo-configure-product * {
    box-sizing: border-box;
}

/* ================================================
   FORÇAR LARGURA DO LAYOUT - SOBRESCREVER WHMCS
   ================================================ */

.container,
.container-fluid,
#main-body .container,
#main-body .container-fluid,
.neexo-configure-product .container-fluid,
body .container,
body .container-fluid {
    max-width: 1400px !important;
    margin: 0 auto !important;
}

.neexo-configure-product .container-fluid {
    padding: 0 30px;
}

.neexo-configure-product .row {
    margin: 0;
}

.neexo-configure-product .main-content {
    padding: 20px 15px 20px 0;
}

.neexo-configure-product .sidebar-content {
    padding: 20px 0 20px 15px;
}

/* Header Section */
.header-section {
    margin-bottom: 40px;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.product-info-header {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.product-name {
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Configuration Sections */
.config-section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: var(--section-gap);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.section-title:before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--primary-color);
    margin-right: 12px;
    border-radius: 2px;
}

.section-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.85rem;
}

/* Billing Cycles Grid */
.billing-cycles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--grid-gap);
    margin-top: var(--grid-gap);
}

.billing-cycle-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 14px 22px 14px !important;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: var(--card-height) !important;
    max-height: var(--card-height) !important;
    height: var(--card-height) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

.billing-cycle-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.billing-cycle-card.selected {
    border-color: var(--primary-color);
    background: var(--primary-light);
    box-shadow: var(--shadow-md);
}

/* Ícone do canto removido pelo instalador NEEXO */

.cycle-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.cycle-name {
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.cycle-price {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--primary-color);
}

/* Configurable Options Grid */
.config-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
    margin-top: var(--grid-gap);
}

/* Radio Options */
.configurable-option-section {
    margin-bottom: var(--section-gap);
}

.option-title {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.option-title:before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary-color);
    margin-right: 12px;
    border-radius: 2px;
}

.radio-option-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1px 20px !important;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: var(--card-height) !important;
    max-height: var(--card-height) !important;
    height: var(--card-height) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

.radio-option-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.radio-option-card.selected {
    border-color: var(--primary-color);
    background: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.radio-option-card.selected:before {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

.radio-option-card .option-image {
    width: 90px !important;
    height: 90px !important;
    margin: 0 auto -3px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
}

.radio-option-card .option-image img {
    max-width: 70px !important;
    max-height: 70px !important;
    object-fit: contain;
    transition: all 0.3s ease;
}

.radio-option-card .option-name {
    font-weight: 300 !important;
    color: var(--text-primary) !important;
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
    margin: 0 0 -6px 0 !important;
}

.radio-option-card .option-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
    opacity: 0.8;
}

/* Config Group Cards */
.config-group-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    min-height: var(--card-height) !important;
    max-height: var(--card-height) !important;
    height: var(--card-height) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.config-group-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.config-group-header {
    background: var(--white);
    padding: 1px 20px 4px !important;
    text-align: center;
    flex-grow: 1;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

.config-group-image {
    width: 90px !important;
    height: 90px !important;
    margin: 0 auto -3px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
}

.config-group-image img {
    max-width: 70px !important;
    max-height: 70px !important;
    object-fit: contain;
    transition: all 0.3s ease;
}

.config-group-name {
    font-size: 0.95rem !important;
    font-weight: 300 !important;
    color: var(--text-primary) !important;
    margin: 0 0 -6px 0 !important;
    line-height: 1.3 !important;
}

.config-group-content {
    padding: 0 15px 18px !important;
    background: transparent;
    border-top: none;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 32px !important;
    overflow: hidden;
    text-align: center;
}

/* Select Wrapper */
.select-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    max-width: 100%;
    text-align: center;
    position: relative;
    cursor: pointer;
    width: auto;
    margin: 0;
}

.select-wrapper:hover {
    color: var(--primary-color);
}

.select-wrapper::after {
    content: '';
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 12px;
    flex: 0 0 12px;
    pointer-events: none;
    margin-left: -2px;
}

.select-wrapper:hover::after {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231063fe' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

.select-wrapper::before {
    content: '' !important;
    position: absolute !important;
    right: -10px !important;
    top: -10px !important;
    width: 30px !important;
    height: 40px !important;
    cursor: pointer !important;
    z-index: 10 !important;
    background: transparent !important;
}

/* Select Styling */
.config-group-select {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    font-size: 0.80rem !important;
    font-weight: 300;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    appearance: none;
    cursor: pointer;
    min-height: 26px;
    max-height: 30px;
    line-height: 1.2;
    box-shadow: none !important;
    outline: none !important;
    text-align: center;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: auto;
    min-width: 60px;
    max-width: 155px !important;
}

.config-group-select:hover,
.config-group-select:focus,
.config-group-select:active {
    color: var(--primary-color);
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.config-group-select option {
    padding: 8px 12px;
    font-weight: 300;
    font-size: 0.80rem !important;
    color: var(--text-primary);
    background: var(--white) !important;
    border: none;
    line-height: 1.4;
    text-align: left !important;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

/* Default Icon */
.default-icon {
    font-size: 2.6rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 70px !important;
    height: 70px !important;
    color: var(--text-secondary);
    background: transparent;
    border-radius: var(--border-radius-sm);
    margin: 0 auto !important;
}

.radio-option-card:hover .default-icon,
.config-group-card:hover .default-icon,
.radio-option-card.selected .default-icon {
    color: var(--primary-color);
}

/* Checkbox Group */
.config-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.config-checkbox-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.config-checkbox-option:hover .checkbox-label {
    color: var(--primary-color);
}

.config-checkbox-option input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.config-checkbox-option input[type="checkbox"]:checked + .checkbox-custom {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.config-checkbox-option input[type="checkbox"]:checked + .checkbox-custom:after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-label {
    font-weight: 400;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Quantity Group */
.config-quantity-group {
    margin-top: 10px;
}

.quantity-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-input-wrapper .form-control {
    width: 80px;
    text-align: center;
}

.quantity-label {
    font-weight: 400;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Server Configuration */
.server-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--grid-gap);
    margin-top: var(--grid-gap);
}

.config-input-group {
    display: flex;
    flex-direction: column;
}

.config-input-group label {
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.config-input-group .form-control {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.config-input-group .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 99, 254, 0.1);
    outline: none;
}

/* Custom Fields */
.custom-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--grid-gap);
    margin-top: var(--grid-gap);
}

.custom-field-group {
    display: flex;
    flex-direction: column;
}

.custom-field-group label {
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.field-help {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 6px;
}

/* Addons */
.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--grid-gap);
    margin-top: var(--grid-gap);
}

.addon-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.addon-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.addon-card.selected {
    border-color: var(--primary-color);
    background: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.addon-content {
    padding: 20px;
}

.addon-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.addon-name {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.addon-price {
    font-weight: 500;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-left: 10px;
}

.addon-description {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
}

.addon-action {
    background: var(--background-light);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.addon-card.selected .addon-action {
    background: var(--primary-color);
    color: white;
}

.addon-card.selected .addon-action .addon-icon:before {
    content: '✓';
}

/* Metrics */
.metrics-list {
    margin-top: var(--grid-gap);
}

.metric-item {
    background: var(--background-light);
    border-radius: var(--border-radius-sm);
    padding: 18px 20px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-name {
    font-weight: 400;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.metric-pricing {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Help Section */
.help-section {
    margin-top: var(--section-gap);
}

.help-card {
    background: var(--primary-light);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--primary-color);
}

.help-card i {
    font-size: 1.2rem;
}

.help-card a {
    color: var(--primary-color);
    font-weight: 400;
    text-decoration: none;
}

.help-card a:hover {
    text-decoration: underline;
}

/* Order Summary */
.order-summary-sticky {
    position: sticky;
    top: 20px;
    z-index: 100;
}

.order-summary-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.summary-title {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 400;
    text-align: center;
}

.summary-content {
    padding: 20px;
    min-height: 200px;
}

.summary-actions {
    padding: 20px;
    background: var(--background-light);
    border-top: 1px solid var(--border-color);
}

.summary-actions .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: var(--border-radius-sm);
    padding: 15px 30px;
    font-weight: 400;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.summary-actions .btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Loader */
#orderSummaryLoader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Form Controls */
.neexo-configure-product .form-control {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 10px 16px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.neexo-configure-product .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 99, 254, 0.1);
    outline: none;
}

.neexo-configure-product .btn {
    border-radius: var(--border-radius-sm);
    font-weight: 400;
    transition: all 0.3s ease;
}

.neexo-configure-product .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.neexo-configure-product .btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.neexo-configure-product .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.neexo-configure-product .btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Alerts */
.neexo-configure-product .alert {
    border-radius: var(--border-radius-sm);
    border: none;
    padding: 15px 20px;
}

.neexo-configure-product .alert-danger {
    background: #fed7d7;
    color: #9b2c2c;
}

.neexo-configure-product .alert-warning {
    background: #fefcbf;
    color: #975a16;
}

/* Hidden Elements */
.d-none {
    display: none !important;
}

/* Animation */
.config-section {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SISTEMA ÚNICO DE MELHORIAS DO RESUMO ===== */
/* Proteção máxima contra sobrescrita do WHMCS (versão única e limpa) */

/* Valor do pagamento - fonte grande */
.linha-valor-pagamento-scroll {
    font-size: 36px !important;
    font-weight: 700 !important;
    color: rgb(23, 25, 28) !important;
    font-family: Roboto, sans-serif !important;
    line-height: 1.2 !important;
    text-align: left !important;
    margin: 0 !important;
    display: block !important;
    width: 100% !important;
}

/* Texto "Pagamento Hoje" - fonte pequena */
.linha-texto-pagamento-hoje {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: rgb(94, 99, 110) !important;
    font-family: Roboto, sans-serif !important;
    line-height: 1.4 !important;
    text-align: left !important;
    margin-bottom: 8px !important;
    display: block !important;
    width: 100% !important;
}

/* Container dos produtos com scroll */
#produtos-scroll-container {
    max-height: 160px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px !important;
    margin: 8px 0 !important;
    padding: 8px !important;
    background: #fafafa !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1) !important;
}

#produtos-scroll-container::-webkit-scrollbar {
    width: 6px !important;
}

#produtos-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 3px !important;
}

#produtos-scroll-container::-webkit-scrollbar-thumb {
    background: #c1c1c1 !important;
    border-radius: 3px !important;
}

/* Layout dos produtos na lista */
#produtos-lista .clearfix {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 3px !important;
    padding: 2px 4px !important;
    font-size: 11px !important;
    background: white !important;
    border-radius: 2px !important;
    border: 1px solid #f0f0f0 !important;
}

#produtos-lista .pull-left,
#produtos-lista .float-left {
    text-align: left !important;
    flex: 1 !important;
    font-size: 11px !important;
}

#produtos-lista .pull-right,
#produtos-lista .float-right {
    text-align: right !important;
    margin-left: 8px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #1063fe !important;
}

#custos-adicionais-fixo .clearfix {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 4px !important;
    font-size: 12px !important;
}

#custos-adicionais-fixo .pull-left,
#custos-adicionais-fixo .float-left {
    text-align: left !important;
    flex: 1 !important;
}

#custos-adicionais-fixo .pull-right,
#custos-adicionais-fixo .float-right {
    text-align: right !important;
    margin-left: 10px !important;
}

/* Área do pagamento final */
#pagamento-hoje-final {
    padding: 15px 0 0 0 !important;
    border-top: 1px solid #e2e8f0 !important;
    margin-top: 15px !important;
}

/* Interceptar tentativas do WHMCS de aplicar 12px */
#producttotal[style*="font-size: 12px"] .linha-valor-pagamento-scroll {
    font-size: 36px !important;
    color: rgb(23, 25, 28) !important;
    font-family: Roboto, sans-serif !important;
}

#producttotal[style*="font-size: 12px"] .linha-texto-pagamento-hoje {
    font-size: 13px !important;
    color: rgb(94, 99, 110) !important;
    font-family: Roboto, sans-serif !important;
}

/* Ícone do botão Continuar (à esquerda) */
#btnCompleteProductConfig {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: row !important;
}

#btnCompleteProductConfig .fa-share {
    order: -1 !important;
    margin-right: 8px !important;
    margin-left: 0 !important;
    font-size: 1em !important;
}

/* Range Slider */
.neexo-configure-product .irs {
    font-family: inherit;
}

.neexo-configure-product .irs--modern .irs-bar,
.neexo-configure-product .irs--modern .irs-handle {
    background: var(--primary-color);
}

.neexo-configure-product .irs--modern .irs-handle:hover {
    background: var(--primary-hover);
}

/* Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    :root {
        --card-height: 180px;
        --grid-gap: 15px;
        --section-gap: 20px;
    }
    
    .neexo-configure-product .container-fluid {
        padding: 15px;
    }
    
    .neexo-configure-product .main-content,
    .neexo-configure-product .sidebar-content {
        padding: 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .product-info-header {
        padding: 20px;
    }
    
    .config-section {
        padding: 20px;
        margin-bottom: var(--section-gap);
    }
    
    .billing-cycles-grid,
    .config-options-grid,
    .server-config-grid,
    .custom-fields-grid,
    .addons-grid {
        grid-template-columns: 1fr;
        gap: var(--grid-gap);
    }
    
    .order-summary-sticky {
        position: relative;
        top: auto;
        margin-top: var(--section-gap);
    }
    
    .addon-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .addon-price {
        margin-left: 0;
    }
    
    .config-group-header {
        padding: 15px 15px 6px !important;
    }
    
    .config-group-image,
    .radio-option-card .option-image {
        width: 75px !important;
        height: 75px !important;
        margin-bottom: 4px !important;
    }
    
    .config-group-image img,
    .radio-option-card .option-image img {
        max-width: 58px !important;
        max-height: 58px !important;
    }
    
    .config-group-content {
        padding: 0 12px 15px !important;
        min-height: 35px !important;
    }
    
    .radio-option-card {
        padding: 15px !important;
    }
    
    .default-icon {
        font-size: 2.2rem !important;
        width: 58px !important;
        height: 58px !important;
    }
    
    .select-wrapper {
        max-width: 90%;
        gap: 6px;
    }
    
    .select-wrapper::after {
        width: 14px;
        height: 14px;
        background-size: 14px;
        right: -3px;
    }
    
    .select-wrapper::before {
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
    }
    
    .config-group-select {
        font-size: 0.7rem;
        padding: 0 18px 0 0 !important;
    }
    
    .config-group-select option {
        font-size: 0.7rem;
    }
    
    /* Resumo responsivo */
    .linha-valor-pagamento-scroll {
        font-size: 26px !important;
    }
    
    .linha-texto-pagamento-hoje {
        font-size: 12px !important;
    }
    
    #produtos-scroll-container {
        max-height: 140px !important;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .config-options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    :root {
        --card-height: 160px;
        --grid-gap: 12px;
        --section-gap: 18px;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .option-title {
        font-size: 1.1rem;
    }
    
    .config-section {
        padding: 15px;
    }
    
    .summary-actions .btn-primary {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .config-group-image,
    .radio-option-card .option-image {
        width: 65px !important;
        height: 65px !important;
        margin-bottom: 4px !important;
    }
    
    .config-group-image img,
    .radio-option-card .option-image img {
        max-width: 50px !important;
        max-height: 50px !important;
    }
    
    .config-group-content {
        min-height: 30px !important;
        padding: 0 10px 12px !important;
    }
    
    .radio-option-card {
        padding: 12px 15px !important;
    }
    
    .default-icon {
        font-size: 1.8rem !important;
        width: 50px !important;
        height: 50px !important;
    }
    
    .select-wrapper {
        max-width: 98%;
        gap: 2px;
    }
    
    .select-wrapper::after {
        width: 10px;
        height: 10px;
        background-size: 10px;
        margin-left: 1px;
    }
    
    .select-wrapper::before {
        top: -6px;
        left: -6px;
        right: -6px;
        bottom: -6px;
    }
    
    .config-group-select {
        font-size: 0.58rem;
        min-height: 22px;
        max-height: 26px;
    }
    
    .config-group-select option {
        font-size: 0.58rem;
    }
    
    .radio-option-card .option-name,
    .config-group-name {
        font-size: 0.85rem !important;
        font-weight: 300 !important;
    }
    
    .addon-name {
        font-size: 0.9rem;
    }
    
    .addon-description {
        font-size: 0.75rem;
    }
    
    .addon-price {
        font-size: 0.85rem;
    }
    
    /* Resumo extra pequeno */
    .linha-valor-pagamento-scroll {
        font-size: 22px !important;
    }
    
    .linha-texto-pagamento-hoje {
        font-size: 11px !important;
    }
    
    #produtos-scroll-container {
        max-height: 120px !important;
    }
}

/* ===== PRODUCT STRUCTURE - RESUMO DO PEDIDO ===== */
.product-group-summary,
.separator-summary,
.product-name-summary {
    color: rgb(23, 25, 28) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    line-height: 1.4 !important;
    display: inline !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.separator-summary {
    margin: 0 !important;
}

/* ===== 3. ARQUIVO: configureproduct.tpl - ADICIONAR JAVASCRIPT ===== */

/* LOCALIZAR o final do arquivo, antes de {include file="orderforms/standard_cart/recommendations-modal.tpl"} */

/* ADICIONAR este JavaScript: */

<script>
// ===== NEEXO - REORGANIZAÇÃO AUTOMÁTICA DO RESUMO =====
function reorganizarResumoAutomatico() {
    try {
        console.log("🎯 NEEXO: Reorganizando resumo do pedido...");
        
        // Encontrar container do resumo
        const possibleContainers = ['#producttotal', '.order-summary-card', '.summary-content'];
        let summaryContainer = null;
        
        for (let selector of possibleContainers) {
            const container = document.querySelector(selector);
            if (container) {
                const productName = container.querySelector('.product-name, span.product-name');
                const productGroup = container.querySelector('.product-group, span.product-group');
                
                if (productName || productGroup) {
                    summaryContainer = container;
                    break;
                }
            }
        }
        
        if (!summaryContainer) {
            console.log("ℹ️ NEEXO: Resumo não encontrado, tentando novamente...");
            return false;
        }
        
        // Encontrar elementos específicos
        const summaryProductName = summaryContainer.querySelector('.product-name, span.product-name');
        const summaryProductGroup = summaryContainer.querySelector('.product-group, span.product-group');
        
        if (!summaryProductName && !summaryProductGroup) {
            console.log("ℹ️ NEEXO: Elementos não encontrados, tentando novamente...");
            return false;
        }
        
        // Obter textos
        const nameText = summaryProductName ? summaryProductName.textContent.trim() : "Número DID Fixo";
        const groupText = summaryProductGroup ? summaryProductGroup.textContent.trim() : "VoIP";
        
        // Verificar se já foi reorganizado
        if (summaryContainer.querySelector('.product-group-summary')) {
            console.log("ℹ️ NEEXO: Resumo já reorganizado");
            return true;
        }
        
        // Criar nova estrutura
        const newSummaryStructure = `<span class="product-group-summary">${groupText}</span><span class="separator-summary"> - </span><span class="product-name-summary">${nameText}</span>`;
        
        // Substituir elementos
        if (summaryProductName && summaryProductGroup) {
            summaryProductName.outerHTML = newSummaryStructure;
            summaryProductGroup.remove();
        } else if (summaryProductName) {
            summaryProductName.outerHTML = newSummaryStructure;
        } else if (summaryProductGroup) {
            summaryProductGroup.outerHTML = newSummaryStructure;
        }
        
        console.log(`✅ NEEXO: Resumo reorganizado para "${groupText} - ${nameText}"`);
        return true;
        
    } catch (error) {
        console.log("⚠️ NEEXO: Erro na reorganização:", error);
        return false;
    }
}

// Executar quando DOM estiver pronto
$(document).ready(function() {
    // Tentar reorganizar imediatamente
    setTimeout(reorganizarResumoAutomatico, 500);
    
    // Tentar novamente se não funcionou (para casos de loading lento)
    setTimeout(function() {
        if (!document.querySelector('.product-group-summary')) {
            reorganizarResumoAutomatico();
        }
    }, 2000);
    
    // Monitorar mudanças no resumo (quando recalcula totais)
    const observer = new MutationObserver(function(mutations) {
        mutations.forEach(function(mutation) {
            if (mutation.target.id === 'producttotal' || 
                mutation.target.classList.contains('summary-content')) {
                
                setTimeout(function() {
                    if (!document.querySelector('.product-group-summary')) {
                        reorganizarResumoAutomatico();
                    }
                }, 100);
            }
        });
    });
    
    // Observar o container do resumo
    const resumoContainer = document.getElementById('producttotal');
    if (resumoContainer) {
        observer.observe(resumoContainer, { childList: true, subtree: true });
    }
});
</script>

/* ===== ESTRUTURA FINAL DOS ARQUIVOS ===== */

/*
RESUMO DAS MUDANÇAS:

1. configureproduct.tpl (linha ~17):
   - Remover descrição fake do título
   - Adicionar JavaScript no final

2. custom.css (final do arquivo):
   - Adicionar estilos para .product-group-summary, .separator-summary, .product-name-summary

RESULTADO:
- Título: "Número DID Fixo" (sem descrição fake)
- Resumo: "VoIP - Número DID Fixo" (ordem correta, estilos corretos)
- Automático: Funciona sem precisar de debug no console
*/

/* ===== SISTEMA DE DESCONTOS NEEXO - ESTILOS DEFINITIVOS ===== */

/* Cards de ciclo - estilos principais */
.billing-cycle-card .cycle-name {
    font-size: 17px !important;
    font-weight: 500 !important;
    color: #2d3748 !important;
    margin-bottom: 6px !important;
}

.billing-cycle-card .cycle-price {
    font-size: 26px !important;
    font-weight: 400 !important;
    color: #1063fe !important;
    margin: 2px 0 4px 0 !important;
}

/* Informações de desconto */
.discount-info {
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 2px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.discount-info .price-crossed {
    color: #dc3545;
    text-decoration: line-through;
}

.discount-info .discount-badge {
    background: #ffebee;
    color: #dc3545;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #ffcdd2;
}

/* Texto "por mês" */
.monthly-equivalent {
    color: #6c757d !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    margin-top: 1px !important;
    text-align: center !important;
}

/* Animações suaves para mudanças */
.billing-cycle-card .cycle-price,
.discount-info,
.monthly-equivalent {
    transition: all 0.2s ease !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .billing-cycle-card .cycle-name {
        font-size: 15px !important;
        margin-bottom: 6px !important;
    }
    
    .billing-cycle-card .cycle-price {
        font-size: 22px !important;
        margin: 3px 0 1px 0 !important;
    }
    
    .monthly-equivalent {
        font-size: 12px !important;
        margin-top: 1px !important;
    }
    
    .discount-info {
        font-size: 0.7rem;
        gap: 4px;
        margin-bottom: 1px;
    }
    
    .discount-info .discount-badge {
        font-size: 0.65rem;
        padding: 1px 4px;
    }
}

@media (max-width: 576px) {
    .billing-cycle-card .cycle-name {
        font-size: 14px !important;
    }
    
    .billing-cycle-card .cycle-price {
        font-size: 20px !important;
    }
    
    .monthly-equivalent {
        font-size: 11px !important;
    }
}

/* ===== PROTEÇÃO INSTANTÂNEA CONTRA VALORES ZERADOS ===== */

/* Esconder valores zerados IMEDIATAMENTE via CSS puro */
.billing-cycle-card .cycle-price:not(.neexo-ready) {
    opacity: 0 !important;
}

.billing-cycle-card .cycle-name:not(.neexo-ready) {
    opacity: 0 !important;
}

/* Esconder especificamente textos que contenham valores zerados */
.billing-cycle-card .cycle-price[class*="0,00"],
.billing-cycle-card .cycle-price[class*="0.00"],
.billing-cycle-card .cycle-price:not([class]):empty,
.billing-cycle-card .cycle-price:not([class]):contains("R$0") {
    opacity: 0 !important;
}

/* CSS para detectar valores zerados */
.billing-cycle-card .cycle-price {
    transition: opacity 0.3s ease !important;
}

/* Aplicar loading automaticamente aos cards até serem processados */
.billing-cycle-card:not(.neexo-processed) {
    background: #fafbfc !important;
    border-color: #e2e8f0 !important;
    position: relative;
    pointer-events: none;
}

.billing-cycle-card:not(.neexo-processed) .cycle-name,
.billing-cycle-card:not(.neexo-processed) .cycle-price {
    opacity: 0 !important;
}


@keyframes neexo-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estados do card */
.billing-cycle-card.neexo-loading {
    background: #fafbfc !important;
    border-color: #e2e8f0 !important;
}

.billing-cycle-card.neexo-loaded {
    background: var(--white) !important;
    transition: all 0.2s ease !important;
}

/* Responsividade do skeleton */
@media (max-width: 768px) {
    .neexo-skeleton-title {
        height: 16px;
        margin-bottom: 10px;
    }
    
    .neexo-skeleton-price {
        height: 24px;
        margin-bottom: 6px;
    }
    
    .neexo-skeleton-monthly {
        height: 12px;
    }
    
    .neexo-loading-indicator {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 576px) {
    .neexo-skeleton-title {
        height: 14px;
        margin-bottom: 8px;
    }
    
    .neexo-skeleton-price {
        height: 20px;
        margin-bottom: 4px;
    }
    
    .neexo-skeleton-monthly {
        height: 10px;
    }
}



























/* ===== CARDS DE OPÇÕES CONFIGURÁVEIS ATIVOS ===== */
/* Estado padrão dos cards de configuração */
.config-group-card {
    position: relative;
    transition: all 0.2s ease !important;
    border: 1px solid var(--border-color) !important;
}

/* Estado ativo quando valor selecionado > 0.01 */
.config-group-card.neexo-active {
    border: 1px solid #1063fe !important;
    box-shadow: 0 0 0 3px rgba(16, 99, 254, 0.1) !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%) !important;
    transform: translateY(-2px) !important;
}

.config-group-card.neexo-active:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 12px rgba(16, 99, 254, 0.15) !important;
}

/* Ícone de lixeira azul para remover seleção */
.neexo-remove-selection {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 24px !important; /* AUMENTADO de 20px para 24px */
    height: 24px !important; /* AUMENTADO de 20px para 24px */
    color: #1063fe !important; /* AZUL */
    cursor: pointer !important;
    font-size: 16px !important; /* AUMENTADO de 14px para 16px */
    font-weight: normal !important; /* FORÇAR normal */
    z-index: 999 !important; /* AUMENTADO para garantir visibilidade */
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    user-select: none !important;
    background: rgba(255, 255, 255, 0.95) !important; /* ADICIONADO fundo branco */
    border-radius: 50% !important; /* ADICIONADO formato circular */
    box-shadow: 0 2px 6px rgba(16, 99, 254, 0.25) !important; /* ADICIONADO shadow azul */
    border: 1px solid rgba(16, 99, 254, 0.2) !important; /* ADICIONADO borda azul sutil */
}

.neexo-remove-selection:hover {
    color: #0d52d9 !important; /* AZUL ESCURO */
    transform: scale(1.3) !important; /* AUMENTADO de 1.2 para 1.3 */
    background: rgba(255, 255, 255, 1) !important; /* FUNDO branco sólido no hover */
    box-shadow: 0 4px 12px rgba(16, 99, 254, 0.4) !important; /* SHADOW mais forte e AZUL */
    border: 1px solid rgba(16, 99, 254, 0.4) !important; /* BORDA azul mais forte */
    text-shadow: none !important; /* REMOVIDO text-shadow problemático */
}

.neexo-remove-selection i {
    font-size: 14px !important; /* TAMANHO específico do ícone FontAwesome */
    line-height: 1 !important;
    font-weight: normal !important; /* FORÇAR normal no ícone */
    color: inherit !important; /* HERDAR cor do pai */
}

/* Mostrar ícone quando card está ativo */
.config-group-card.neexo-active .neexo-remove-selection {
    opacity: 1 !important;
    transform: scale(1) !important;
    visibility: visible !important; /* ADICIONADO para garantir visibilidade */
}

/* Sobreescrever qualquer CSS do FontAwesome que possa interferir */
.neexo-remove-selection .fas,
.neexo-remove-selection .fa,
.neexo-remove-selection i[class*="fa-"] {
    color: #1063fe !important;
    font-weight: normal !important;
    font-size: 14px !important;
}

.neexo-remove-selection:hover .fas,
.neexo-remove-selection:hover .fa,
.neexo-remove-selection:hover i[class*="fa-"] {
    color: #0d52d9 !important;
}

/* Animação de pulso para indicar ativação */
.config-group-card.neexo-just-activated {
    animation: neexo-activation-pulse 0.6s ease-out;
}

@keyframes neexo-activation-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 99, 254, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(16, 99, 254, 0.1);
    }
    100% {
        box-shadow: 0 0 0 3px rgba(16, 99, 254, 0.1);
    }
}

/* Estilo para o título quando ativo */
.config-group-card.neexo-active .config-group-name {
    color: #1063fe !important;
    font-weight: 400 !important;
}

/* Estilo para o select quando ativo */
.config-group-card.neexo-active .config-group-select {
    color: #1063fe !important;
    font-weight: 500 !important;
}

/* Estados de transição */
.config-group-card.neexo-deactivating {
    animation: neexo-deactivation 0.3s ease-out;
}

@keyframes neexo-deactivation {
    0% {
        border-color: #1063fe;
        box-shadow: 0 0 0 3px rgba(16, 99, 254, 0.1);
    }
    100% {
        border-color: var(--border-color);
        box-shadow: none;
    }
}

/* Efeito hover especial para cards ativos - ANIMAÇÃO MELHORADA */
.config-group-card.neexo-active:hover .neexo-remove-selection {
    animation: neexo-trash-pulse 0.6s ease-in-out;
}

@keyframes neexo-trash-pulse {
    0%, 100% {
        transform: scale(1.3);
    }
    25% {
        transform: scale(1.4) rotate(-2deg);
    }
    75% {
        transform: scale(1.4) rotate(2deg);
    }
}

/* Responsividade ajustada */
@media (max-width: 768px) {
    .neexo-remove-selection {
        width: 22px !important; /* AUMENTADO de 18px para 22px */
        height: 22px !important; /* AUMENTADO de 18px para 22px */
        top: 6px !important;
        right: 6px !important;
        font-size: 15px !important; /* AUMENTADO de 14px para 15px */
    }
    
    .neexo-remove-selection i {
        font-size: 13px !important; /* AUMENTADO de 12px para 13px */
    }
}

@media (max-width: 576px) {
    .neexo-remove-selection {
        width: 20px !important; /* AUMENTADO de 16px para 20px */
        height: 20px !important; /* AUMENTADO de 16px para 20px */
        top: 4px !important;
        right: 4px !important;
        font-size: 14px !important; /* AUMENTADO de 12px para 14px */
    }
    
    .neexo-remove-selection i {
        font-size: 12px !important; /* MANTIDO */
    }
}

/* Garantir que cliques no card não afetem o estado ativo */
.config-group-card.neexo-active {
    pointer-events: auto !important;
}

.config-group-card.neexo-active * {
    pointer-events: auto !important;
}

/* Garantir prioridade máxima sobre outros estilos */
.config-group-card .neexo-remove-selection {
    color: #1063fe !important;
    font-weight: normal !important;
}

.config-group-card .neexo-remove-selection:hover {
    color: #0d52d9 !important;
}

/* ===== BOTÃO SELECIONAR NOS CARDS DE CICLO ===== */
/* Instalado automaticamente pelo NEEXO Installer */

/* Container do botão */
.cycle-select-button {
    margin-top: 8px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

/* Estilo base dos textos do botão */
.cycle-select-button .select-text,
.cycle-select-button .selected-text {
    padding: 8px 16px !important;
    border-radius: 3px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    border: none !important;
    min-width: 110px !important;
    user-select: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

/* Estado padrão - botão "Selecionar" (fundo azul claro, texto azul) */
.billing-cycle-card:not(.selected) .selected-text {
    display: none !important;
}

.billing-cycle-card:not(.selected) .select-text {
    display: flex !important;
    background: rgba(16, 99, 254, 0.1) !important;
    color: var(--primary-color) !important;
    border: 1px solid rgba(16, 99, 254, 0.2) !important;
}

/* Estado selecionado - botão "✓ Selecionado" (fundo azul, texto branco) */
.billing-cycle-card.selected .select-text {
    display: none !important;
}

.billing-cycle-card.selected .selected-text {
    display: flex !important;
    background: var(--primary-color) !important;
    color: white !important;
    font-weight: 500 !important;
}

/* Ícone de check para o estado selecionado */
.billing-cycle-card.selected .selected-text::before {
    content: "✓" !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
}

/* Hover no botão "Selecionar" (não selecionado) */
.billing-cycle-card:not(.selected) .select-text:hover {
    background: rgba(16, 99, 254, 0.15) !important;
    color: var(--primary-hover) !important;
    border-color: rgba(16, 99, 254, 0.3) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(16, 99, 254, 0.2) !important;
}

/* Hover no botão "Selecionado" */
.billing-cycle-card.selected .selected-text:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(16, 99, 254, 0.3) !important;
}

/* Animação quando muda de estado */
.cycle-select-button .select-text,
.cycle-select-button .selected-text {
    animation: fadeInButton 0.3s ease-in-out !important;
}

@keyframes fadeInButton {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Ajustar altura dos cards para acomodar o botão */
.billing-cycle-card {
    min-height: 200px !important;
    max-height: 200px !important;
    height: 200px !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .billing-cycle-card {
        min-height: 180px !important;
        max-height: 180px !important;
        height: 180px !important;
    }
    
    .cycle-select-button .select-text,
    .cycle-select-button .selected-text {
        font-size: 0.8rem !important;
        padding: 6px 12px !important;
        min-width: 100px !important;
    }
}

@media (max-width: 576px) {
    .billing-cycle-card {
        min-height: 160px !important;
        max-height: 160px !important;
        height: 160px !important;
    }
    
    .cycle-select-button .select-text,
    .cycle-select-button .selected-text {
        font-size: 0.75rem !important;
        padding: 5px 10px !important;
        min-width: 90px !important;
    }
    
    .cycle-select-button {
        margin-top: 6px !important;
    }
}

/* ===== FIM DO CSS DO BOTÃO SELECIONAR ===== */

/* Adicionar no final do custom.css */
.billing-cycle-card .discount-info {
    margin-bottom: -3px !important;  /* Reduzir espaço com valor principal */
}

.billing-cycle-card .monthly-equivalent {
    margin-top: -3px !important;     /* Reduzir espaço superior */
    margin-bottom: -3px !important;  /* Reduzir espaço com botão */
}





























/* ===== LOADING SPINNER CIRCULAR PARA CARDS DE CICLO ===== */
/* Mesmo efeito usado no resumo do pedido */

/* Estado de loading dos cards */
.billing-cycle-card.neexo-loading {
    position: relative;
    pointer-events: none;
    background: #f8fafc !important;
}

/* Esconder conteúdo durante loading */
.billing-cycle-card.neexo-loading .cycle-name,
.billing-cycle-card.neexo-loading .cycle-price,
.billing-cycle-card.neexo-loading .discount-info,
.billing-cycle-card.neexo-loading .monthly-equivalent,
.billing-cycle-card.neexo-loading .cycle-select-button {
    opacity: 0 !important;
}

/* Spinner circular central - IGUAL AO DO RESUMO */
.billing-cycle-card.neexo-loading::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 30px !important;
    height: 30px !important;
    border: 3px solid #e2e8f0 !important;
    border-top: 3px solid #1063fe !important;
    border-radius: 50% !important;
    animation: neexo-spinner 1s linear infinite !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10 !important;
}

/* Cards não processados pelo JS - mesmo spinner */
.billing-cycle-card:not(.neexo-processed) {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    position: relative;
    pointer-events: none;
}

.billing-cycle-card:not(.neexo-processed) .cycle-name,
.billing-cycle-card:not(.neexo-processed) .cycle-price {
    opacity: 0 !important;
}

.billing-cycle-card:not(.neexo-processed)::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 30px !important;
    height: 30px !important;
    border: 3px solid #e2e8f0 !important;
    border-top: 3px solid #1063fe !important;
    border-radius: 50% !important;
    animation: neexo-spinner 1s linear infinite !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10 !important;
}

/* Animação do spinner - REUTILIZA A EXISTENTE */
@keyframes neexo-spinner {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Quando carregado - transição suave */
.billing-cycle-card.neexo-loaded,
.billing-cycle-card.neexo-processed {
    background: var(--white) !important;
    transition: all 0.3s ease !important;
}

.billing-cycle-card.neexo-loaded .cycle-name,
.billing-cycle-card.neexo-loaded .cycle-price,
.billing-cycle-card.neexo-loaded .discount-info,
.billing-cycle-card.neexo-loaded .monthly-equivalent,
.billing-cycle-card.neexo-loaded .cycle-select-button,
.billing-cycle-card.neexo-processed .cycle-name,
.billing-cycle-card.neexo-processed .cycle-price {
    opacity: 1 !important;
    transition: opacity 0.4s ease !important;
}

/* Esconder spinner quando carregado */
.billing-cycle-card.neexo-loaded::before,
.billing-cycle-card.neexo-processed::before {
    display: none !important;
}

/* Responsividade do spinner */
@media (max-width: 768px) {
    .billing-cycle-card.neexo-loading::before,
    .billing-cycle-card:not(.neexo-processed)::before {
        width: 26px !important;
        height: 26px !important;
        border-width: 2.5px !important;
    }
}

@media (max-width: 576px) {
    .billing-cycle-card.neexo-loading::before,
    .billing-cycle-card:not(.neexo-processed)::before {
        width: 22px !important;
        height: 22px !important;
        border-width: 2px !important;
    }
}