/* === ACCOUNT (Gestisci il tuo account) === */
.cpm-account-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.cpm-account-nav {
    flex: 0 0 250px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
}

.cpm-account-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #334155;
    text-decoration: none;
    transition: all 0.15s;
}

    .cpm-account-nav-item svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        color: #64748b;
    }

    .cpm-account-nav-item:hover {
        background: #f8fafc;
        color: #0f766e;
    }

    .cpm-account-nav-item.active {
        background: #f0fdfa;
        color: #0f766e;
        font-weight: 600;
    }

        .cpm-account-nav-item.active svg {
            color: #0f766e;
        }

.cpm-account-content {
    flex: 1;
    min-width: 0;
}

.cpm-account-form {
    max-width: 480px;
}

.cpm-account-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin: 20px 0 4px;
}

.qr-code-container {
    display: inline-block;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin: 8px 0;
}

/* Alert / banner di stato (sostituisce Bootstrap .alert) */
.cpm-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    line-height: 1.5;
}

    .cpm-alert svg {
        width: 17px;
        height: 17px;
        flex-shrink: 0;
        margin-top: 1px;
    }

    .cpm-alert ul {
        margin: 4px 0 0;
        padding-left: 18px;
    }

.cpm-alert-success {
    background: #f0fdfa;
    border-color: #99d8d1;
    color: #115e59;
}

.cpm-alert-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.cpm-alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.cpm-alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.cpm-field-error {
    font-size: 12px;
    color: #ef4444;
    margin-top: 2px;
}

.cpm-recovery-code {
    display: inline-block;
    font-family: "Cascadia Code", Consolas, monospace;
    font-size: 13px;
    letter-spacing: 0.02em;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 10px;
    margin: 3px 6px 3px 0;
    color: #0f172a;
}

.cpm-account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.cpm-account-steps {
    margin: 8px 0;
    padding-left: 20px;
}

    .cpm-account-steps li {
        margin: 14px 0;
        color: #334155;
    }

    .cpm-account-steps p {
        margin: 4px 0;
    }

    .cpm-account-steps a {
        color: #0f766e;
    }

@media (max-width: 768px) {
    .cpm-account-layout {
        flex-direction: column;
    }

    .cpm-account-nav {
        flex: none;
        width: 100%;
    }
}
