/* ============================================================
   CONFIGURAÇÕES & STATUS DA CONTA — Trampix Domain Architecture
   ============================================================ */

.cfg-page {
    max-width: 680px;
    margin: 0 auto;
    padding: 96px 20px 100px;
    color: #f5f0ff;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cfg-view[hidden] {
    display: none !important;
}

.cfg-view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.cfg-back-btn,
.cfg-close-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f5f0ff;
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.cfg-back-btn:hover,
.cfg-close-btn:hover {
    background: rgba(138, 5, 190, 0.18);
    border-color: rgba(138, 5, 190, 0.4);
    color: #ffffff;
}

.cfg-main-title {
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

/* ── Profile Banner Card ── */
.cfg-profile-banner {
    background: #110722;
    border: 1px solid rgba(138, 5, 190, 0.25);
    border-radius: 16px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.cfg-avatar-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    background: #1a0b33;
    border: 2px solid rgba(138, 5, 190, 0.4);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cfg-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cfg-avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #8a05be, #540375);
    color: #ffffff;
}

.cfg-profile-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cfg-profile-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.cfg-profile-handle {
    font-size: 0.84rem;
    color: #a797c2;
    font-weight: 500;
}

/* ── Indicador de Estado Real da Conta (Clean & Subtle) ── */
.cfg-health-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #110722;
    border: 1px solid rgba(138, 5, 190, 0.25);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

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

.cfg-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
}

.cfg-health-title {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.cfg-health-desc {
    font-size: 0.82rem;
    color: #a797c2;
    margin: 0;
    line-height: 1.4;
}

.cfg-status-pill--neutral {
    background: rgba(255, 255, 255, 0.08);
    color: #e4d7f5;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cfg-section-desc {
    font-size: 0.88rem;
    color: #9f8eb7;
    line-height: 1.5;
    margin: 0 0 28px;
}

/* ── Domain Sections ── */
.cfg-domain-block {
    margin-bottom: 28px;
}

.cfg-domain-heading {
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.cfg-domain-heading i {
    color: #c084fc;
    font-size: 1.1rem;
}

.cfg-menu-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cfg-menu-item {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 4px;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #ffffff;
    text-decoration: none;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.18s ease;
}

.cfg-menu-item:hover {
    padding-left: 6px;
    opacity: 0.92;
}

.cfg-menu-item--static {
    cursor: default;
}

.cfg-menu-item--static:hover {
    padding-left: 4px;
    opacity: 1;
}

.cfg-menu-item__left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.cfg-item-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #f5f0ff;
}

.cfg-item-sub {
    font-size: 0.78rem;
    color: #8c7aa8;
    line-height: 1.35;
}

.cfg-menu-item__right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding-left: 12px;
}

.cfg-status-pill {
    background: rgba(138, 5, 190, 0.18);
    color: #e9d5ff;
    border: 1px solid rgba(138, 5, 190, 0.35);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.cfg-status-pill--green {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.3);
}

.cfg-chevron {
    color: #6b5c85;
    font-size: 0.85rem;
}

/* ── Options Group (View 2: Desativar / Excluir) ── */
.cfg-options-group {
    background: #110722;
    border: 1px solid rgba(138, 5, 190, 0.25);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 28px;
}

.cfg-option-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    user-select: none;
    transition: background 0.15s ease;
}

.cfg-option-card:last-child {
    border-bottom: none;
}

.cfg-option-card:hover {
    background: rgba(138, 5, 190, 0.08);
}

.cfg-option-content {
    flex: 1;
    padding-right: 20px;
}

.cfg-option-title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.cfg-option-desc {
    font-size: 0.84rem;
    color: #a797c2;
    margin: 0;
    line-height: 1.45;
}

/* Radio Button Customizado Trampix */
.cfg-radio {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.cfg-custom-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #5a4b73;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.cfg-radio:checked ~ .cfg-custom-radio {
    border-color: #a855f7;
}

.cfg-radio:checked ~ .cfg-custom-radio::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #a855f7;
}

/* ── Actions Bar Trampix Colors ── */
.cfg-actions-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.btn-cfg-cancel {
    padding: 12px 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f5f0ff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cfg-cancel:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.btn-cfg-primary {
    padding: 12px 28px;
    border-radius: 999px;
    background: var(--accent, #8a05be);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cfg-primary:hover {
    background: #9d0dcc;
    transform: translateY(-1px);
}

.btn-cfg-primary:active {
    transform: scale(0.98);
}

@media (max-width: 600px) {
    .cfg-page {
        padding: 76px 16px 90px;
    }

    .cfg-profile-banner {
        padding: 16px 18px;
    }

    .cfg-option-card {
        padding: 16px 18px;
    }

    .cfg-actions-bar {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .btn-cfg-cancel,
    .btn-cfg-primary {
        width: 100%;
        text-align: center;
    }
}
