/* =========================================
   Arquivo: filex/css/preco-da-assinatura.css
   XONA — PREÇO DA SUBSCRIÇÃO
   Requer main.css carregado antes.
   ========================================= */

/* =========================================
   BODY — sem sidebar direita
   ========================================= */
body.sub-price-body .main-content {
    margin-right: 0 !important;
    max-width: none !important;
}

.sub-price-page {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 24px;
    margin-top: 2%;
}

/* =========================================
   TÍTULO + BOTÃO GUARDAR
   ========================================= */
.sub-price-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.sub-price-title-block h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}
.sub-price-title-block p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.sub-price-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent-pink);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    padding: 11px 20px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.sub-price-save-btn:hover {
    background-color: var(--accent-pink-hover);
    transform: translateY(-1px);
}
.sub-price-save-btn i { font-size: 12px; }

/* =========================================
   AVISO
   ========================================= */
.sub-price-info {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background-color: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
}
.sub-price-info > i {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sub-price-info strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.sub-price-info p {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* =========================================
   FORMULÁRIO
   ========================================= */
.sub-price-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sub-price-section {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.sub-price-section.highlight {
    background: linear-gradient(135deg, rgba(240, 36, 110, 0.10), rgba(240, 36, 110, 0.02));
    border-color: rgba(240, 36, 110, 0.28);
}

.sub-price-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}
.sub-price-section-header i {
    color: var(--accent-pink);
    font-size: 14px;
}
.sub-price-section-header h2 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================================
   CAMPO
   ========================================= */
.sub-price-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sub-price-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.sub-price-label .required { color: var(--accent-pink); margin-left: 2px; }

.sub-price-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.sub-price-prefix {
    position: absolute;
    left: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    pointer-events: none;
}
.sub-price-input {
    width: 100%;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 13px 16px 13px 52px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s;
}
.sub-price-input:focus { border-color: var(--accent-pink); }
.sub-price-input::placeholder { color: var(--text-muted); font-weight: 500; }
.sub-price-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sub-price-hint {
    font-size: 11.5px;
    color: var(--text-muted);
}

/* =========================================
   GRELHA DE PLANOS ADICIONAIS
   ========================================= */
.sub-price-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.sub-price-plan {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.2s, background-color 0.2s;
}
.sub-price-plan.active {
    border-color: rgba(240, 36, 110, 0.35);
    background-color: rgba(240, 36, 110, 0.04);
}

.sub-price-plan-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.sub-price-plan-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.sub-price-plan-status {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}
.sub-price-plan-status.active { color: #22c55e; }

/* =========================================
   SUBSCRIÇÃO GRATUITA
   ========================================= */
.free-section {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(34, 197, 94, 0.02));
    border-color: rgba(34, 197, 94, 0.28);
}

.sub-price-free {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.sub-price-free-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.sub-price-free-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.sub-price-free-title i { color: #22c55e; font-size: 14px; }
.sub-price-free-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* =========================================
   SWITCH
   ========================================= */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}
.switch-toggle.switch-large {
    width: 52px;
    height: 28px;
}
.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.switch-slider {
    position: absolute;
    inset: 0;
    background-color: #2a3038;
    border-radius: 999px;
    transition: background-color 0.25s ease;
}
.switch-slider::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.switch-toggle.switch-large .switch-slider::before {
    width: 22px;
    height: 22px;
}
.switch-toggle input:checked + .switch-slider {
    background-color: var(--accent-pink);
}
.switch-toggle.switch-large input:checked + .switch-slider {
    background-color: #22c55e;
}
.switch-toggle input:checked + .switch-slider::before {
    transform: translateX(20px);
}
.switch-toggle.switch-large input:checked + .switch-slider::before {
    transform: translateX(24px);
}

/* =========================================
   BOTÃO GUARDAR (bottom)
   ========================================= */
.sub-price-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
}
.sub-price-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent-pink);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 13px 26px;
    cursor: pointer;
    transition: all 0.2s;
}
.sub-price-submit-btn:hover {
    background-color: var(--accent-pink-hover);
    transform: translateY(-1px);
}
.sub-price-submit-btn i { font-size: 13px; }

/* =========================================
   MOBILE
   ========================================= */
@media (max-width: 768px) {

    body.sub-price-body .main-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
    }

    .sub-price-page {
        padding: 0 10px 130px;
        gap: 14px;
    }

    .sub-price-top {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    .sub-price-title-block h1 { font-size: 22px; }
    .sub-price-title-block p { font-size: 12px; }
    .sub-price-save-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
    }

    .sub-price-info { padding: 12px 14px; gap: 12px; }
    .sub-price-info > i { width: 30px; height: 30px; font-size: 13px; }
    .sub-price-info strong { font-size: 13px; }
    .sub-price-info p { font-size: 12px; }

    .sub-price-section { padding: 16px; gap: 14px; }
    .sub-price-section-header h2 { font-size: 12.5px; }

    .sub-price-label { font-size: 12px; }
    .sub-price-input {
        font-size: 14px;
        padding: 12px 14px 12px 48px;
    }
    .sub-price-prefix { left: 14px; font-size: 13px; }

    /* Planos em 1 coluna */
    .sub-price-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .sub-price-plan { padding: 12px 14px; }

    .sub-price-free {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .sub-price-actions { justify-content: stretch; }
    .sub-price-submit-btn {
        width: 100%;
        justify-content: center;
        padding: 13px 18px;
    }
}